Re: Finder Tell Blocks
Re: Finder Tell Blocks
- Subject: Re: Finder Tell Blocks
- From: Andy Wylie <email@hidden>
- Date: Mon, 04 Mar 2002 19:23:34 +1300
on 4/3/02 4:29 PM, email@hidden at email@hidden wrote:
>
For others (newbies especially) who also didn't quite get the rant & rave of
>
it:
>
>
set X to 5
>
set Y to 25
>
set Z to 2
>
set A to ((X+Y)/Z)
>
display dialog "The answer is: " & a
>
>
does not have to be within a tell block at all -- it will just run all by
>
it's lonesome without it, even outside the script editor (as a saved
>
application) because it never calls anything unique to any program.
>
not quite, you can grab something from an app and tell it nuthin...
display dialog ("MACS" is in (application "Finder"'s every process's name))
as string
I use (probably overuse) this sort of thing more and more as a result of
being bitten hard by tell block bugs.
I don't think anyone mentioned what was specifically wrong with your script
being in a tell block Marc, from what I recall it switched to Finder to
display a dialog and back to Smile when run from there which was rather
nauseating with several dialogs and autohide app switching. In the context
of the script not running in the front app however it's necessary to tell an
application to activate and display dialog to bring it to the front and
ensure it's seen.
_____________________________ Andy
_______________________________________________
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.