Article View: adobe.scripting.indesign
Article #1291Re: Graphic Line Properties Apple Script CS3/CS4
From: Shane_Stanley
Date: Sat, 14 Feb 2009 00:53
Date: Sat, 14 Feb 2009 00:53
30 lines
2510 bytes
2510 bytes
On 14/2/09 10:23 AM, "Vinny Mannello" <member@adobeforums.com> wrote:
> I was wondering if someone could post an applescript snippet for a way to
> produce a line that was dashed (4pt dash 4pt gap) and was 30% black.
>
The best place to start is to make such a line manually, then get its
properties and work backwards. This will do what you want, although you'll
probably want to set other properties at the same time:
tell application "Adobe InDesign CS4" tell document 1 make graphic line at
end with properties {geometric bounds:{0, 0, 0, 10}, stroke type:"Dashed",
stroke dash and gap:{4.0, 4.0}, stroke tint:30.0} end tell end tell
> Also if anyone knows of a source that has the default properties for the
> graphic elements in indesign
>
The properties are defined in the relevant object styles; graphic lines get
the properties set in the object style marked with the Graphics Frame icon.
> (basically a better indesign scripting dictionary then adobes)
>
If you a want a better view of the object model, get Script Debugger and use
its Explorer feature <http://www.latenightsw.com/>. I wouldn't dream of
scripting without it.
--
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Technical Details
Message-ID:
<C5BC6154.4EA2A%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7e8ef.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fcb1adffe7624665 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Graphic Line Properties Apple Script CS3/CS4 Message-ID: <C5BC6154.4EA2A%sstanley@myriad-com.com.au> Date: Fri, 13 Feb 2009 16:53:56 -0800 References: <59b7e8ef.-1@webcrossing.la2eafNXanI> Lines: 40 Received: from outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107] by adobeforums.com; Fri, 13 Feb 2009 16:54:41 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsoBAG+llUl8qGiq/2dsb2JhbAAI0jaEHAY X-IronPort-AV: E=Sophos;i="4.38,204,1233500400"; d="scan'208";a="438264625" Received: from unknown (HELO [10.1.1.4]) ([124.168.104.170]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 14 Feb 2009 09:54:00 +0900 User-Agent: Microsoft-Entourage/12.15.0.081119 Thread-Topic: Graphic Line Properties Apple Script CS3/CS4 Thread-Index: AcmOPraiZReef/4XdUKdhPByOY6vYQ== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit