• 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: 'File permission error' - partially solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 'File permission error' - discussion, question about the parsing..
      • From: Jim Witte <email@hidden>
  • Prev by Date: Re: Okay, I really do have a URL Access Scripting question now...
  • Next by Date: Check if iTunes is playing?
  • Previous by thread: Re: Okay, I really do have a URL Access Scripting question now...
  • Next by thread: Re: 'File permission error' - discussion, question about the parsing..
  • Index(es):
    • Date
    • Thread