Re: Duplicating a File
Re: Duplicating a File
- Subject: Re: Duplicating a File
- From: Nigel Garvey <email@hidden>
- Date: Fri, 16 Aug 2002 17:03:03 +0100
email@hidden wrote on Thu, 15 Aug 2002 14:12:39 -0700:
>
I'm having troubles with 9 and X being different in seemingly trivial ways.
>
>
Here's the script on X:
>
tell application "Finder"
>
set a to path to desktop folder as string
>
set b to "Setup Copy"
>
set c to a & b as alias
>
duplicate c to startup disk with replacing
>
end tell
>
this works fine.
>
>
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".
tell application "Finder"
duplicate file "Folder Actions" of extensions folder to startup disk
with replacing
end tell
But why do you want to duplicate it to the root directory of the startup
disk?.
NG
_______________________________________________
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.