Re: reference by location in iTunes
Re: reference by location in iTunes
- Subject: Re: reference by location in iTunes
- From: Allan Hise <email@hidden>
- Date: Wed, 26 Jan 2005 08:43:43 -0800 (PST)
On Wed, 26 Jan 2005, Allan Hise wrote:
> Date: Wed, 26 Jan 2005 08:38:00 -0800 (PST)
> From: Allan Hise <email@hidden>
> To: email@hidden
> Subject: reference by location in iTunes
>
>
> 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!
>
I hate to reply to my own message, but teh error message I get is:
Can't get track whose location = "XXX:XXX:XXX:XXX.mp3".
Of course, I am using the path of areal, existing mp3 file instead of the
XXX:XXX:XXX:XXX.mp3.
Allan
_______________________________________________
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