• 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: How do you get two scripts to communicate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get two scripts to communicate?


  • Subject: Re: How do you get two scripts to communicate?
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 1 Jan 2004 16:43:37 -0800

On Jan 1, 2004, at 3:07 PM, Andrew Oliver wrote:

The primary issue is that AppleScript doesn't save application references by name but by application signature. This is how you can write a script that targets, say, "BBEdit" and it will still work on someone else's machine whether the actual installed app is called "BBEdit 7", "BBEdit 7.0", or "BBEdit" - the script is storing a reference to the application's signature
so the name isn't needed.

Right, sort of. It actually stores an alias *and* the application signature; the signature is used as a fallback if the alias won't resolve.

Unfortunately for you, all AppleScript applications will have the same signature (unless you've taken steps to use your own application signature), so your comm.scpt will actually target any (almost random) AppleScript application on your machine.

Wrong. AppleScript knows about this case, and won't use the signature, just the alias and the name.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do you get two scripts to communicate?
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Re: How do you get two scripts to communicate? (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: How do you get two scripts to communicate?
  • Next by Date: Re: How do you get two scripts to communicate?
  • Previous by thread: Re: How do you get two scripts to communicate?
  • Next by thread: Re: How do you get two scripts to communicate?
  • Index(es):
    • Date
    • Thread