Le 29-juil.-04, � 19:30, Scott Rossi a �crit :



1) I assume that your "biblioth�que" library is the first library in iTunes,
so you should be able to do this:


 "get name of every track of playlist 1"

2) I don't know if there's a way to get multiple properties of all tracks.
AppleScript is very finicky and IMO not as intuitive as a talk language.
But you could get the name and artist properties and combine them into a
single list. To get a list of artists, use the above function and replace
"track" with "artist":


  function getArtists
   put \
       "tell application" && quote & "iTunes" & quote & cr &\
       "get artist of every track of playlist 1" cr &\
       "end tell" into s
   do s as AppleScript
   put the result into tList
   return tList
  end getArtists

Once you have the two lists of data, combine them into a single list.
Another option would be use a repeat loop to grab each track, one at a time,
and get its properties, but I think this is very inefficient. Better to
grab everything in two calls and parse/assemble them in Rev.




Hi Scott

Thank you for your scripts
it works great !

Greetings.

Yves COPPE
[EMAIL PROTECTED]
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to