Article View: adobe.scripting.indesign
Article #8655[AS] Search for a number in superscript
From: Olivier_Berquin
Date: Tue, 03 Oct 2006 11:38
Date: Tue, 03 Oct 2006 11:38
21 lines
1100 bytes
1100 bytes
Hello,
I would like to work on some number in superscript. I've this:
repeat with i from (count of paragraph of Textes) to 1 by -1
set myNumberNote to (i as string)
set aNote to search for myNumberNote with find attributes {position:superscript}
[...]
Imagine to search from 20 to 1, how can I know if the number is 20 or 2 for example?
I can't use "whole word:true" because the number in superscript is near a word (without space).
TIA.
Oli.
Technical Details
Message-ID:
<3bc1dafa.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,d8cae01dc371883a,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Olivier_Berquin@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [AS] Search for a number in superscript Message-ID: <3bc1dafa.-1@webcrossing.la2eafNXanI> Date: Tue, 3 Oct 2006 04:38:17 -0700 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit