🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8852

Re: Default Fill And Stroke

#8852
From: Dave_Saunders
Date: Mon, 25 Sep 2006 11:37
13 lines
1552 bytes
Oh, sorry, I didn't realize I was in the scripting forum. Duh!

Well, look at the document preferences object and you're see that's true.

A way to dig out this kind of information is to do a search of the Scripting Reference using strokeColor. There are 24 hits. One of them will be in the object you want ... Hmm, the only default hit I get is for textDefaults.

Ah, but you can set the value for object styles, so perhaps that's the way to do it: set the Basic Text Frame and Basic Graphics Frame styles and then apply them.

That's the way I usually work when creating frames: don't both with defaults, set them when I make them, either in a properties record in the add() call or after the fact.

And, of course, for scripts, you can get at default settings without worrying about the presence of documents or the state of the selection.

Dave
Technical Details
Message-ID: <3bc1c3e8.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc1c3e8.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e0ca22fd70323df
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Default Fill And Stroke
Message-ID: <3bc1c3e8.3@webcrossing.la2eafNXanI>
Date: Mon, 25 Sep 2006 04:37:49 -0700
References: <3bc1c3e8.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit