possible to script attaching folder actions
possible to script attaching folder actions
- Subject: possible to script attaching folder actions
- From: brian <email@hidden>
- Date: Sat, 27 Jan 2001 22:14:17 -0500
I'm relatively new to scripting and in an effort to automate workflows for
my employer I'm excited to begin implementing a significant number of folder
actions into our work environment to move things from here to there, execute
do script type stuff with Photoshop, stuff the day's work with Stuffit, etc.
One of the hurdles I can't seem to over come is:
I can't figure out the syntax for attaching a folder action to a folder that
the script made a few lines above. Optimistically, the folders that'll be
worked with are persistently on the users desktops so this should be moot,
but I'd like to build a bit of bulletproofing into the script as I won't be
the one using it and I don't want this "time saver" to end up frustrating
the users.....or me.
that said, here's a piece of what I'm working on with the missing piece
commented out near the end
e.g.
if (folder "psd" of folder the_date of folder "data" of folder "desktop
stuff" exists) is not true then -- checks to see if the psd folder is there
set the psd_folder to make new folder at folder the_date of folder
"data" of folder "desktop stuff" with properties {name:"psd"} -- make psd
subfolder
--sets window to popup and sorts by date
open psd_folder
if popup of window of psd_folder is not true then
set bounds of window of psd_folder to {10, 40, c / 2, d}
set popup of window of psd_folder to true
set view of container window of psd_folder to modification date
set pulled open of window of psd_folder to false
end if
(*here's where I want to add attach folder action "some script "of some
folder of some disk to the psd_folder*)
end if
Any advice would be greatly appreciated.
Thanks-
brian