Re: Launching one Applescript app with another Applescript app fails in OS X 10.8
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