reference by location in iTunes
reference by location in iTunes
- Subject: reference by location in iTunes
- From: Allan Hise <email@hidden>
- Date: Wed, 26 Jan 2005 08:38:00 -0800 (PST)
I am trying to come up with a way to update the play count and last played
information in iTunes. This applescript will be executed by a perl, which
will fill in the "XXX" "YYY" and "ZZZ" information, below.
At this time, I am having a problem getting iTunes to understand which
track I am referring to. I am attempting to use the location of the track
since that is the easiest unique identifier that this perl application knows.
Unfortunately, I couldn't find anything that was quite right on Doug
Adams' excellent iTunes scripts web site, nor was a ton of googlng
successful in helping me.
Maybe there is a better way to do what I am trying to do, but, here's what
I have got... The problem is with the "set mysong" line.
tell application "iTunes"
-- play "XXX" -- this works, why won't the next line
set mysong to the track whose location is "XXX"
tell mysong
set played count to "YYY"
-- even better would be to merely increment by 1
set played date to "ZZZ"
end tell
end tell
Any ideas?
thanks!
_______________________________________________
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