I have a script that works fine in InDesign CS6. I need to convert the script to be compatible with InDesign CC 2015 (2015.2 release). All I did was replace the line:
The script compiles as it should. Unfortunately every time I run it, InDesign CC 2015 quits unexpectedly. Can anyone tell what goes wrong?
Bert.
tell application "Adobe InDesign CC 2015"
set myPage to page 1 of document 1
set my_UpScaleMatrix to make transformation matrix with properties {horizontal scale factor:2.5, vertical scale factor:2.5} -- enlarge
tell myPage
my myTransform(myPage, my_UpScaleMatrix) -- enlarge
end tell
end tell
on myTransform(myPage, myTransformationMatrix)
tell application "Adobe InDesign CC 2015"
tell myPage
set layout rule to off -- scale -- object based
end tell
transform myPage in parent coordinates from center anchor with matrix myTransformationMatrix
end tell
end myTransform