Re: Script length limitations
Re: Script length limitations
- Subject: Re: Script length limitations
- From: Stan Cleveland <email@hidden>
- Date: Mon, 27 Sep 2010 17:22:06 -0700
On Sep 24, 2010, at 4:03 PM, Zack Jarrett wrote:
> It's not uncommon for my program to output an AppleScript script with 4000+ operations occurring inside of one try block. These operations include...lots of custom handlers that I've defined.
Hi Zack,
I'm curious as to how you're including handlers inside a try block. In a test, I couldn't get it to compile unless I put the handler in a script object. But that adds a level to the hierarchy for calling the handler:
scriptObject's handlerCall()
Instead of just:
handlerCall()
However you've done it, if you could move the handlers outside the try block and put them at the bottom of each script, perhaps it would reduce the number of code lines enough to make a difference.
Stan C.
_______________________________________________
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