🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16897

Re: Applescript (or VB) to format References?

#16897
From: Jay Fraser
Date: Tue, 29 Jul 2003 15:38
16 lines
1988 bytes

      Pray for me.




No, no, Neo -- it's easy. Copy the sript, open Script Editor, paste & save into the "Scripts" folder in your "InDesign" folder. Open the "Scripts" window within the application -- the script should be there in the list. Select something within the story that contains the references, then double click on the name of the script and wait.

Remeber that the script assumes that every paragraph in the story is a reference. If it finds a paragraph that doesn't have 3 periods & 2 commas it will choke. We can work around that if you give me some more details.

Ole has a good point. (But then again, Ole always has good points: he is a God.) This might not be the most efficient work flow. I do some similar stuff, but I get my raw data in Excel; I can then select a whole column & hit [command-b] and be done.

But this script will at least get you going. I'd test it on a small story (~10 references?) to make sure it works. Depending on how fast your machine runs, be prepared to wait a LONG time if you have a lot of references. I have a G4-400, and deal with stories that contain 3-5K single-line paragraphs. Some of my scripts take an hour to run.

Keep us posted. Good luck!
Technical Details
Message-ID: <1dea17d8.9@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1dea17d8.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8c572854569a1f90
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-29 09:09:12 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Applescript (or VB) to format References?
Message-ID: <1dea17d8.9@WebX.la2eafNXanI>
Date: Tue, 29 Jul 2003 08:38:57 -0700
References: <1dea17d8.-1@WebX.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit