DrDamnit
asked on
Apple Script and Photoshop Actions
I would like to write a script (in Apple Script) to
1. Locate a file based on some conditions. (parse the path looking for an order number).
2. Pass that folder to Photoshop to be processed by an action.
Can this be done with Apple Script? If so, can you post example code and / or the language reference links to the functions in Apple Script (and presumably the Photoshop related functions as well)?
Thank you in advance.
-DrD.
1. Locate a file based on some conditions. (parse the path looking for an order number).
2. Pass that folder to Photoshop to be processed by an action.
Can this be done with Apple Script? If so, can you post example code and / or the language reference links to the functions in Apple Script (and presumably the Photoshop related functions as well)?
Thank you in advance.
-DrD.
ASKER
Do you have any pointers / links to tutorials?
I just need a jump start. Once I wrap my head around it, I'll be able to take it from there.
I just need a jump start. Once I wrap my head around it, I'll be able to take it from there.
First there is this one from Apple. The basic on how it works: http://support.apple.com/kb/HT2488
Here are two videos on YouTube that explain some basics and show it in action: http://www.youtube.com/watch?v=u4tkR5T9rsY
Other YouTube Automator: http://www.youtube.com/results?search_query=automator+mac+tutorial+2013&oq=automator&gs_l=youtube.1.1.0l10.263582.264971.0.267633.9.9.0.0.0.0.189.1023.4j5.9.0...0.0...1ac.1.11.youtube.hef-NXH39yo
____
A very simple version of your workflow could be like this:
1. Make Workflow
2. Drag "Ask for Finder Items" into the main window on right (This will when run open Finder dialog box where you can type in search terms)
3. Below drag: Open Finder Items (select what app)
When run the workflow opens Open/Save box. Let it search and it will open all the pictures in the folder.
____
Automator is great fun to play with but at my work there is actually not so much I would need it for but the possibilities are there so just use your imagination.
Automation, although it may take time to prepare pays off in no time.
Here are two videos on YouTube that explain some basics and show it in action: http://www.youtube.com/watch?v=u4tkR5T9rsY
Other YouTube Automator: http://www.youtube.com/results?search_query=automator+mac+tutorial+2013&oq=automator&gs_l=youtube.1.1.0l10.263582.264971.0.267633.9.9.0.0.0.0.189.1023.4j5.9.0...0.0...1ac.1.11.youtube.hef-NXH39yo
____
A very simple version of your workflow could be like this:
1. Make Workflow
2. Drag "Ask for Finder Items" into the main window on right (This will when run open Finder dialog box where you can type in search terms)
3. Below drag: Open Finder Items (select what app)
When run the workflow opens Open/Save box. Let it search and it will open all the pictures in the folder.
____
Automator is great fun to play with but at my work there is actually not so much I would need it for but the possibilities are there so just use your imagination.
Automation, although it may take time to prepare pays off in no time.
Adobe has also always published AppleScript reference for Photoshop for free. If you would like to get that it is here: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/cs6/Photoshop-CS6-AppleScript-Ref.pdf
Also check out these free Automator scripts for Photoshop. Maybe you'll find something useful in there. https://www.macupdate.com/app/mac/17898/photoshop-automator-actions
Update.. the link is rather old. The latest version of these actions is about $20. http://www.robotphotoshop.com/?page_id=8
Also check out these free Automator scripts for Photoshop. Maybe you'll find something useful in there. https://www.macupdate.com/app/mac/17898/photoshop-automator-actions
Update.. the link is rather old. The latest version of these actions is about $20. http://www.robotphotoshop.com/?page_id=8
ASKER
This is great. I'll play with these a little later and let you know.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This Automator question got me all stirred up. I just found a nice resource. It's a service for all things automation but they also provide few freeware things, one which is great to prevent opening of all files at the same time, that is batching.
See here: http://www.automatedworkflows.com/products/software/freeware/
See here: http://www.automatedworkflows.com/products/software/freeware/
ASKER
Got me excited too. I will add this to the mix and advise.
I had intended on doing this yesterday, but m client has yet to send me the needed files I will be processing. And then, I got stuck working on a server until the wee hours of the morning.
Thanks again for all the effort.
I had intended on doing this yesterday, but m client has yet to send me the needed files I will be processing. And then, I got stuck working on a server until the wee hours of the morning.
Thanks again for all the effort.
ASKER
I got it working. I ended up using a combination of bash scripting (to find the files that need to be processed and create a list) and automator to read the files that need to be processed, tell photoshop to process them, then back to bash to tar them up and FTP them where they need to go. On that end, a PHP script finishes the processing to put them in their final destination.
Thank you for your help. It was a success.
Thank you for your help. It was a success.
Very nice! Have a nice day.
There you can relatively combine things in the Finder, such as locate files/folders and then open the content of a folder in a specific application.