Re: Duplicating a File
Re: Duplicating a File
- Subject: Re: Duplicating a File
- From: John Delacour <email@hidden>
- Date: Fri, 16 Aug 2002 00:30:39 +0100
At 2:12 pm -0700 15/8/02, email@hidden wrote:
>
Here's the script on 9:
>
tell application "Finder"
>
set a to path to extensions folder as string
>
set b to "Folder Actions"
>
set c to a & b as alias
>
duplicate c to startup disk with replacing
>
end tell
>
which gives me an "Invalid Key Error".
>
>
What in the world is that? It's error code -10002, but wat does that mean?
>
>
And further, why won't the above snippet work? It really should... I
>
think...
For what it's worth, it works perfectly in 8.6, but I would suspect your use of 'startup disk' just like that. Just guessing, but I think you'll find if you type that differently it will work. And put 'path to extensions folder' in parentheses for good measure.
Step through it in Smile or use the Event log.
JD
_______________________________________________
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.