• 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
definition list recommendations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

definition list recommendations?


  • Subject: definition list recommendations?
  • From: email@hidden
  • Date: Tue, 25 Jan 2005 06:54:38 -0700

I am parsing a file and replacing codes with strings.
The codes and string definitions number just over 1850 items.
I'm listing the code as a property label and the replacement string as the definition.
I get a stack error when I try to compile all of them as properties in Script Debugger:

property r5 : "<*p$><&pbu(219,258,144,144,n,0,,,,n,,,f,,,,,,,\"SVR:ART:filename\")>"
--repeated over 1800 times
--then I go through the data line at a time (or I would if I could)
repeat with n from 1 to (count of thedata)
if item n of thedata = "r5" then
set currentline to r5
else if item n of thedata begins with "cd" then
set currentline to cd
--etc, etc, etc...

When I make just the property list in Script Editor, it will save without errors,
but when I add the conditions to handle all of the replacements,
it gives me the stack error too.

Is there a way to accomplish this to avoid stack errors?
Are there other limitations I should be aware of?
Is there an easier way?
--
David Stevens
 _______________________________________________
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

  • Follow-Ups:
    • Re: definition list recommendations?
      • From: "Shane Stanley" <email@hidden>
  • Prev by Date: Re: Reading a pdf text file
  • Next by Date: Re: Tar/gzip is messing up icons
  • Previous by thread: Re: scripting print and fax in 10.3.7
  • Next by thread: Re: definition list recommendations?
  • Index(es):
    • Date
    • Thread