🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18817

Re: Creating objects won't listen to "Properties:..." [AS]

#18817
From: Olav Kvern
Date: Wed, 19 Feb 2003 20:32
25 lines
1682 bytes
Chris--

I understand your frustration, but I'm a bit baffled by the situation that's provoking it. I don't understand why setting the stroke weight and color for a rectangle isn't working inside a "with properties" construction. It works for me--which means that we should run though what's different between our two systems to try to figure out the root cause.

Let's start with the basics--what system version, script editor, and AppleScript version are you using?

Could you try writing a minimal script that creates a document, then creates a rectangle on page 1 using "with properties" to set the stroke weight and color? Something like:



tell application "InDesign 2.0.2" 
set myDocument to make document 
tell page 1 of myDocument 
set myRectangle to make rectangle with properties{stroke color:color "Black" of myDocument, stroke weight:1} 
end tell 
end tell 




Does that work?

Thanks,

Ole
Technical Details
Message-ID: <1de7e876.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de7e876.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5f85c984a949f4e
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-19 12:38:07 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating objects won't listen to "Properties:..." [AS]
Message-ID: <1de7e876.2@WebX.la2eafNXanI>
Date: Wed, 19 Feb 2003 12:32:21 -0800
References: <1de7e876.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit