tell application "Adobe InDesign CS3"
set myBigRectangle to selection
set stroke weight of myBigRectangle to 20
end tell
This returns an error:
error “Can’t set «class lnwt» of {«class crec» id 227 of «class page» id 199 of «class sprd» id 215 of document "Untitled-4" of application "Adobe InDesign CS3"} to 20.” number -10006 from «class lnwt» of {«class crec» id 227 of «class page» id 199 of «class sprd» id 215 of document “Untitled-4”}
But this works without a hitch…
tell application "Adobe InDesign CS3"
set stroke weight of selection to 20
end tell
Can someone tell me what gives? Is this just bizarre Adobe behavior, or am I missing a fundamental of AS?