Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS CS3] Making the #includepath work

$
0
0

Hello,

 

I have a script that will be used on both PCs and Macs. As the script refers to many other scripts I need a path to them. However there is something wrong with the following line:

 

#includepath "myPath+'/FormatResources/'"

 

I get an error message that says the firstScript.jsxinc cannot be found. Well, it and about many others that follow are there but the path to them is failing. I cannot see what is wrong, nor can find where in the ESTK data browser the #includepath statement might be.

 

Any help would be appreciated.

 

Tom

 

if(File.fs == "Macintosh"){   
     var myPath = "~/Library/Preferences/Adobe InDesign/Version 5.0/Scripts/Scripts Panel" ;//Macs
     }//end if
else {
     var myPath = "~/Application Data/Adobe/InDesign/Version 5.0/Scripts/Scripts Panel";//PCs
     }//end else

 

#includepath "myPath+'/FormatResources/'"

#include "_firstScript.jsxinc"


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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