Re: Script Menu in 10.6.2
Re: Script Menu in 10.6.2
- Subject: Re: Script Menu in 10.6.2
- From: Shane Stanley <email@hidden>
- Date: Thu, 04 Feb 2010 09:19:22 +1100
- Thread-topic: Script Menu in 10.6.2
On 4/2/10 9:02 AM, "Luther Fuller" <email@hidden> wrote:
> It seems that using ...
>
> tell application "Finder" to (path to ...)
>
> will poison the remainder of the script, at least when the script is run from
> the Scripts menu.
> But, why?
It's possible the Finder is getting confused by the new scripting addition
security behavior (it doesn't take much...).
"path to" is a scripting addition command, so it should be put outside an
app tell block if possible (the exception is commands that generate
dialogs).
People should get used to writing things like:
set docFolder to path to documents folder
tell application "Finder"
set ListOfFiles to name of files of docFolder
end tell
The 10.6 release notes cover this issue.
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
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