Duplicating a File
Duplicating a File
- Subject: Duplicating a File
- From: email@hidden
- Date: 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".
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...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.