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)

http://tomaxxi.com



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support