• 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
Timeout problem with iTunes 4.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Timeout problem with iTunes 4.9


  • Subject: Timeout problem with iTunes 4.9
  • From: Stephen Lanza <email@hidden>
  • Date: Wed, 13 Jul 2005 19:00:19 -0400

I am writing a script to convert a podcast to aac format while renaming it
and changing a few other attributes. I am using Script Debugger to debug it
and everything is working out well. I have the script as a compiled script
and place in the iTunes script folder so I can access it in iTunes.

So far so good.

When I try to run it from the iTunes script menu, I get an error -1712
indicating a time out error. When I run it in Script Debugger (with or
without debug mode enabled it runs without any problems.

The code snippet that is failing is:

with timeout of 72000 seconds
    set name of theTrack to theShow
    set genre of theTrack to "Talk Radio" -- need the talk radio genre
    set artist of theTrack to ""
    set composer of theTrack to ""
    set album of theTrack to ""
    set track number of theTrack to 0
    try
        set newTrack to convert fileRef
        set newTrackItem to item 1 of newTrack
        set newTrackLoc to location of item 1 of newTrack
    on error m number n
        set current encoder to encoder origEncoder
        if n is -1728 then
            activate
            my alert_user_and_cancel("User Canceled.")
        end if
        my alert_user_and_cancel((n as string) & " " & m)
    end try
end timeout

Any ideas on why this is happening? Thanks.

Stephen Lanza
Software Complement


 _______________________________________________
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: soap went south?
  • Next by Date: "delay sent" for Apple's Mail application...
  • Previous by thread: Re: soap went south?
  • Next by thread: "delay sent" for Apple's Mail application...
  • Index(es):
    • Date
    • Thread