• 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: What are the limitations of the AppleScript data structure and tools?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are the limitations of the AppleScript data structure and tools?


  • Subject: Re: What are the limitations of the AppleScript data structure and tools?
  • From: Takaaki Naganoya <email@hidden>
  • Date: Thu, 10 Mar 2005 18:55:41 +0900

You can automate ScriptEditor by itself and try the limitation of
AppleScript.

I tested handler limitation by generationg AppleScript.


script testHandlers
    on test_00001()
        return 1
    end test_00001

    on test_00002()
        return 2
    end test_00002
        .
    .
    .
    on test_0XXXX()
        return XXXX
    end test_0XXXX
end script


2000 Handler -> Compile OK, Save OK
2100 Handler -> Compile OK, Save OK (But not saved)
2200 Handler -> Compile OK, Save OK (But not saved)
2300 Handler -> Compile OK, Save OK (But not saved)
2400 Handler -> Compile OK, Save OK (But not saved)
2500 Handler -> Compile OK, Save OK (But not saved)
5000 Handler -> Script Editor displays "Overflow of internal table" message
in compiling


I think "limit on the number of handler calls in a single AppleScript source
file" is about 2,000. This number may be changed by the length of character
of each handler.

--
Takaaki Naganoya
email@hidden
http://www.appleco.jp/piyomarusoft/


On 05.3.10 8:06 AM, "Scott Babcock" <email@hidden> wrote:

> We're developing a large set of AppleScript libraries that we use to
> wrap the Office application dictionaries and to encapsulate common tasks
> to make the task of creating and maintaining suites of test scripts
> simpler and more robust. Some of these libraries have grown quite large,
> and we're trying to get a handle on the limitations of the data
> structures and tools associated with AppleScript code.
>
> - Is there a fixed limit on AppleScript source file size (number of
> lines, number of characters, etc.)?
> - Is there a fixed limit on the number of handler definitions in a
> single AppleScript source file?
> - Is there a fixed limit on the number of handler calls in a single
> AppleScript source file?
> - Is there a fixed limit on the size of lists, records, strings, etc.?
>
> I see that this topic was kicked around a few years ago (Thanks, Paul!),
> but I didn't see any definitive answers - only anecdotes.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What are the limitations of the AppleScript data structure and tools? (From: "Scott Babcock" <email@hidden>)

  • Prev by Date: Re: add name/date to picture
  • Next by Date: Locked wakeup... Why won't this work?
  • Previous by thread: What are the limitations of the AppleScript data structure and tools?
  • Next by thread: Why does this iPhoto applescript fail to produce new albums with photos in them?
  • Index(es):
    • Date
    • Thread