Article View: adobe.scripting.indesign
Article #10281Re: Need Script to fix CS to CS2 stroke alignment issue
From: Rosie_J_Cantrell
Date: Thu, 29 Jun 2006 22:33
Date: Thu, 29 Jun 2006 22:33
36 lines
2120 bytes
2120 bytes
Need Script to fix CS to CS2 stroke alignment issue
OK, Shane I got it tweaked to do what I needed. I changed my list of
demands as I got into it. (you are awesome! Thank you)
Now I've been trying for about over an hour to figure out what the boonlean
(is that the correct term?) is for unlocking all the layers before the rest
of the script works.
I'm very much trying to wrap my mind around this scripting. I've finally
found the InDesign Dictionary in Applescript... I'm reading the Applescript
language guide. I see that the term locked is = Locked (boonlean): Whether
the layer is locked. But what I can't figure out is to tell to unlock.
Grrr... I've tried several different scenarios and I'm sure it's something
so simple. Any feedback is very welcome. Thank you!
Rosie
I tried: set thelayers to "unlocked"
if layer is (locked is true) then layer is (locked is false)
Here's what I have currently.
tell application "Adobe InDesign CS2"
tell document 1
if layer is (locked is true) then layer is (locked is false)
set theNone to swatch "None"
set theFrames to every item of all page items whose stroke color is
theNone and stroke alignment is inside alignment
repeat with aFrame in theFrames
set {a, b, c, d} to geometric bounds of aFrame
set geometric bounds of aFrame to {a + 0.0035, b + 0.0035, c -
0.00346, d - 0.00346}
end repeat
end tell
end tell
Technical Details
Message-ID:
<3bc0aaf4.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc0aaf4.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3ad12ca27804ba3a,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Rosie_J_Cantrell@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Need Script to fix CS to CS2 stroke alignment issue Message-ID: <3bc0aaf4.1@webcrossing.la2eafNXanI> Date: Thu, 29 Jun 2006 15:33:07 -0700 References: <3bc0aaf4.-1@webcrossing.la2eafNXanI> Lines: 44 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing