• 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: "Hiroshi T." <email@hidden>
  • Date: Sun, 28 May 2006 12:19:28 +0900

Thank you for your support.
Here is my Music directory listing:

[kelvino:~:6] ls -alo ~/Music/iTunes/
total 50472
drwxr-xr-x 6 hrst unknown - 204 28 May 10:55 ./
drwx------ 10 hrst unknown - 340 28 Nov 11:38 ../
drwxr-xr-x 4 hrst unknown - 136 28 Dec 11:43 Previous iTunes Libraries/
-rw-r--r-- 1 hrst unknown - 13725374 28 May 10:55 iTunes Library
drwxr-xr-x 3 hrst unknown - 102 21 Jan 2003 iTunes Music/
-rw-r--r-- 1 hrst unknown - 12115604 28 May 10:55 iTunes Music Library.xml
[kelvino:~:7]


I store music files in an external FireWire hard disk, where "iTunes Music folder" also resides.
Even if I set the folder for "iTunes Music folder" to other place than ~/Music in iTunes Preference,
iTunes keeps on using "iTunes Music Library.xml" and "iTunes Library" under ~/Music/iTunes (of course).


The "File permission error" occurs at the line:

			set bookmarkable of curTrack to false


I use two recording applications: Audio Hijack Pro and RadioShark.
In RadioShark I set file creation parameters to bookmarkable AAC and it creates files with extension ".m4b".
These files cause "File permission error" in my script.
In Audio Hijack Pro I set file creation parameters to bookmarkable and non-bookmarkable Apple Lossless,
which I call B-files and N-files, respectively. Audio Hijack Pro creates files with extension ".m4a" for both B- and N-files.
I also made a script to make tracks bookmarkable, which I call B-script.
Let us call my script to make tracks non-bookmarkable N-script.


B-files cause "File permission error" in both B- and N-script,
while N-files do not cause such error in either B- or N-script.
I can turn bookmarkable on and off for N-files, which I checked by actual playing in iTunes.


I cannot check all tracks that I have but exceptions to the above law are not found so far.


On May 27, 2006, at 11:45 PM, Axel Luttgens wrote:

On 27/05/06 9: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?

Above code works without a problem here.
It seems you really have a file access problem (as far as one may trust the error message, of course).
Assuming your iTunes library is at its usual location, could you show the output of following command:


   ls -alo ~/Music/iTunes/

executed in Terminal.app?

Could you also tell us on which command exactly your AppleScript code raises the "File permission error"?

HTH,
Axel
_______________________________________________

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

  • Prev by Date: Re: Routine for parsing path-filename....
  • Next by Date: Re: iTunes : "File permission error"
  • Previous by thread: Re: iTunes : "File permission error"
  • Next by thread: Re: iTunes : "File permission error"
  • Index(es):
    • Date
    • Thread