Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

Get path to script

$
0
0

Hello.

I have a small script which prints the path to the script:

     var scriptFile = new File($.fileName);

     var scriptPath = scriptFile.parent.fsName;

     alert(scriptPath);

 

This returns the following path: C:\jonathan.sundberg\AppData\Roaming\Adobe\CEP\extensions\jsx\ai

The actual location of my jsx script is : C:\project\TechArt\adobe\extensions\jsx\ai

 

Why am i getting a temp path to AppData? And how do i get the real path to my scripts .jsx file?


Viewing all articles
Browse latest Browse all 3671

Trending Articles



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