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

Re: launch broken in Mt Lion


  • Subject: Re: launch broken in Mt Lion
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 17 Mar 2013 08:52:01 -0500

On 9 Jan 2013, I posted a test script revealing a bug with AppleScript's 'launch' command in Mountain Lion (10.8.2).
(Reposted below and reported as Bug ID# 12988982.)
I have installed 10.8.3 and tested again. Surely this bug has been fixed.
But, NO!. This bug still exists. @#$%^!

On Jan 9, 2013, at 3:42 PM, I wrote:

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.

 _______________________________________________
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: Lists <email@hidden>
  • Prev by Date: Re: Is there a way to run Javascript in an Applescript script?
  • Next by Date: Re: launch broken in Mt Lion
  • Previous by thread: Re: Is there a way to run Javascript in an Applescript script?
  • Next by thread: Re: launch broken in Mt Lion
  • Index(es):
    • Date
    • Thread