• 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: Script length limitations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Script length limitations
      • From: Zack Jarrett <email@hidden>
References: 
 >Script length limitations (From: Zack Jarrett <email@hidden>)

  • Prev by Date: Re: Spotlight & UI Scripting
  • Next by Date: Re: Script length limitations
  • Previous by thread: Re: Script length limitations
  • Next by thread: Re: Script length limitations
  • Index(es):
    • Date
    • Thread