Re: iTunes : "File permission error"
Re: iTunes : "File permission error"
- Subject: Re: iTunes : "File permission error"
- From: "Hiroshi T." <email@hidden>
- Date: Sun, 28 May 2006 21:41:45 +0900
Thank you for your continued support.
On May 28, 2006, at 4:42 PM, Axel Luttgens wrote:
Hmm... a bit strange.
May I ask you the output of following shell commands:
sw_vers
id
cd
pwd
Here is the result:
[kelvino:~:76] sw_vers
ProductName: Mac OS X
ProductVersion: 10.3.9
BuildVersion: 7W98
[kelvino:~:77] id
uid=777(hrst) gid=20(staff) groups=20(staff), 777(hrst)
[kelvino:~:78] cd
[kelvino:~:79] pwd
/Volumes/Local-1/LocalUsers/hrst
[kelvino:~:80]
My home directory is not on the root file system. I made a symbolic
link after creating the user 'hrst'.
[kelvino:~:86] ls -l /Users/LocalUsers
lrwxr-xr-x 1 root admin 27 9 Oct 2005 /Users/LocalUsers@ ->
/Volumes/Local-1/LocalUsers
[kelvino:~:87]
Seems that somewhat more forensics is needed. ;-)
Could you select in iTunes a sample of tracks so as to have an example
of every relevant combinations (file created with RS vs AHP, file
created as bookmarkable vs non-bookmarkable, problematic vs non
problematic file) and run following script with the events log
opended:
tell application "iTunes"
repeat with curTrack in selection
if class of curTrack is file track then
kind of curTrack
do shell script "ls -alo " & quoted form of POSIX path of
(location of curTrack as string)
end if
end repeat
end tell
and then reproduce here the contents of the events log?
As well as tell us the combination for each of the selected files?
HTH,
Axel
As to trying your script, I made six audio files:
RadioShark-AAC-Bookmarkable.m4b
RadioShark-AAC-Non_Bookmarkable.m4a
AHJP-AAC-Bookmarkable.m4a
AHJP-AAC-Non_Bookmarkable.m4a
AHJP-ALC-Bookmarkable.m4a
AHJP-ALC-Non_Bookmarkable.m4a
I checked the "bookmarkability" of these files in iTunes by actually
playing.
The results conform to the law: B-file fails, N-file succeeds.
The keyword is "protected". "Protected" files cannot be made
non-bookmarkable.
I do not understand why these applications create "protected" files for
bookmarkable setting and
non-protected files for non-bookmarkable setting.
I'd like to know how to turn the "protection" off.
Here is the script I tried. I made a little modification so that the
result of
"set bookmarkable" command can be seen:
==============================================================
tell application "iTunes"
repeat with curTrack in selection
if class of curTrack is file track then
kind of curTrack
do shell script "ls -alo " & quoted form of POSIX path of (location
of curTrack as string)
set status to "turning off: Success"
try
set bookmarkable of curTrack to false
on error
set status to "turning off: Error!"
end try
do shell script "echo " & status
set status to "turning on: Success"
try
set bookmarkable of curTrack to true
on error
set status to "turning on: Error!"
end try
do shell script "echo " & status
end if
end repeat
end tell
==============================================================
Here is the event log:
==============================================================
tell application "iTunes"
count selection
6
get class of item 1 of selection
file track
get kind of item 1 of selection
"Protected AAC audio file"
get location of item 1 of selection
alias
"Local-2:BackUps:hrst:Music:radioSHARK:RadioShark-AAC-Bookmarkable.m4b"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/radioSHARK/RadioShark-AAC-
Bookmarkable.m4b'"
"-rw-r--r-- 1 hrst unknown - 365260 28 May 20:51
/Volumes/Local-2/BackUps/hrst/Music/radioSHARK/RadioShark-AAC-
Bookmarkable.m4b"
set bookmarkable of item 1 of selection to false
do shell script "echo turning off: Error!"
"turning off: Error!"
set bookmarkable of item 1 of selection to true
do shell script "echo turning on: Error!"
"turning on: Error!"
get class of item 2 of selection
file track
get kind of item 2 of selection
"AAC audio file"
get location of item 2 of selection
alias
"Local-2:BackUps:hrst:Music:radioSHARK:RadioShark-AAC-
Non_Bookmarkable.m4a"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/radioSHARK/RadioShark-AAC-
Non_Bookmarkable.m4a'"
"-rw-r--r-- 1 hrst unknown - 205796 28 May 20:51
/Volumes/Local-2/BackUps/hrst/Music/radioSHARK/RadioShark-AAC-
Non_Bookmarkable.m4a"
set bookmarkable of item 2 of selection to false
do shell script "echo turning off: Success"
"turning off: Success"
set bookmarkable of item 2 of selection to true
do shell script "echo turning on: Success"
"turning on: Success"
get class of item 3 of selection
file track
get kind of item 3 of selection
"Protected AAC audio file"
get location of item 3 of selection
alias
"Local-2:BackUps:hrst:Music:Test-Bookmarkable:AHJP-AAC-
Bookmarkable.m4a"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-AAC-
Bookmarkable.m4a'"
"-rw-r--r-- 1 hrst unknown - 851556 28 May 20:45
/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-AAC-
Bookmarkable.m4a"
set bookmarkable of item 3 of selection to false
do shell script "echo turning off: Error!"
"turning off: Error!"
set bookmarkable of item 3 of selection to true
do shell script "echo turning on: Error!"
"turning on: Error!"
get class of item 4 of selection
file track
get kind of item 4 of selection
"AAC audio file"
get location of item 4 of selection
alias
"Local-2:BackUps:hrst:Music:Test-Bookmarkable:AHJP-AAC-
Non_Bookmarkable.m4a"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-AAC-
Non_Bookmarkable.m4a'"
"-rw-r--r-- 1 hrst unknown - 725239 28 May 20:44
/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-AAC-
Non_Bookmarkable.m4a"
set bookmarkable of item 4 of selection to false
do shell script "echo turning off: Success"
"turning off: Success"
set bookmarkable of item 4 of selection to true
do shell script "echo turning on: Success"
"turning on: Success"
get class of item 5 of selection
file track
get kind of item 5 of selection
"Protected Apple Lossless audio file"
get location of item 5 of selection
alias
"Local-2:BackUps:hrst:Music:Test-Bookmarkable:AHJP-ALC-
Bookmarkable.m4a"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-ALC-
Bookmarkable.m4a'"
"-rw-r--r-- 1 hrst unknown - 2024016 28 May 20:42
/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-ALC-
Bookmarkable.m4a"
set bookmarkable of item 5 of selection to false
do shell script "echo turning off: Error!"
"turning off: Error!"
set bookmarkable of item 5 of selection to true
do shell script "echo turning on: Error!"
"turning on: Error!"
get class of item 6 of selection
file track
get kind of item 6 of selection
"Apple Lossless audio file"
get location of item 6 of selection
alias
"Local-2:BackUps:hrst:Music:Test-Bookmarkable:AHJP-ALC-
Non_Bookmarkable.m4a"
do shell script "ls -alo
'/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-ALC-
Non_Bookmarkable.m4a'"
"-rw-r--r-- 1 hrst unknown - 1969606 28 May 20:41
/Volumes/Local-2/BackUps/hrst/Music/Test-Bookmarkable/AHJP-ALC-
Non_Bookmarkable.m4a"
set bookmarkable of item 6 of selection to false
do shell script "echo turning off: Success"
"turning off: Success"
set bookmarkable of item 6 of selection to true
do shell script "echo turning on: Success"
"turning on: Success"
end tell
==============================================================
_______________________________________________
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