Copy link to clipboard
Copied
I have the UIDRef of an opened InDesign document, I would like to know if the document is a print or web document. How can use the Getintent() to do that? or is there another way to get this information.
Thank you in advance,
Joe
Copy link to clipboard
Copied
There is an intent property in document preferences, which returns a number.
1768846448=Print
1768846445=Mobile
1768846455=Web
var di = app.documents.item(0).documentPreferences.intent;
if (di == 1768846448) {
$.writeln("Document intent is set to Print")
}else{
$.writeln("Document intent is set to Mobile or Web")
}
Copy link to clipboard
Copied
Thank you Rob for your suggestions. I wrote the code below, do you see any issues with it?