cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Script to quickly exit Editor

Newbie

Script to quickly exit Editor

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

1 REPLY 1

Re: Script to quickly exit Editor

For further information see CS103713 at ptc.com´s technicalSupport. This crash seems to be solved in further releases.