You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iTunes error -54 in AppleScript

I have two accounts on my Mac, one for business and one for personal activities. I have a single iTunes library at Macintosh HD:Users:Shared:iTunes Media. I'm trying to write an AppleScript that will periodically allow me to update the played count of all music on both accounts to reflect the total usage on each. To do this I need to be able to update that property.

Here's a one-line test I've written:

tell application "iTunes" to set played count of track "Wellington's Victory, Op. 91, Part II: Victory Symphony" to 11

Now, here's my problem: This code works fine on my personal account and fails with an error -54, file permission error, on the business account! Clearly there is some file whose permissions are not set correctly, but I have no idea how to identify that file. Any help? Please.

Rich

Mac Pro/Mac Book Pro, Mac OS X (10.6.6)

Posted on Feb 21, 2011 5:54 PM

Reply
2 replies

Feb 21, 2011 6:50 PM in response to red_menace

Red,

You asked a good question. Till now I've only tried this on two tracks. Both tracks were purchased by me from the iTunes store, so I don't think that's the issue.

I just tried it on 20 tracks. Some of them I purchased and some my wife purchased. All 20 worked on my personal account. Two of them worked on my business account.

Finally, I reset the permissions for the shared folder and applied the changes to all contained items. That worked!

Thank you.

iTunes error -54 in AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.