• 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: AppleScript-Users Digest, Vol 7, Issue 338
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 7, Issue 338


  • Subject: Re: AppleScript-Users Digest, Vol 7, Issue 338
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 27 Jun 2010 22:16:51 +0200


Le 27 juin 2010 à 21:46, tom wible a écrit :



On Jun 27, 2010, at 3:00 PM, email@hidden wrote:

Since etvSched has been set to a reference to an object of EyeTV, one is just asking EyeTV to do something (one is sending an AppleEvent to EyeTV)...

yes, i saw my error(appending my local script objects to my list of eyetv schedules) & corrected it, which brought me to my main problem: the code works perfectly when run from script editor, but seems to have some major problem when i try to run it as a stay-open droplet.


the 1st schedule is processed correctly, the 2nd takes 2x as long, the 3rd grinds to a crawl, using >50-80% cpu, slowly increasing memory usage, until i kill it or it dies. all other functions (processing tvpi files, emailing them to my dvr) continue to work perfectly as before, just the eyetv tell is affected.

there is some major difference between the s.e. & droplet runtime environments...

I guess that the behaviour is the same but when you run the script in the editor itsn't running several times.


I assume that this extract from a response in the Apple discussions forum apply to your problem :

AppleScript's copy command does a 'deep' copy and AppleScript's script object contains its entire run-time context behind the scenes, when you executes the statement above repeatedly, |old register| grows exponentially in each iteration (i.e. it will contain its previous self as the context of current Register script object) and eventually makes script to be unresponsive (probably due to its memory manangement overload).

For more details, look at :

http://discussions.apple.com/thread.jspa?threadID=2474924&tstart=0&start=0

My old friend Hiroto who wrote the lines above gave a revised version of the wrong script.

Yvan KOENIG (VALLAURIS, France) dimanche 27 juin 2010 22:16:16



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: AppleScript-Users Digest, Vol 7, Issue 338 (From: tom wible <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 7, Issue 338
  • Next by Date: Dumb iPhoto question
  • Previous by thread: Re: AppleScript-Users Digest, Vol 7, Issue 338
  • Next by thread: Re: Script Editor vs. Applet
  • Index(es):
    • Date
    • Thread