Re: launch broken in Mt Lion
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.
(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