Go Back   The macosxhints Forums > OS X Help Requests > AppleScript

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 04-02-2012, 09:12 AM   #1
Posts: n/a
Need a Photoshop Script (hotfolder)

I'm looking for a script that will watch a hot folder, open any file that is placed into it, run a photoshop CS5 "action", save it, and delete the original. It then needs to wait for the next image.

I've been searching online and in these forums, but everything appears to be outdated and will not work with Lion/CS5.

Any help would be greatly appreciated
  Reply With Quote
Old 04-02-2012, 11:06 AM   #2
League Commissioner
Join Date: Aug 2006
Location: London
Posts: 5,829
I don't see why any AppleScript should be "outdated" for Lion and CS5.5.

First of all, Folder Actions will take care of running the script when any file gets dumped in the folder. That hasn't changed significantly since Leopard, I think.

Short of changing the name of the application, I don't think Photoshop's AppleScript library has changed much.

the command "do action <name>" will run a Photoshop action.

I haven't tested this, but it's going to be along these lines:
on adding folder items to this_folder after receiving list_of_files
tell application "Photoshop CS5.5"
do action <name of PS action> from <action set>
end tell
tell Finder
delete list_of_files
end tell
end adding folder items to
As the PS action should be set to the folder, you don't need to pass any file paths or names to Photoshop.

Could you show us a script that you've tried that doesn't work?

Last edited by benwiggy; 04-02-2012 at 11:08 AM.
benwiggy is offline   Reply With Quote
Old 04-04-2012, 11:27 AM   #3
All Star
Join Date: Aug 2002
Posts: 579
Aren't compiled scripts ppc only, hence will not work on Lion?
aubreyapple is offline   Reply With Quote
Old 04-05-2012, 02:56 AM   #4
League Commissioner
Join Date: Aug 2006
Location: London
Posts: 5,829
If you're downloading compiled PPC Applescripts from the net, then yes, they won't work. However, it would be more usual to find the text of script examples online, I would have thought.
benwiggy is offline   Reply With Quote
Old 04-15-2012, 10:37 PM   #5
Major Leaguer
Join Date: Apr 2010
Posts: 371
This sounds like a job for Hazel, although you may have to write your own script.
see a problem; solve a problem.
sojourner is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:29 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.