RE: Watch Folder - Photoshop Action
RE: Watch Folder - Photoshop Action
- Subject: RE: Watch Folder - Photoshop Action
- From: "Goodman, Steve" <email@hidden>
- Date: Thu, 12 Jul 2001 13:27:02 -0500
>
I'm trying to create a script that will "watch" a folder, and perform a
>
PhotoShop action on any files placed into the folder, then delete the
>
original file. I found the code to run an action, and i can figure out
>
deleting, but making it "watch" a folder has got me stumped.
Saving this a stay open app should get you close...just fill in the deletion
and other pieces you need....error checking....yada..yada.
WARNING! - Not Tested
-- ---------------------------------------------------------
-- Preprocessed by Convert Script 1.0d4
-- ---------------------------------------------------------
-- author: Steve Goodman, date: Thursday, July 12, 2001
-- ---------------------------------------------------------
property thePSalias : alias "path:to:your:photoshop" -- set to your photoshop
property hotfolder : alias "your:folder:path" --set to your images folder
on idle
tell application "Finder"
set thelist to every file of folder hotfolder as alias list
end tell
repeat with theOpen in thelist
tell application "Finder"
open theOpen using thePSalias
end tell
tell application "Adobe. Photoshop. 5.0.2" --set to your version of
photoshop
do script "Your action here" -- set to your PS action, be sure
and include the save and close in here
end tell
end repeat
return 600 -- set to the amount of seconds you want to wait before
checking the folder again
end idle
-- ---------------------------------------------------------
>
Thanks very much to anyone who can help.
No problem :-)
>
Steve Goodman
>
Six|12 - THE LTC GROUP
>
>
......."Duct tape is like the force, it has a light side and a dark side
>
and
>
it holds the universe together."------Unknown