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

Re: iTunes : "File permission error"


  • Subject: Re: iTunes : "File permission error"
  • From: Gary Yuen <email@hidden>
  • Date: Sun, 28 May 2006 11:12:59 -0700

Hi Hiroshi,

I read up about this a bit. It's true bookmarkable files that were created as .m4b's cannot made un-bookmarked within iTunes. You would need to modify the .m4b and turn it onto an unprotected .m4a. You do this by changing the creator code to " " and then renaming the file to .m4a. You would do the reverse to make a .m4a into a .m4b. Since iTunes has the ability to set a bookmark for mp3s and .m4as, if you don't mind these files not showing up as Audiobooks, keeping them as such might make things more manageable for you.

If you want to script all of this, you'd have to modify the creator code of the file, and then rename it. I'm not sure if iTunes would lose track of the file in this case.

Gary

On May 28, 2006, at 5:41 AM, Hiroshi T. wrote:

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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >iTunes : "File permission error" (From: "Hiroshi T." <email@hidden>)
 >Re: iTunes : "File permission error" (From: Axel Luttgens <email@hidden>)
 >Re: iTunes : "File permission error" (From: "Hiroshi T." <email@hidden>)
 >Re: iTunes : "File permission error" (From: Axel Luttgens <email@hidden>)
 >Re: iTunes : "File permission error" (From: "Hiroshi T." <email@hidden>)

  • Prev by Date: Re: iTunes : "File permission error"
  • Next by Date: (no subject)
  • Previous by thread: Re: iTunes : "File permission error"
  • Next by thread: Re: iTunes : "File permission error"
  • Index(es):
    • Date
    • Thread