• 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: Luther Fuller <email@hidden>
  • Date: Thu, 04 Apr 2013 10:18:30 -0500

On Apr 4, 2013, at 9:46 AM, Jim Skibbie wrote:

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.

I just started up in 10.8.3 to test this. Adding an 'on open' handler to the called application made no difference at all. I get exactly the same behavior as before, including the -609 error which prevented calling the handler in the called script.

Just to make sure we are discussing the same problem, here are my scripts.

My CALLING script is ...

property hostAppl : "OSX_Mt_Lion: ………."
on run
try
launch application hostAppl
tell application hostAppl to doSomethingElse() -- comment out and see what happens
on error errText number errNr
activate me
"CallingApp Error = " & errNr & return & errText
tell me to display dialog the result buttons {"OK"} default button 1
end try
end run -----------------------------

and my CALLED script (property hostAppl , above) is ...

on run
activate me
tell me to display dialog "Running" buttons {"OK"} default button 1
end run

on open


end open

on doSomethingElse()
activate me
tell me to display dialog "What do you want to do?" buttons {"OK"} default button 1
end doSomethingElse

When the CALLING application calls the CALLED application, I get the "Running" dialog followed by the "CallingAppError" dialog, then nothing.



 _______________________________________________
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: 
 >Re: Launching one Applescript app with another Applescript app fails in OS X 10.8 (From: Jim Skibbie <email@hidden>)

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