• 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
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: "J. Stewart" <email@hidden>
  • Date: Thu, 5 Oct 2006 16:44:02 -0400

On 10/5/06 at -0500 Simon, Garry said this

>I have an iTunes scripting question.  I would like to remove all the
>comments contained in the "info" windows of every song in my library. Is
>it possible to do this with a script?

Yes, here's a very simplistic approach that should do it. It won't break any speed records though.

--> Cut <--
tell application "iTunes"
	set foo to every track of playlist "Library" whose comment is not ""
	repeat with aTrk in foo
		set comment of (contents of aTrk) to ""
	end repeat
end tell
--> Cut <--

This wasn't tested for the simple reason of not wanting my comments erased. If it doesn't work for you as is then you may need to "get" the track first instead of just referencing it.

JBS
--
Never try to outstubborn a cat.  - Lazarus Long (aka Robert A. Heinlein)
 _______________________________________________
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

References: 
 >(no subject) (From: "Simon, Garry" <email@hidden>)

  • Prev by Date: Re: iTunes comments
  • Next by Date: scripting BOMArchiveHelper possible ?
  • Previous by thread: Re: iTunes comments
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread