ok well here goes, this tuorial is how making a macro for borders,
ok in the actions box on one side of the screen is a red record button,
press it, then go to the image menu and click enlarge canvas size change it to percent and then make it 101% colour white, click ok, then repeat that except changing the size to 105% and colour black you are now done, this should work for all versions of photoshop