Op 12-mrt-2007, om 15:37 heeft KOENIG Yvan het volgende geschreven:
Oops, I forgot to replace copy by the correct word: duplicate ;-)
Thanks all, that solved it.
grmbl.. I was probably using some weird reference documentation.
-- Jacco
In the original script you posted, the line "copy ThisSjabloon to theWorkFolder" is one of the problems. That line is just copying the contents of the variable ThisSjabloon to the second variable theWorkFolder.
Try this instead and I think you'll be happier. This script works here even using the "unavailable" copy command for the Finder: OS X 10.4.8, G5 Quad. But perhaps it would be more reliable if you used "duplicate" as that might be the term that's available for earlier versions of AS.
tell application "Finder" try set theDocumentsFolder to (path to documents folder) set theWorkFolder to (path to desktop folder) set ThisSjabloon to theDocumentsFolder & "iCal - 1/2/07.icbu" as string copy file ThisSjabloon to folder theWorkFolder on error errMsg number errnum display dialog errnum & return & errMsg end try end tell
Vince |