hey guys,
I use ps to make ads for fb. to do this quick i drag the images to one file and resize them, and i will end up with alot layers (each one ad img)
then i will go to: file-> scripts -> export layers to files. and now i have my ads ready, so no need for manual saving each ad.
The quesiton is : how can i actualy add a border to all these layers very quick?
Easy,
1. Select all layers
2. Ctrl+E (this will merge the layers)
3. Now just add a stroke 
If you want to export all the layers as images with borders I'd recommend adding a stroke (set to inside rather than centre/outside) to one layer under blending options, then copy that layer's style and paste it on to all the other layers, then export them all. The stroke needs to be a part of the layer itself otherwise it will just get exported on it's own.
Adding a border inside on the pics won't work unless the pic is exactly 110x80. But don't fret, there's a way to automate the entire process. 
Window > Actions. Click on the folder (create new set) on the bottom of the small actions window, and name the set "Facebook". Next, click on the icon next to the folder (create new action). Name it "border" and click "Record".
Take a little break.
Next, it's very important that you follow these steps thoroughly. Eventually you'll realize how easy it is. Anyhow, here goes:
1. Create new layer.
2. Fill layer with whatever color.
3. Reduce the fill to 0%.
4. Double click on the layer.
5. Add a stroke on it, position it inside (choose whatever color you'd like your border to be).
6. Merge visible.
7. Stop recording (click on the little square next to the record button).
Here's how it should look like:

You'll only have to do the above once, and honestly it shouldn't take more than a minute.
Finally go to File > Automate > Batch. A window will pop up and it should look like this now:

Source should be set to "Folder". Click on "Choose..." and navigate to the folder which contains the files you want to put a border on (they should be 110x80). Destination should also be set to "Folder". Repeat previous steps to navigate to the folder in which you would like to save the finalized files. Click on OK, and voila, you're done!
Soon enough you'll realize the endless possibilities by automating PS tasks 
Ahh yep yep forgot about that little catch. Yeh easier then to batch the pre-saved 110x80 images. Thanks diegoal ;-)
thanks alot guys.
and diegoal, that is perfect. i will try it out today. thank you man
How do you use 'save for web' on a bunch of images? I've never managed to get it to work.
My problem is that it never saves to the folder I specify in the Automate>Batch window.
I've tried a few ways, even ticking the 'override save as commands', but it still saves to the folder that I used when recording the action.
Here's a screenshot of my settings:

The problem might be that your action file itself says to save to that folder? So the destination folder you pick is just overridden every time. Try setting the export > save for web operation to save on the desktop instead?
Yeah, I think Zeno's right. A possible workaround would be to save the files to a specific folder for that task when recording. E.g. create a folder on your desktop and every time you automate that task your files should go to the folder on your desktop. From there you can copy them to wherever you like.
I found this post the other day "bulk adding bright borders to your facebook pof ad images" http://www.imkazu.com/bulk-adding-br...pof-ad-images/
Sorry to brng up an old topic. but i tried diegoal his method, but it does not record when i am filling the layer with a color. so everytime i get errors when i want to create the batch. How can i record when i am using the brush?
Don't use the brush? Just press alt+backspace to fill the entire layer with the foreground colour, then set fill to zero, then set the layer style.
Thanks Zeno, i'm not so familiar with ps so did not know that. Anyway if i create a new layer its always transperant (i'm sure you can switch it to white background) so i had to paint it in a colour, then do the fill entire layer short cut to get it to work.
In the meantime i found another way. Open up your image -> create new set -> create new action -> double click the image to make it a layer -> go to blending options and add stroke -> save as -> choose jpg -> stop recording. then do the batch thing.
Sweet, whatever works. Yeh new layers are transparent, you can fill the layer in with the foreground colour by selecting the layer and pressing alt+backspace, doesn't matter what tool you're on and there is no need to fill it in with any colours beforehand.
If you're going to do lots more work with photoshop it pays to learn shortcut keys, especially the letter keys for tools - e.g. v changes to select tool. D resets colours to black/white, X switches the foreground and background colour, Ctrl+D deselects everything, etc. Saves a lot of time and makes you look like you know what you're doing if anyone's watching xD
PDF's of Photoshop Shortcut Keys - HERE