• 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: Tell Blocks Considered Harmful
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tell Blocks Considered Harmful


  • Subject: Re: Tell Blocks Considered Harmful
  • From: Chris Page <email@hidden>
  • Date: Fri, 19 Dec 2008 17:56:46 -0800

On Dec 19, 2008, at 5:47 PM, Chris Page wrote:

On Dec 19, 2008, at 4:09 AM, Rick Gordon wrote:

So, Chris, then please confirm that the code in sample 1 below (with multiple commands sent to "me," but nested inside an application call) -- as the skeleton of something much more complex -- would avoid your potential issues as well as the version in sample 2. Thanks.

Yes, the nested ‘tell me to’ block in #1 avoids sending the commands to Finder. Moving the commands outside the Finder tell block altogether, as in #2, is even better, because it eliminates dependencies on Finder's terminology altogether, and makes it clear to anyone reading the code that you don't intend it to use Finder's terminology for those lines.


By the way, you can confirm where events are sent by looking at the Event Log in Script Editor.

--
Chris Page

 The other, other AppleScript Chris

_______________________________________________
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: Tell Blocks Considered Harmful
      • From: Ed Stockly <email@hidden>
References: 
 >Re: Tell Blocks Considered Harmful (was Re: open for access) (From: Shane Stanley <email@hidden>)
 >Re: Tell Blocks Considered Harmful (was Re: open for access) (From: Chris Page <email@hidden>)
 >Re: Tell Blocks Considered Harmful (was Re: open for access) (From: Rick Gordon <email@hidden>)
 >Re: Tell Blocks Considered Harmful (was Re: open for access) (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Next by Date: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Previous by thread: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Next by thread: Re: Tell Blocks Considered Harmful
  • Index(es):
    • Date
    • Thread