• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating property for 'tell application ...'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Creating property for 'tell application ...' (From: Jeff Shepherd <email@hidden>)

  • Prev by Date: Re: FMP slowdown
  • Next by Date: Re: Object types
  • Previous by thread: Creating property for 'tell application ...'
  • Next by thread: Re: Creating property for 'tell application ...'
  • Index(es):
    • Date
    • Thread