Show/Hide guides via JavaScript?
With this script I can delete all guides in all open documents:
for (d = 0; d < app.documents.length; d++) {
var targetDocument = app.documents[d];
activeDocument = targetDocument;
var doc = app.activeDocument;
for (var i = doc.pathItems.length-1; i >= 0; i--) {
var p = doc.pathItems[i];
if (p.guides == true) {
p.remove();
}
}
}
But, how can I modify this script for show/hide guides?
Thanks.