Re: Automatically add folder action
Re: Automatically add folder action
- Subject: Re: Automatically add folder action
- From: Michelle Steiner <email@hidden>
- Date: Mon, 15 Aug 2005 08:20:51 -0700
On Aug 15, 2005, at 8:03 AM, Simon Forster wrote:
Using AppleScript, can one add a folder action to a folder? If so,
where do I find the dictionary for this - or do I need an osax?
System events OSAX, folder action suite:
attach action to v : Attach an action to a folder
attach action to folder : The folder to which the action is to be
attached.
using Unicode text : a file containing the script to attach
→ folder action
attached scripts v : List the actions attached to a folder
attached scripts folder : The folder for which the attached scripts
are to be listed.
→ list
edit action of v : Edit an action of a folder
edit action of folder : The folder for which the action is to be edited.
[using action name Unicode text] : ...or the name of the action to edit
[using action number integer] : the index number of the action to
edit...
→ file
remove action from v : Remove a folder action from a folder
remove action from folder : The folder from which the action is to be
removed.
[using action name Unicode text] : ...or the name of the action to
remove
[using action number integer] : the index number of the action to
remove...
→ folder action
folder action n [inh. item] : An action attached to a folder in the
file system
elements
contains scripts; contained by application.
properties
enabled (boolean) : Is the folder action enabled?
name (Unicode text) : the name of the folder action, which is also
the name of the folder
path (alias, r/o) : the path to the folder to which the folder action
applies
volume (Unicode text, r/o) : the volume on which the folder action
resides
script n [inh. item] : A script invoked by a folder action
elements
contained by folder actions.
properties
enabled (boolean) : Is the script enabled?
name (Unicode text, r/o) : the name of the script
path (Unicode text, r/o) : the file system path of the disk
POSIX path (Unicode text, r/o) : the POSIX file system path of the disk
--
"I'll see that when I believe it"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden