• 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: Calling a handler in another applescript process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a handler in another applescript process


  • Subject: Re: Calling a handler in another applescript process
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 22 Nov 2010 16:41:52 -0600

Weeeeellll, think of it as your own application's public API or AppleScript Dictionary.

FYI, when doing this between macs, it can be a SERIOUS PAIN figuring out the right syntax and having to authenticate to each machine on a compile.

This fixes that:

set myMac to "eppc://fluffy:email@hidden/"

tell application "Finder" of machine myMac
using terms from application "Finder" -- or your AS app
restart
end using terms from
end tell

If you do not use a "using terms from" clause, the command you are trying to execute will generate a syntax error.

Will experiment with bonjour and DNS entries next.


On Nov 22, 2010, at 4:24 PM, Robert Poland wrote:

Hi,

This makes me wonder if there is any advantage to;

Make an application consisting of only handlers. With the idea of using these handlers by many other applications?


On Nov 22, 2010, at 3:10 PM, Luther Fuller wrote:

On Nov 22, 2010, at 2:31 PM, Alex Zavatone wrote:

Well, well, 

tell application "Hi()"
Hi()
end tell

Sometimes AppleScript is way too easy.

You should also be aware of doing it this way ...

launch application someAppl
tell application  someAppl to someHandler()

where someAppl is the path to an AppleScripted application as colon delimited text.
The application does not need to be running and 'launch application' does not run it.

Robert Poland - Fort Collins, CO


Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
References: 
 >Calling a handler in another applescript process (From: Alex Zavatone <email@hidden>)
 >Re: Calling a handler in another applescript process (From: Alex Zavatone <email@hidden>)
 >Re: Calling a handler in another applescript process (From: Luther Fuller <email@hidden>)
 >Re: Calling a handler in another applescript process (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Calling a handler in another applescript process
  • Next by Date: Email attachment droplet?
  • Previous by thread: Re: Calling a handler in another applescript process
  • Next by thread: Re: Calling a handler in another applescript process
  • Index(es):
    • Date
    • Thread