Hello all,
Using InDesign CS 2017
This seems to be more difficult than it should be? I am looking for a way to scale a selected “graphic” within a frame by a specific percentage, i.e., 75%
I am hoping somebody can help me out here?
tell application id "com.adobe.InDesign"
activate
tell document 1
if class of item 1 of selection is in {rectangle, oval, polygon} then
try
set ImagType to image type name of graphic 1 of item 1 of selection
set theImage to graphic 1 of item 1 of selection
set theImage to item 1 of selection
select graphic 1 of item 1 of selection
end try
else if class of item 1 of selection is in {image, PDF, EPS} then
set imageType to image type name of item 1 of selection
try
set theImage to item 1 of selection
end try
end if
-- Here is where I would like to scale selected image by 75 perecent
end tell
end tell
Thanks,
-Jeff