Calling iTunes and identifying library

Francis Nugent Dixon effendi at wanadoo.fr
Fri Sep 5 12:43:39 EDT 2008


Hi from Paris,

For Mac/Rev users only

As a songwriter (among other worldly sins), I built a Rev stack
containing all the info for each song in our catalog. Originally,
I could play an MP3 track of any song from the Rev stack, and
also display the lyrics as well, simply by creating a folder with
all the MP3 tracks and the lyrics in it, which I built independantly.

So far  - so good.

Then I got greedy and decided to call iTunes from the Rev stack,
to play the AIFF track (using a call to AppleScript), and also
to pick up and display the lyrics, also stored in iTunes.

Even better !

Then I blew it by splitting my iTunes library into 3 distinct
libraries, and using the "Alt" key to choose the library when
launching iTunes from the dock. This decision was made because
I have nearly 100 gigs of music in iTunes, and I wanted to
isolate our catalog.

Now, my solution to call iTunes from my Rev stack doesn't work,
because it always accesses the LAST DEFINED LIBRARY when iTunes
was called manually.

In AppleScript iTunes Suite commands, I can't find a parameter
for selecting the iTunes library (does it exist ?). Have I
missed something ?

Anybody got any brilliant ideas as to how I can access ANY
iTunes library from a Rev stack ? (the same is true for iPhoto !),
on a Mac - of course !!

Now I know this looks like an AppleScript problem, but some of you
guys have fingers in so many pies !!! Who else could I possibly ask ??

-Francis






More information about the use-livecode mailing list