• 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: Scott Babcock <email@hidden>
  • Date: Mon, 27 Sep 2010 17:02:19 +0000
  • Thread-topic: Script length limitations

I've found that the limit appears to be most closely associated with the compiled script object size. Once the compile size approaches 1 MB, I start to run into issues. Each application the script talks to also appears to affect the size limit, probably due to the need to pull in application terminology. My solution has been to split my code into smaller objects that talk to each other.

-----Original Message-----

Date: Fri, 24 Sep 2010 20:29:37 -0700
From: Jon Pugh <email@hidden>
Subject: Re: Script length limitations
To: <email@hidden>
Message-ID: <p06240808c8c31c9bb7b8@[192.168.1.13]>
Content-Type: text/plain; charset="us-ascii"

At 9:56 AM +1000 9/25/10, Shane Stanley wrote:
>This may not seem very helpful, but: your conclusion about the cause of the
>problem sounds correct, and if it is, you already know what is probably the
>only workaround -- less code in your try blocks. Can you try breaking up
>your try blocks into multiple smaller ones?

Shane's absolutely correct.  This is undoubtedly a long standing issue with AppleScript (as all of its issues are) so waiting for a fix from Apple is nonsensical.

Make your emitter close and restart your try block every 3000 statements or so.

Jon

 _______________________________________________
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>
  • Prev by Date: Re: Click and drag
  • Next by Date: Re: Script length limitations
  • Previous by thread: Re: FileMaker Error on Do Script
  • Next by thread: Re: Script length limitations
  • Index(es):
    • Date
    • Thread