how tho check if selection is any kind of text:
ok.. question:
how tho check if selection kind of text:
if (app.documents.length != 0 && app.selection.length != 0 &&
(app.selection[0].constructor.name=="text"||app.selection[0].constructor.name=="paragraph"))
but selection "textstylerange", "character" etc. there shortcut check @ once?
i this:
if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasownproperty ( 'baseline' ) ) alert ( "it's text!" );
hope helps.
--
marijan (tomaxxi)
More discussions in InDesign Scripting
adobe
Comments
Post a Comment