Article View: adobe.scripting.indesign
Article #14779Re: JS beginners help
From: Dave_Saunders
Date: Fri, 16 Jan 2004 18:13
Date: Fri, 16 Jan 2004 18:13
11 lines
1464 bytes
1464 bytes
Are you sure that myString contained more than one pound sign? I just ran a search on some text with two and the result in the Debugger said: [object Character],[object Character] just as you'd expect. You know, this isn't that different from AppleScript. You just read things backwards and call functions in a different manner, but most of the underlying concepts are the same. In AppleScript, you either operate on InDesign objects or on variables, and it's just the same here. There are some sneaky tricks, but I suspect that you are looking for more than actually exist. Something like app.documents[0].stories[0].paragraphs[0] would be written: paragraph 1 of story 1 of document 1 of application "InDesign CS" in AppleScript. You just have to read right to left (which I'll grant is touch if you're writing left to right! Dave
Technical Details
Message-ID:
<2ccf45cf.35@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf45cf.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,613db9f5b5ffc527 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-16 10:37:57 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: JS beginners help Message-ID: <2ccf45cf.35@webx.la2eafNXanI> Date: Fri, 16 Jan 2004 10:13:55 -0800 References: <2ccf45cf.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit