I am looking for an InDesign CC script that will increase stroke weights of lines that are less .5pt to .5pt. I frequently get a book job where the strokes weights of lines are all over the place. They range from .08 to .5. Any help would greatly appreciated.
Hi yespress
this should help to get you started
tell application "Adobe InDesign CC 2015"
set myDoc to active document
tell myDoc
repeat with x from 1 to count pages
set AllPages to page x
tell AllPages
set stroke weight of every page item of page x of myDoc to 0.5
end tell
end repeat
end tell
end tell
Edit: changed the script, this works better for all pages in a document
Hi there,
These 2 variations work too
This does every page…
tell application "Adobe InDesign CC 2015"
set stroke weight of (every page item of every page of active document) to 0.5
end tell
… and this does it by page number.
tell application "Adobe InDesign CC 2015"
set stroke weight of (every page item of page 1 of active document) to 0.5
end tell
I had a similar question re cell stroke weights which worked in the same way.
HTH
Thanks everyone. The scripts work, however it’s putting a stroke on every time including text and picture boxes. Is there a way to isolate just the lines?
TecNik’s code is nicer than mine, so try
tell application "Adobe InDesign CC 2015"
set stroke weight of (every graphic line of every page of active document) to 0.5
end tell
Awesome, works great. Thanks everyone.