• 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: AppleScript's script size limit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript's script size limit


  • Subject: Re: AppleScript's script size limit
  • From: Emmanuel <email@hidden>
  • Date: Mon, 4 Nov 2002 01:23:47 +0100

At 3:17 PM +0100 01/11/02, christian vick wrote:

Yes, I've illustrated exactly this in my response. A script with many
handlers errors earlier than one without handlers (which probably 'never'
errors).

Excerpts from tests I've performed.

I note that I can trigger two kinds of errors: memory full or internal table overflow. When I get the latter, AppleScript is broken and I have to quit the editor.

1. I could compile:

----------------
on hi(param1, param2)
activate
end hi
----------------

with i from 1 to 2000 (h1, h2 etc ... h2000)

2. With a longer handler, and still for 2000 handlers, I get the -108 memory error.

----------------
on hi(param1, param2)
activate
display dialog param1 & \": \" & param2
end hi
----------------

3. With a longer handler name, and still for 2000 handlers, I get the internal table overflow.

----------------
on handlerwithalongernamei(param1, param2)
activate
end
----------------


The tests above and other tests with more or less bizarre results prompt me to propose to the original poster that he change the names of all the handlers into shorter names. I would do it also with the variable names, maybe they sort of live in the same space.

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AppleScript's script size limit
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: AppleScript's script size limit (From: christian vick <email@hidden>)

  • Prev by Date: Re: Busy Status
  • Next by Date: Re: AppleScript's script size limit
  • Previous by thread: Re: AppleScript's script size limit
  • Next by thread: Re: AppleScript's script size limit
  • Index(es):
    • Date
    • Thread