This works in CS4:
tell application "Adobe InDesign CS4"
tell active document
repeat with thisGraphic in all graphics of every page
try
set (properties of thisGraphic) to {clipping path:{clipping type:detect edges, inset frame:-0.5, restrict to frame:true, threshold:1, tolerance:0, use high resolution image:true}}
end try
end repeat
end tell
end tell
For Photoshop path substitute in this line:
set (properties of thisGraphic) to {clipping type:photoshop path, clipping path:{applied path name:"Path 1"}}
For other properties see:
CS3: http://www.indesignscriptingreference.com/CS3/AppleScript/clipping-pat h-settings.htm
CS4: http://www.indesignscriptingreference.com/CS4/AppleScript/clipping-pat h-settings.htm
Eric @ MCA wrote:
Maybe something like this? I haven't tested thoroughly, but it should turn off every clipping in the document I think...
tell application "Adobe InDesign CS2"
tell active document
repeat with thisGraphic in all graphics of every page
set clipping type of clipping path of thisGraphic to none
end repeat
end tell
end tell
Brilliant, thank you for posting that Eric.
Can anyone translate this to JavaScript? I'm attempting to learn and I find like for like examples help hugely.
Apologies for resurrecting an old thread, just noticed the date, sorry.
North America
Europe, Middle East and Africa
Asia Pacific