• 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: Shane Stanley <email@hidden>
  • Date: Fri, 11 Jan 2013 08:21:58 +1100

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?

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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>
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>)

  • Prev by Date: Re: Automating Receive Emails
  • Next by Date: speak text of email
  • Previous by thread: Re: launch broken in Mt Lion
  • Next by thread: Re: launch broken in Mt Lion
  • Index(es):
    • Date
    • Thread