• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script Menu in 10.6.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Script Menu in 10.6.2
      • From: Deivy Marck Petrescu <email@hidden>
References: 
 >Re: Script Menu in 10.6.2 (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Script Menu in 10.6.2
  • Next by Date: Re: Finder BUGS?
  • Previous by thread: Re: Script Menu in 10.6.2
  • Next by thread: Re: Script Menu in 10.6.2
  • Index(es):
    • Date
    • Thread