• 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: Fri, 11 Jan 2013 10:35:38 -0600

On Jan 10, 2013, at 3:21 PM, Shane Stanley wrote:

On 11/01/2013, at 12:23 AM, Luther Fuller <email@hidden> wrote:

My 'hostAppl' application's Resources folder contains about half-dozen application bundles with code like this …

on run
tell application "Finder" to set hostAppl to (container of container of container of (path to me)) as text
try
launch application hostAppl
tell application hostAppl to doSomeHandler()
on error errText number errNr
activate me
"doSomeHandler Error = " & errNr & return & errText
tell me to display dialog the result buttons {"OK"} default button 1
end try
end run -----------------------------

Is there some reason you can't move doSomeHandler() and the rest into their own app that doesn't have a run handler?

doSomeHandler is in the Main.app script because it needs to use other handlers and properties also in the Main.app script. In other words, I could move doSomeHandler into the helper application, but then things get really messy.

The helper application MUST have a run handler because it is activated by choosing its alias file from a Dock menu. It's the only way this will work.

If you want to see more details, download MailWing at http://lutherfuller.com/SoftwareCat.html
(and if you are using Mt Lion, you will get -609 errors for these menu items until Apple fixes the 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: Luther Fuller <email@hidden>
    • Re: launch broken in Mt Lion
      • From: Axel Luttgens <email@hidden>
References: 
 >launch broken in Mt Lion (From: Luther Fuller <email@hidden>)
 >Re: launch broken in Mt Lion (From: Shane Stanley <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: speak text of email
  • Next by Date: Re: Calling VBA Functions Embedded In AppleScript
  • Previous by thread: Re: launch broken in Mt Lion
  • Next by thread: Re: launch broken in Mt Lion
  • Index(es):
    • Date
    • Thread