Re: duplicate command
Re: duplicate command
- Subject: Re: duplicate command
- From: Simon Topliss <email@hidden>
- Date: Fri, 12 Apr 2013 17:31:33 +0100
(path to desktop as text) & "get archives AppleScript - stripped.scpt" set sourcePath to quoted form of POSIX path of result "Macintosh HD:" set targetPath to quoted form of POSIX path of result
Here's a tip for those playing along at homeā¦
Never, ever write code like the above. Always be explicit in your variable declarations. The correct way to write this is:
set sourcePath to quoted form of POSIX path of ((path to desktop as text) & "get archives AppleScript - stripped.scpt") set targetPath to "/"
Yvan's code is a bug waiting to happen.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden