Timeout problem with iTunes 4.9
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