• 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
launch broken in Mt Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launch broken in Mt Lion


  • Subject: launch broken in Mt Lion
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 09 Jan 2013 15:42:02 -0600

I just discovered why I was getting a mysterious -609 ("Connection is invalid") error in Mt Lion (10.8.2).

To see the problem:

1. Compile this script as an application bundle named "main.app"

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

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


2. Compile this script as an application bundle named "CallingApp.app"

property hostAppl : "OSX_Mt_Lion:Bug Check:main.app"
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 -----------------------------

Double-click the application "CallingApp.app".

In Lion, you will get a dialog asking "What do you want to do?". This is the correct action.

In Mt Lion, you get …
1. The "Running" dialog, then
2. The error dialog "CallingApp Error = =609"

The 'launch application' command is designed to open an application WITHOUT executing the run handler. That is its purpose. This is broken in Mt Lion. I think this is a really serious bug.

I would like to see your comments before making a bug report.



 _______________________________________________
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: launch broken in Mt Lion
      • From: Luther Fuller <email@hidden>
    • Re: launch broken in Mt Lion
      • From: Luther Fuller <email@hidden>
    • Re: launch broken in Mt Lion
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Calling VBA Functions Embedded In AppleScript
  • Next by Date: Re: launch broken in Mt Lion
  • Previous by thread: Re: Calling VBA Functions Embedded In AppleScript
  • Next by thread: Re: launch broken in Mt Lion
  • Index(es):
    • Date
    • Thread