• 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
reference by location in iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: reference by location in iTunes
      • From: Romy Opena <email@hidden>
    • Re: reference by location in iTunes
      • From: Allan Hise <email@hidden>
  • Prev by Date: Re: iWork Pages
  • Next by Date: Re: reference by location in iTunes
  • Previous by thread: Re: Can anyone interested check this...my first applescript app ?
  • Next by thread: Re: reference by location in iTunes
  • Index(es):
    • Date
    • Thread