• 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
Bug Report: Large Scripts (ATTN Apple Reps)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug Report: Large Scripts (ATTN Apple Reps)


  • Subject: Bug Report: Large Scripts (ATTN Apple Reps)
  • From: Colin Stagner <email@hidden>
  • Date: Sun, 1 Feb 2004 15:10:15 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a very large AppleScript (over 8,000 lines long, including comments) that I have been working on over the years. Unfortunately, AppleScript won't let me make it any bigger.

I have found that if I duplicate one of the larger handlers of my script (for instance, mainLoop()) and rename it as something else (such as mainLoop2()), then...

Using the "New script" (not New text) option in Smile 2.5.9:
1. The script compiles OK. No error messages are generating during compilation.
2. The script APPEARS to save OK.
3. The script cannot be reopened if closed. No error messages are generated.
4. Attempts to load the script in the application it is supposed to run in (TWScripter) will generate a "Unable to load script: Insufficient stack space" error.

By duplicating an existing handler with code in it that I know works, the only complexity I have added is another handler (and tests have shown I can go over the stack space limit without adding another handler). So it seems to me that the only thing causing this error is the length of the script itself.

There is also another bug I have tracked down with the help of Emmanuel (from Satimage Software, the developer of Smile). To get this script to compile it is necessary to tweak the AppleScript formatting from the Formatting pane in Script Editor so that all styles except for "New text (uncompiled)" are formatted the same. (The reason for this is that otherwise the script would have more than 32765 style changes-- not allowed.)

I have started several forum posts with regards to my problems. They are (from most recent to oldest):

http://bbs.applescript.net/viewtopic.php?p=24647#24647
http://discussions.info.apple.com/WebX?email@hiddenGluc2j.0@.688da0b0
http://discussions.info.apple.com/WebX?email@hiddenqbxdAh.0@.599e7381

I am currently trying to split the script up into multiple files-- I may yet succeed. However, the people over at the MacScripter BBS seem to think this may be a bug and that my problem should be posted here.

For the curious, the bored, and those who want to see what I am talking about:

The script file has been posted for download at:

http://stagner.dnsalias.org/BotScript New.dmg

as a compressed Disk Image.

The application whose event dictionary is required for the script to properly compile (TWScripter) can be found at:

http://home.austin.rr.com/mkkoch/

Replies to this message can be either directed at the list or to

cbs-228-at-earthlink-dot-net
(Remove the hyphens and change "at" to "@" and "dot" to ".")

- -Colin Stagner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAHWs6yNXfO5OesjARAhj6AKCyjeqUeXhRqgnNPXX2j4HEgfZVGQCgkvTk
mWSzyct113+68NA0hBdJiS4=
=K0HQ
-----END PGP SIGNATURE-----
_______________________________________________
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: Bug Report: Large Scripts (ATTN Apple Reps)
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Shell-wrap a file in 2 variable strings
  • Next by Date: Can Applescript be forced to execute sequentially?
  • Previous by thread: Re: Shell-wrap a file in 2 variable strings
  • Next by thread: Re: Bug Report: Large Scripts (ATTN Apple Reps)
  • Index(es):
    • Date
    • Thread