🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9935

Re: Help needed with regular expression.

#9935
From: Peter_Kahrel
Date: Thu, 13 Jul 2006 11:00
12 lines
1939 bytes
Well, it takes some determination, but you should be allright soon. If you use a PC then you might find Teus de Jong's excellent object browser useful. It's at <http://www.teusdejong.nl/> (click InDesign Utilities). If not, then the ESTK can reveal a lot. Try this: if you step through a script, the properties and methods associated with that object can be displayed. Try this. Select a character in an InDesign document. Then, in the ESTK, make sure the data browser is visible, start a new script and enter just these two lines:

a = app.selection[0]
x = 0

Step through the first line so that the debugger highlights the second line, x = 0. The first line In the data browser says a = [object Character]. Click the triangle at the start of the line to expand the item, and it will show all the object's properties. To show the object's methods as well, right-click in the data browser and tick Show Object Methods.

All this doesn't show you the possible values of properties or the parameters of any methods so it's pretty limited, but it's a start and you don't always have to go for the scripting guides. Again, if you have a PC, go for Teus's browser cause then you don't need the reference guides at all (apart from the file and folder system, which isn't covered in the browser).

Good luck with it.

Peter
Technical Details
Message-ID: <3bc0dfb6.13@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0dfb6.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8bed2397d36f00d4
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Peter_Kahrel@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Help needed with regular expression.
Message-ID: <3bc0dfb6.13@webcrossing.la2eafNXanI>
Date: Thu, 13 Jul 2006 04:00:19 -0700
References: <3bc0dfb6.-1@webcrossing.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing