🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20797

Re: OT?: REALbasic and InDesign 2.0

#20797
From: Dave Saunders
Date: Tue, 28 May 2002 14:24
23 lines
2395 bytes
Martin beat me to it. 

Further to Ole's comment, I wrote a Real Basic application yesterday (not an InDesign related one) that provides a front end to iTunes. 

I've long been frustrated by the absence of decent support for classical music in iTunes (has to do with the absence of the concept of a multi-movement work). 

Anyway, I have my "Classical" playlist organized so that the Albums are actually works. Each "album" is named thus: 

Composer: Name of work 

The only restriction that I've imposed on myself is that the name of a work can't have a colon in it. 

My application lists the composers in a list box. When you double-click a composer name, the list of works appears in another list box. Double-clicking a work in that list box causes that work (and only that work) to be played by iTunes. 

Now you have the picture, there's quite a lot of text munging to be done here. My first version used AppleScript to make the lists of data I needed for the listboxes. It proved to be very slow and buggy -- my 9.1 system kept freezing. 

My second version just passed the complete list of tracks to my RB program (using "�" to separate the tracks -- so a work name can't have that character, either) and I did the text munging there. 

At the moment, I have 1284 tracks in my Classical playlist and I was astonished at just how quickly the RealBasic loop worked even when extracting the works of composers whose names are a long way down the list. 

So, henceforth, I shall be writing primitive AppleScripts to get/set data in InDesign and doing any hard work in REALbasic. 

Dave
Technical Details
Message-ID: <ef8a520.16@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8a520.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,5576068bbbf0db50
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-28 07:38:29 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: OT?: REALbasic and InDesign 2.0
Message-ID: <ef8a520.16@WebX.aaQKaf7vad4>
Date: Tue, 28 May 2002 07:24:46 -0700
References: <ef8a520.-1@WebX.aaQKaf7vad4>
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit