Help me with this Script
Please,
How can I make this script working in Select Type Tool or Selection Tool mode
It´s working just when I select by Selection Tool. I need it works Type Tool also.
var mySel = app.selection[0];
mySel.rotationAngle = 30;
if(app.selection[0].hasOwnProperty("textFramePreferences")) app.selection[0].textFramePreferences.verticalJustification = VerticalJustification.CENTER_ALIGN;
if(mySel instanceof TextFrame){
with(mySel){
texts[0].clearOverrides()
}
}
This script Rotate my text 30º, Vertical Justification Center Align and finally clear overrides.
Thanks!