iTunes and rev
Yves COPPE
yvescoppe at skynet.be
Fri Jul 30 05:50:44 EDT 2004
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
yvescoppe at skynet.be
More information about the use-livecode
mailing list