Re: Signature appPath launch with nested appName tells...
Re: Signature appPath launch with nested appName tells...
- Subject: Re: Signature appPath launch with nested appName tells...
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 04 Mar 2001 12:07:32 -0800
On 3/4/01 11:47 AM, "Devon and Cornwall" <email@hidden> wrote:
>
At 12:38 PM +0100 3/4/01, Harald E Brandt wrote:
>
>
> When I try this scheme with e.g AppleWorks or Tex-Edit Plus, it simply
>
> refuses to work if I keep the inner tell!!
>
>
Read JD's page
>
>
http://www.eremita.demon.co.uk/scripting/applescript/doubletell.html
>
>
Search for "double tell" here
>
>
http://www.its.unimelb.edu.au/hma/pub/macscrpt/
>
>
Get a copy of Smile here, to ease writing your "raw events"
>
>
http://www.tandb.com.au/smile/
>
>
You'll be up and running in no time : )
>
And do a search in Smile's help for "portable" or "linking", clicking on
"Linking windows to apps" and read the section "How do I make my scripts
fully portable". It provides a much easier way than JD's for using the raw
codes (namely setting the variable to the app's _name_ instead of the app
itself, and thus avoiding the necessity for the whole <<class psn >> which
you don't really need to know about if you don't want to.
However, since that Help section was written, there has been an undocumented
(at least within Smile's help) improvement to how Smile can get raw codes
for you. Although the text window technique for Copy Translate described
there still works fine as described, and you should use it if you only need
the raw codes for a single line of script, you can instead use a _Script
window_ to Copy Translate an entire script that will compile. Just Copy
Translate the whole script in a Script window targeted in the same way to
the application, after removing the outer tell block(s), and paste it into a
new untargeted Script window. Now you will see the raw codes for _all_ the
application's classes and events in the script, without having to execute it
(as you do in a Text window). It's really easy.
--
Paul Berkowitz