Article View: adobe.scripting.indesign
Article #19413Re: New to apple script... is this worth a try?
From: Dave Saunders
Date: Wed, 18 Dec 2002 12:36
Date: Wed, 18 Dec 2002 12:36
15 lines
1956 bytes
1956 bytes
Rufus, Yes, that's a very worthy scripting project. Just one thing: scripting is an alternative way of driving InDesign. Don't think of it as driving the UI. So, for instance, rather than your script "opening the search window" it would rather use the search command. A good way of starting is to study other people's scripts. Look around this forum for examples -- just a couple of days ago, I posted a snippet of script that did a search across all documents -- I posted it in a topic where I was trying to understand the difference between a "reference" and an "object reference" here: Dave Saunders "Reference vs. Object Reference" 12/15/02 2:17pm </cgi-bin/webx?50@@.1de70458/1> What tools do you have? Script Editor comes with every Mac, but many of us use Script Debugger. Costs a couple of hundred, but very powerful debugging aids. Feel free to ask specific questions here and be prepared to be mystified by many, many things. I manage to run into something that mystifies me at least once a week. Many times, I find the act of preparing a reasonably detailed message asking for help points me in the right direction for solving the problem myself. Dave
Technical Details
Message-ID:
<1de70da9.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!news.maxwell.syr.edu!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de70da9.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3d6763be43015f75 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-18 04:37:35 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!news.maxwell.syr.edu!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: New to apple script... is this worth a try? Message-ID: <1de70da9.0@WebX.la2eafNXanI> Date: Wed, 18 Dec 2002 04:36:07 -0800 References: <1de70da9.-1@WebX.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit