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
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)