Skip to main content
Participant
September 16, 2008
Question

How to stop Extendscript Toolkit 2 from launching.

  • September 16, 2008
  • 2 replies
  • 462 views
I am having a very annoying thing happen. I am running a script that deletes all paths from a currently active PS document and it always launches ExtendScript Toolkit 2. The script still works, but I would prefer it if this did not happen. The script is below. It is very simple and I do not see any reason the program should launch. Any help would be appreciated.

// remove all paths

if (documents.length > 0) {
docRef = activeDocument;
for (var i = docRef.pathItems.length-1 ; i >=0 ; i--) {
$.writeln(docRef.pathItems.kind);
docRef.pathItems.remove();
}
} else {
alert("There must be at least one open document to run this script!");
}

Scott
This topic has been closed for replies.

2 replies

Participant
September 16, 2008
That did it thanks for the quick reply.

Scott
Known Participant
September 16, 2008
Remove this line. I causes a line to be written to the ESTK JS console.

> $.writeln(docRef.pathItems.kind);

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com