Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

How to call a variable file path in javascript

$
0
0

Hi,

 

My objective is to capture a file path on mac and windows. However, this file path gets changed with various users.

 

For example the path is:

 

c:\user\username\AppData\Local\Temp\myfolder------> this is for windows machine

 

/users/username/Library/Application Support/tempfolder/Temporary Files/-------> this is for mac machine

 

As you can see, the path will be same for all the machines. Only the difference will be in searching the user and username at the start of file path. Rest folders will remain same on all the machines.

 

Is there any grep pattern through which I can call this complete path in a variable for all the users.

 

Any help will be appreciated.

 

Regards,

 

Abhi


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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