Re: Creating property for 'tell application ...'
Re: Creating property for 'tell application ...'
- Subject: Re: Creating property for 'tell application ...'
- From: Emmanuel <email@hidden>
- Date: Tue, 16 Jul 2002 22:54:19 +0200
At 9:17 PM +0200 16/7/02, Jeff Shepherd wrote:
>
>
I have a bunch of references to a particular application. For example
>
>
tell application "GraphicConverter"
>
>
Is there a way I can reference that in a property? For example
>
>
property myApp : application "GraphicConverter"
>
>
And then for the tell statement use
>
>
tell myApp
You can do that *but*.
Within a "variable tell" wrapper, the compiler will not be able to know
that you are using GraphicConverter's dictionary, so you've got to use the
universal coding for AppleScript commands, 4-characters codes.
There are several resources where you can find information about that
topic, sometimes known as the portability problem (i.e., you want that your
script run whatever the exact name of the app). One of those resources is
the "Help" of Smile for OS < 10 (search for "portability"). Smile includes
tools for writing scripts using the universal coding - portable scripts.
Smile for OS < 10 can be found at <
http://www.satimage-software.com>
Emmanuel
<etiquette>from Satimage, the author of Smile</etiquette>
_______________________________________________
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.