Quantcast
Channel: Adobe Community : Discussion List - InDesign
Viewing all articles
Browse latest Browse all 65617

Delete all Guides in Document

$
0
0

Does anyone happen to know how to delete all the guides in a document? I'm aware I can use Ctrl + Alt + G then press delete to delete the guides on a single page or spread, but what about in the entire opened document (every page at once)? I've researched it some and located the following script:

 

var myDoc = app.activeDocument;

if(myDoc.guides.length > 0){myDoc.guides.everyItem().remove();}

 

I'm sorry to say this script didn't work for me. This is the error message I received:

 

Error Number: 1025

Error String: Expected end of statement

Engine: Default

File: C:\Users\......etc.

Line: 1

Source: var myDoc = app.activeDocument;

 

If anyone knows a way around this or knows how to fix this script please let me know and anyone else who might be interested.


Viewing all articles
Browse latest Browse all 65617

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>