Re: Tell Blocks Considered Harmful
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