• 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
My first question, please be gentle (stack overflow)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My first question, please be gentle (stack overflow)


  • Subject: My first question, please be gentle (stack overflow)
  • From: Matt Gregory <email@hidden>
  • Date: Mon, 25 Jul 2005 10:57:07 -0400

Hi All,

Usually I lurk around on a list a while before posting.  But in this case I've got a problem that's driving me nuts.  Google isn't helping and neither is this list's archives.  Perhaps my search-fu is weak.

I've written a script that reads through my iTunes Library, creates a list of unique artists, calls an Amazon.com web service for each one to find an album list, does some date comparison to filter out anything with a release date older than 7 days prior, and finally writes it all to an HTML file and loads it in Safari.  The end result is a table showing me what new albums of artists in my Library are coming out or have come out in the last week.

The problem:
This all works fine while running in the Script Editor (OS X 10.3.9).  But when I save the script as an Application and run it, I get the error saying the script "could not be saved because the stack overflowed."  This error always happens at the end and the output is always displayed and always looks fine.  I can even modify the script to have it look for everything for the last few years (to make the output huge) and it still all works fine except the stack overflowed error pops up at the very end.  I've tried ""-ing out all my variables in loops, changing my string concatenation to using lists instead and nothing helps. 

But wait, there's more:  I also have a strange behavior in Script Editor where for some reason (I can't reproduce) I get the error "could not save file." when trying to save the script in any format.  Sometimes this problem goes away by itself and after some more editing it will save the next time I try and sometimes I have to cut-and-paste the script into a new editor and save it there.  I wonder if the two problems are related, since they both have "saving" in common?

I'm hoping this is a common thing that will be easy for someone to answer.  I'm not doing any recursion.  I do have one nested loop, but the error never occurs in the middle of processing.  And I am putting together a pretty long string (the HTML output), but again, the error occurs after it's been used and the output is displayed.  And oh yes, the script file's permissions are fine.  I guess I could +rw for everybody, I haven't tried that yet, but I'd be surprised if it helped.  Any advice is greatly appreciated!

matt.
 _______________________________________________
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

  • Prev by Date: Re: set myList to myList & ... and unexpected results
  • Next by Date: Print selected file in the Finder
  • Previous by thread: oracle calendar
  • Next by thread: Re: My first question, please be gentle (stack overflow)
  • Index(es):
    • Date
    • Thread