Re: Damn send button / Wind chill
Re: Damn send button / Wind chill
- Subject: Re: Damn send button / Wind chill
- From: John W Baxter <email@hidden>
- Date: Sun, 3 Mar 2002 10:10:17 -0800
At 16:19 +1100 3/3/2002, Shane Stanley wrote:
>
On 3/3/02 8:56 AM +1000, Paul Berkowitz, email@hidden, wrote:
>
>
> You should avoid putting one tell block inside another, which is similarly
>
> wasteful, sluggish and occasionally worse
>
>
Really? Let's say I have a script like this:
>
>
tell application "Finder"
>
name
>
tell application "InDesign 2.0"
>
name
>
end tell
>
end tell
>
>
If I look in the log, I get:
>
>
tell application "Finder"
>
get name
>
--> "Finder"
>
end tell
>
tell application "InDesign 2.0"
>
get name
>
--> "Adobe InDesign"
>
end tell
>
>
That suggest to me that nesting tells to applications is no problem at all.
>
Am I missing something?
Not in my experience, but as you noticed, others have different
experiences. Or at least different experiences are in the community memory.
It doesn't hurt to write the sequence as
tell application "Finder"
name
end tell
tell application "InDesign 2.0"
name
end tell
-- Even if it is followed by
tell application "Finder"
name
end tell
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.