Re: Load Script
Re: Load Script
- Subject: Re: Load Script
- From: Luther Fuller <email@hidden>
- Date: Sat, 28 May 2011 06:47:20 -0500
On May 28, 2011, at 6:11 AM, Axel Luttgens wrote: on entryPointHandler(AppName) (((path to me) as text) & "Contents:Resources:MenuItemScripts:" & AppName & ".scpt") as alias run (load script the result) end entryPointHandler
That's a nice improvement to use the AppName in a single entryPointHandler. The entryPointHandler should also contain a master error catcher, like this ...
on entryPointHandler() try (((path to me) as text) & "Contents:Resources:MenuItemScripts:NameOfSome.scpt") as alias run (load script the result) on error errText number errNr if errNr = -128 then return else if errNr = -2700 then my showInstruction(errText) else my showError(errText, errNr) end if end try end entryPointHandler ----------------------------------------------------------
Does it accurately mimic my code? I think you've got it!
|
_______________________________________________
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