🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20934

Re: OT?: REALbasic and InDesign 2.0

#20934
From: Dave Saunders
Date: Fri, 24 May 2002 21:49
11 lines
1926 bytes
Philosophically, I agree with you, Ole, but one can get a long way by just letting RB serve as an interface front end to scripts. 

So far, my project has five buttons (each 18 tall by 28 wide), a timer and a static text field. Four of the buttons just call existing scripts (although I had to add the on run construct to all of them), including two large-scale scripts that Shane wrote (Save with Versions and Build Booklet). 

The fifth script I wrote today to toggle the two characters on either side of the insertion point. 

The timer triggers every 1.25 seconds and it reports in the static text field the class of the current selection. This is the only place so far where I've had to write anything in RB: the script is the only one that returns a value; I check the value to see if it's different from what's displayed in the field and if so, write it in -- if you don't do the check the field flashes. 

I'm sure that in some of these cases the workload could be shared more evenly for perhaps a more efficient result, but with my current understanding of scripting versus Basic, I'm happy enough with the results to date. 

Dave
Technical Details
Message-ID: <ef8a520.11@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!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.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-7-bit
X-Google-Thread: f939a,5576068bbbf0db50
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-24 15:07:40 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!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.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.11@WebX.aaQKaf7vad4>
Date: Fri, 24 May 2002 14:49:20 -0700
References: <ef8a520.-1@WebX.aaQKaf7vad4>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit