• 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
Solved: Script's Stack Overflowed???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solved: Script's Stack Overflowed???


  • Subject: Solved: Script's Stack Overflowed???
  • From: "Bourque, Jason" <email@hidden>
  • Date: Tue, 13 Mar 2001 10:14:16 -0500

I found that long concatenated strings are subject to the error.


So I changed this

set settingsToWrite to ,
(""& return& ,
"Date project was created ~ "& currentDate& return& ,
"Folder to move files from ~ "& (item 1 of syncList)& return& ,
"Folder to to move files to ~ "& (item 2 of syncList)& return& ,
"Folder that will backup replaced files ~ "& pushFolder& return& ,
"Trash folder b extra items ~ "& TrashExtraItems& return& ,
"Two way synchronization ~ "& TwoWaySync& return& ,
"Foreground or Background ~ "& finderActivate& return& ,
"Move or Copy the File ~ "& copyItem& return& ,
"Move by file type ~ "& fileTypeList& return& ,
"Move by prefix or suffix ~ "& startsWith& "><"& endsWith& return& ,
"Move by label of the file ~ "& moveByLabel& return& ,
"---> T/F = move/avoid ~ "& moveByOrAvoid& return& ,
"---> Label numbers list ~ "& MoveBylabelerList& return& ,
"Compare the modification dates ~ "& checkModDates& return& ,
"Change file name after move ~ "& reName& return& ,
"---> List of changes to make ~ "& changesToMakeList& return& ,
"---> Change case to "& case2Be& " ~ "& reCase& return& ,
"---> Prefix to add ~ "& prefixText& return& ,
"---> Suffix to add ~ "& suffixText& return& ,
"---> Prefix to remove ~ "& removePrefixText& return& ,
"---> Suffix to remove ~ "& removeSuffixText& return& ,
"---> Search text ~ "& searchText& return& ,
"---> Replace text ~ "& replaceText& return& ,
"Label processed files ~ "& labelYesNo& return& ,
"---> Label number ~ "& labelerNum& return& ,
"Shutdown after synchronization ~ "& shutDownBoolean& return& ,
""& return& return& return)

to this and it fixed the problem.

set settingsToWrite to ,
{"", return, ,
"Date project was created ~ ", currentDate, return, ,
"Folder to move files from ~ ", (item 1 of syncList), return, ,
"Folder to to move files to ~ ", (item 2 of syncList), return, ,
"Folder that will backup replaced files ~ ", pushFolder, return, ,
"Trash folder b extra items ~ ", TrashExtraItems, return, ,
"Two way synchronization ~ ", TwoWaySync, return, ,
"Foreground or Background ~ ", finderActivate, return, ,
"Move or Copy the File ~ ", copyItem, return, ,
"Move by file type ~ ", fileTypeList, return, ,
"Move by prefix or suffix ~ ", startsWith, "><", endsWith, return, ,
"Move by label of the file ~ ", moveByLabel, return, ,
"---> T/F = move/avoid ~ ", moveByOrAvoid, return, ,
"---> Label numbers list ~ ", MoveBylabelerList, return, ,
"Compare the modification dates ~ ", checkModDates, return, ,
"Change file name after move ~ ", reName, return, ,
"---> List of changes to make ~ ", changesToMakeList, return, ,
"---> Change case to ", case2Be, " ~ ", reCase, return, ,
"---> Prefix to add ~ ", prefixText, return, ,
"---> Suffix to add ~ ", suffixText, return, ,
"---> Prefix to remove ~ ", removePrefixText, return, ,
"---> Suffix to remove ~ ", removeSuffixText, return, ,
"---> Search text ~ ", searchText, return, ,
"---> Replace text ~ ", replaceText, return, ,
"Label processed files ~ ", labelYesNo, return, ,
"---> Label number ~ ", labelerNum, return, ,
"Shutdown after synchronization ~ ", shutDownBoolean, return, ,
"", return, return, return}

Hope this helps anyone in the future

Thanks,

Jason Bourque
AppleScript Developer
MFS Investment Management
617-954-5312


> ----------
> From: Jason Bourque
> Sent: Monday, March 12, 2001 9:13 PM
> To: AppleScript Mailing Lists
> Subject: Script's Stack Overflowed???
>
> I have a script that runs fine in Script Debugger. It's huge SD says Its
> 49k
> and the file size is 248k.
>
> So it is saved as a stay open app with 5000k memory allocated to it.
>
> My question is what causes the error when I double click on it
>
> "Could no run the script "Script name" because Script's Stack Overflowed."
> -2706
>
> It doesn't even get to the first line of the run statement.
>
> Any ideas?
>
> Jason Bourque
>
> P.S. Please respond to the list so I can get respones at my work address
> tomorrow.


  • Follow-Ups:
    • Re: Solved: Script's Stack Overflowed???
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: applescript-users digest, Vol 2 #488 - 8 msgs
  • Next by Date: Re: trim_line problems
  • Previous by thread: Re: applescript-users digest, Vol 2 #488 - 8 msgs
  • Next by thread: Re: Solved: Script's Stack Overflowed???
  • Index(es):
    • Date
    • Thread