Need a Macro to add 50ms silence to the start and end of a wav file

I need a Macro to add 50ms silence to the start and end of a wav file. I am using V3.7.1. I have been trying to use the Silence command as a step, but when I run the macro, Audacity displays a message that the command requires one or more tracks to be selected. Any suggestions

I have the same problem but chipped away at it and came up with this which adds two seconds of silence to the start and end of a track. Note that you have to operate on the front end of the track first but it is not necessary to use the silence command until you operate on the end of the track. If you just want to add silence to the front end, just use the first four lines. No need to add a silence or select all then join.

SelectAll:
Select:End=“0” Mode=“Add” RelativeTo=“SelectionStart” Start=“-2” TrackCount=“2”
Repeat:Count=“1”
SelectAll:
Select:End=“2” Mode=“Add” RelativeTo=“SelectionEnd” Start=“0” TrackCount=“2”
Repeat:Count=“1”
Select:End=“2” Mode=“Set” RelativeTo=“SelectionEnd” Start=“0” TrackCount=“2”
Silence:
SelectAll:
Join:

thanks for the suggestion. I also found the following works:
SelectTime:End=“0.05” Start=“0”
Repeat:Count=“1”
SelectTime:End=“0.05” Start=“0”
Silence:Duration=“0.05”
SelTrackStartToEnd:
CursSelEnd:
SelectTime:End=“0” Start=“-0.05”
Repeat:Count=“1”
SelectTime:End=“0” Start=“-0.05”
Silence:Duration=“0.05”