Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Script to quickly exit Editor

$
0
0

Please read the whole thread carefully before trying to apply the script supported.

 

Recently one of my colleagues found a way to exit Editor in a very quick way. I made myself a little script out of it.

 

function exitEditor(){

var p = Application.getActiveDocument().getElementsByTagName("p").item(0);

var newnode = Application.getActiveDocument().createTextNode("50 ...Hz ±2");

p.appendChild(newnode);

}

 

where "p" in getElementsByTagName can be replaced with any tag where #PCDATA is allowed.

 

Please note that the script is meant to be a joke, worthy a try though.

 

Kind regards


Viewing all articles
Browse latest Browse all 1645

Trending Articles