Re: Folder Attachment
Re: Folder Attachment
- Subject: Re: Folder Attachment
- From: David Glass <email@hidden>
- Date: Wed, 20 Nov 2002 11:15:27 -0800
On 11/19/02 14:18, "Amir Bozorgzadeh" <email@hidden> wrote:
>
cannot get it to work. The script is as follows and I keep either
>
getting error or it really doesn't do it (just gives the appearance).
>
>
tell application "System Events" to attach action to
>
("Microsoft:Preferences:Library:(path to current user folder)") using
>
("WORDDelete")
>
In the above script you are tell System Events to attach an action to the
following path:
Microsoft:Preferences:Library:(path to current user folder)
You have included the 'path...' command within the double quotes thereby
making it part of the string, so it is interpreted literally rather than as
a command.
Given your current code what you really want is this:
(("Microsoft:Preferences:Library:" & (path to current user folder)) as
string)
Keeping in mind that 'path to current user folder' returns the entire path
including the volume (OMM, at least), which may not create the path you
really want.
--
David Glass
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.