🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10061

Re: GeometricBounds expression

#10061
From: Shane_Stanley
Date: Fri, 07 Jul 2006 11:05
22 lines
1949 bytes
If you have to do a lot of them, you can kludge things by using a dialog.
For example, using AppleScript, if you want a string for 3.75 picas:

tell application "Adobe InDesign CS2"
    set theDialog to make dialog
    tell theDialog
        tell (make dialog column)
            set theBox to make measurement editbox with properties {edit
units:picas, edit contents:"3.75"}
            set x to edit contents of theBox
        end tell
    end tell
    destroy theDialog
    return x
end tell

So if you needed a lot, you could make a dummy dialog -- you never have to
show it -- and just set and get the relevant properties of a single
measurement editbox.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <C0D47D29.2CB5A%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing
References: <3bc0d676.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d51465a26d639da9
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Shane_Stanley@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: GeometricBounds expression
Message-ID: <C0D47D29.2CB5A%sstanley@myriad-com.com.au>
Date: Fri, 7 Jul 2006 04:05:45 -0700
References: <3bc0d676.-1@webcrossing.la2eafNXanI>
Lines: 27
Received: from bld-mail02.adl2.internode.on.net [203.16.214.66] by adobeforums.com; Fri, 7 Jul 2006 04:05:49 -0700
Received: from [192.168.1.3] (unverified [59.167.67.116])  by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 225453433  for <adobe.scripting.indesign@adobeforums.com>; Fri, 07 Jul 2006 20:35:46 +0930 (CST)
Return-Path: <sstanley@myriad-com.com.au>
User-Agent: Microsoft-Entourage/11.2.4.060510
Thread-Topic: GeometricBounds expression
Thread-Index: AcahtUs7iYpcNA2oEduy1QARJHm3nA==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing