Re: 'File permission error' - partially solved
Re: 'File permission error' - partially solved
- Subject: Re: 'File permission error' - partially solved
- From: kai <email@hidden>
- Date: Sun, 3 Apr 2005 16:43:03 +0100
On Sun, 3 Apr 2005 03:43:10 -0500, Jim Witte wrote:
On Apr 2, 2005, at 1:11 PM, Jim Witte wrote:
set (volume adjustment of every track of playlist named tPlaylist )to
0 -- ***
"iTunes got an error: file permission error" iTunes is running now,
and playing a song from the specified playlist. This also
I think I figured out the error (which I would consider a bug..): if
one or more of the files in the playlist does not exist, the file
permission error results. Is there a way to get this to work right
without wrapping the whole thing in a 'try .. on error ##' block?
Something like an 'ignoring errors' clause?
Don't think so, Jim.
If iTunes had some filtering mechanism (which it doesn't appear to),
the ideal way might be to filter out missing files with something like:
< set (volume adjustment of every track of playlist named tPlaylist
whose location is not missing value) to 0 >. No go there, though.
I therefore think you may be stuck with a repeat loop - something along
the lines of:
-----------
repeat with t in every track of playlist named tPlaylist
try
set t's volume adjustment to 0
end try
end repeat
-----------
---
kai
_______________________________________________
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