Heys guys,
I'm practically a newb in scripting, so I'm relying on your help to put my problem into proper javascript.
————————————————————————————————————————————
1) Open all jpg files in a specified folder;
2) Create new doc
I've been using a set of actions for the two next steps, though I'm not sure if they can be included in a script
3a) Select previous document > image size > canvas size > select all > copy > close doc without saving > paste in new created doc > move
3b) Select previous document > image size > canvas size > select all > copy > close doc without saving > paste in new created doc > move (the "move" has different pixel value than the previous one)
4) Save as (variables for the file name like "01.jpg", "02.jpg" etc)
5) Delete layer 1 & 2
repeat 3a) and 3b) until there are no more images (until previous doc cannot be selected)
————————————————————————————————————————————
Please, you also can refer me to any posts that actually are similar to my problem description. I read this thread (http://forums.adobe.com/thread/776366?tstart=0) about implying variables in saving jpgs, though I cannot quite get what part of code I need for my purposes.
Thanks