Hello there...
I want to launch the extension (menu>Windows>Extensions) using javascript. Please suggest me a way to do this.
Thanks in advance.
Check out this page.
For example, the following line opens the Kuler extension:
app.menuActions.itemByID(134503).invoke();
this script make a tabulated text file with the information of ids and names of all menu items.
items=app.menuActions ;//.everyItem();
info="title\tname\tid\n";
for (t=0;t< app.menuActions.length;t++){
info += items[t].title + "\t" +items[t].name + "\t" + items[t].id +"\n";
}
saveTxt(info,"demo.txt")
function saveTxt(text,file){
file = new File(file);
file.encoding = "UTF-8";
file.open("w");
file.write(text);
file.close();
file.execute();
}
North America
Europe, Middle East and Africa
Asia Pacific