How to access the MSO slideshow controls in Indesign JavaScript


hi friends,

 

how can access slideshow controls.

 

function mso_html_convertion_slide_show() {

 

        var mso_total_count = mso.states.length;

 

          (var = 0; < mso_total_count; i++) {

 

             mso.states[i].name;

       }

 

}

 

slide_show.png

 

thank you.

 

[ nav ]

@nav_alm – you'll javascript (extendscript) method

 

.insertlabel("keystring","valuestring");


keys , values can vary regarding dps  and/or indesign version.

 

to examine specific object (in case mso) keys , values set, export mso idms , check <label> … </label> tags.

 

or can extract value, if know key ;-)

 

an example dps v21 / indesign cs5.5 for setting or extracting value:

 

mymso.insertlabel("autostartdelay","5"); 

 

 

var myvaluestring = mymso.extractlable("autostartdelay"); //result example above string object "5" 

 

the slideshow panel read out label of mso , reflect in ui after refresh (close panel, open panel).

 

note: if extract value in example above, string object. if it's looking number.

 

that's basic thing. in detail it's bit more complex, because overlay panel software assume defaults not set , show these, if did not set them explicitly.

 

for example:

when dps installed , open document msos, instantly every mso becoming slide show and  appropriate key/value pair attached.

 

you  can add key/value pairs or change values of keys, cannot remove key/value pairs other exporting idms or idml, delete labels in xml , place snippet (idms) or open idml new fresh document.

 

key/value pairs can grow in numbers, if new versions of dps issued (every 6 8 weeks) , new features introduced. or can change, if compare dps indesign cs5.5 dps indesign cs6.

therefore scripts written 1 version fail or result in unwanted results in future versions ("future" short time frame 6 8 weeks).

 

uwe



More discussions in Digital Publishing Suite


adobe

Comments

Popular posts from this blog

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

After Effect warning: A problem occurred when processing OpenGL commands

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