• 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: Launching one Applescript app with another Applescript app fails in OS X 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching one Applescript app with another Applescript app fails in OS X 10.8


  • Subject: Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
  • From: Jim Skibbie <email@hidden>
  • Date: Thu, 04 Apr 2013 14:46:16 +0000
  • Thread-topic: Launching one Applescript app with another Applescript app fails in OS X 10.8

For what it is worth, adding an empty "on open" handler seems to fix this issue. You just need to quit the secondary app after you're done calling the secondary app's handler. It's not ideal, but it is a work-around until this gets fixed.

Thanks.


AppA.app  -- an Applescript app written and saved from Script Debugger or Applescript Editor to a User's Desktop

on run

tell application "AppB"

launch

set x to add(1, 2)

quit -- added quit here

end tell

display dialog x

end run


AppB.app  -- an Applescript app written and saved from Script Debugger or Applescript Editor to a User's Desktop

on open -- added empty on open handler

end open


on add(x, y)

return (x + y)

end add

 _______________________________________________
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

  • Follow-Ups:
    • Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Launching one Applescript app with another Applescript app fails in OS X 10.8 (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: Script to pause/suspend Safari when in the background and resume when in foreground
  • Next by Date: Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
  • Previous by thread: Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
  • Next by thread: Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
  • Index(es):
    • Date
    • Thread