Re: iTunes : "File permission error"
Re: iTunes : "File permission error"
- Subject: Re: iTunes : "File permission error"
- From: "Hiroshi T." <email@hidden>
- Date: Sat, 27 May 2006 22:55:31 +0900
Thanks for your reply, but I got same error.
tell application "iTunes"
if selection is {} then
display dialog "No tracks selected" buttons {"Cancel"} default button
1 with icon 2 giving up after 5
else
set sel to a reference to selection
repeat with i from 1 to count items of sel
set curTrack to item i of sel
if class of curTrack is file track then
if bookmarkable of curTrack is true then
set bookmarkable of curTrack to false
end if
end if
end repeat
end if
end tell
On May 27, 2006, at 6:27 PM, Ruth Bygrave wrote:
On 27 May 2006, at 08:12, Hiroshi T. wrote:
Hello,
I made a small script to make selected tracks not bookmarkable:
tell application "iTunes"
set sel to a reference to selection
repeat with i from 1 to count items of sel
set curTrack to item i of sel
if class of curTrack is file track then
set bookmarkable of curTrack to false
end if
end repeat
end tell
But "File permission error" occurs. I'm using iTunes 6.0.4.
Tracks are recorded either in Apple Lossless or in AAC format and
have ".m4a" extension.
The song files and "iTunes Music Library.xml" have write permission
and I can change their track number, for example.
Any ideas?
_
My god, I'm a beginner, and I can actually _answer_ this one!
Exactly the same thing happened to me (the other way round, as I was
trying to make audiobooks bookmarkable)aa, and I solved it by trial
and error.
I tested it just now (clipping this in and changing it the other way
round from my audiobooks script), and it works fine.
What you want is:
if bookmarkable of t is true then
set bookmarkable of t to false
end if
_______________________________________________
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