How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Moderators: xbytor, DavideBarranca, Paul MR
-
- Posts: 15
- Joined: Wed Feb 22, 2017 5:37 pm
How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Hi Guys,
I was wondering if it would be possible to convert the jsx path (example /d/ps-projects/a/b/c/) to windows path (i.e. d:/ps-projects/a/b/c/ or d:\ps-projects\a\b\c\)
Thanks in advance.
Anil
I was wondering if it would be possible to convert the jsx path (example /d/ps-projects/a/b/c/) to windows path (i.e. d:/ps-projects/a/b/c/ or d:\ps-projects\a\b\c\)
Thanks in advance.
Anil
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
$.writeln(decodeURI(activeDocument.fullName.fsName));
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Sorry you just wanted the path....
$.writeln(decodeURI(activeDocument.path.fsName));
$.writeln(decodeURI(activeDocument.path.fsName));
-
- Posts: 15
- Joined: Wed Feb 22, 2017 5:37 pm
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Thanks Geoff.
What i was missing was the .fsName bit, which I understand would be File System Name.
Thanks once again.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~oO~~Oo~^~~~
http://bit.ly/photoshopScripting
http://bit.ly/ts-timeslice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bit.ly/photoshopScripting
http://bit.ly/ts-timeslice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Excellent topic. I got valuable information from here. thank you!
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Hello Anil!
$.writeln(decodeURI(activeDocument.path.fsName));
Best regards,
$.writeln(decodeURI(activeDocument.path.fsName));
Best regards,
-
- Posts: 1
- Joined: Thu Sep 26, 2019 6:23 am
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Excellent post. Thanks for sharing!
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Hello Anil!
$.writeln(decodeURI(activeDocument.path.fsName));
Best regards,
$.writeln(decodeURI(activeDocument.path.fsName));
Best regards,
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Wasn't that actually posted higher? 

-
- Posts: 1
- Joined: Sat Dec 14, 2019 7:04 pm
Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
This is an interesting story. I like this TV play very much. I get the best and most useful information. I hope to have good articles. Here, let's move on.
vegus168 สมัครสมาชิก เวกัส168 ฝาก-ถอนไว
vegus168 สมัครสมาชิก เวกัส168 ฝาก-ถอนไว