
Copy link to clipboard
Copied
Hi,
If i trying to get my .indd path, it is giving the path with %20 and / backslash and ":" also missing.
How can i get my path with exact format because i need to pass the path as a argument to a bat file.
Please let me know if any idea u have.
1 Correct answer
Use the folowing code:
Folder.decode(folderPath);//where folderPath is the file location.
Copy link to clipboard
Copied
#target indesign var docPath = app.activeDocument.filePath; $.writeln(unescape(docPath)); $.writeln(decodeURI(docPath));

Copy link to clipboard
Copied
Hi Mark,
Thanks for ur reply...
Its a fine and useful to me.
Thanks and Regards
Christy
Copy link to clipboard
Copied
Use the folowing code:
Folder.decode(folderPath);//where folderPath is the file location.
Copy link to clipboard
Copied
I testing your solution now,
coming back very soon with result
thank you in advance sir.
Copy link to clipboard
Copied
well it works.
but this is not really what I was searching for indeed,
cause we have defined the whole path,
that should better if we could just go some levels back from the interface.jsx (cause that is the scriptfile we are running)
because we have like hundreds of jobs.
I dont want to each time there is a new job go and modify the jobnumber in the script
have you got a good solution on this sir?
Thank you so much in advance sir
Copy link to clipboard
Copied
Hey!
var documentPath = app.activeDocument.filePath.fsName;
tomaxxi

Copy link to clipboard
Copied
Hi tomaxxi,
Thanks for ur Answer.
It's working Fine. And once again thanks for ur needful Help
Regards
Christy

