Article View: adobe.scripting.indesign
Article #15643Re: Convert measurement value
From: Shane_Stanley
Date: Wed, 26 Nov 2003 21:44
Date: Wed, 26 Nov 2003 21:44
19 lines
1182 bytes
1182 bytes
On Nov 26, 2003, at 10:27 PM, Oleg Butrin wrote: > How convert "2 pt" to millimeters or "55 mm" to points? There's no built-in way. You have to either parse the text, or use some workaround like this: tell application "InDesign CS" tell document 1 set slug inside or left offset of document preferences to "2 pt" set mmValue to slug inside or left offset of document preferences as millimeters undo end tell end tell mmValue -- Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID:
<AFA9850A-2059-11D8-A8D7-003065D61B90@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce9b60.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a11650dbebe5309 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-26 14:08:03 PST From: Shane_Stanley@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: Convert measurement value Message-ID: <AFA9850A-2059-11D8-A8D7-003065D61B90@myriad-com.com.au> Date: Wed, 26 Nov 2003 13:44:17 -0800 References: <2cce9b60.-1@webx.la2eafNXanI> Lines: 21 X-Mailer: Apple Mail (2.606) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit