Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

timeout



Trying to convert an audio track to a different encoding and then do something with the result (e.g. audio CD to AAC, then change album name). Why doesn't this work properly with timeout?


tell application "iTunes"
   with timeout of 3000 seconds
       convert aTrack
   end timeout
   --do otherStuff
end tell
When run, the script instantly throws an "Apple Event timed out" error and then starts to convert the track, but the script is no longer running. It's not even to do with the CD drive being slow, because converting a three-minute audio track on the hard drive does exactly the same thing even though the convert is very fast.

What obvious thing am I missing? All the books just say how timeout works, they don't seem to mention what's happening when the application seems to completely ignore it...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.