Answered
Volume name from File class ( Document saved )
Hi,
I have an InDesign document that has been saved. I would like to know the volume name that the document is saved on.
File and Folder class are not offering much.
Thank you.
P.
Hi,
I have an InDesign document that has been saved. I would like to know the volume name that the document is saved on.
File and Folder class are not offering much.
Thank you.
P.
Maybe this?
var sv = Folder("~/Desktop/").parent.parent.parent.displayName
var fp = app.activeDocument.filePath.toString()
if (fp[0] == "~") {
alert("Document Volume: " + sv)
} else {
alert("Document Volume: " +fp.split("/")[1])
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.