Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

evalFile vs //@include

$
0
0

What to use when, and why?


Some background: I'm currently working on a panel in Adobe Configurator which calls scripts via links in a html widget.

Basically it looks like this:

 

var scriptFile = new File(app.path + '/Presets/Scripts/myscript.jsx');

$.evalFile(scriptFile, 30000);

myFunction(args);

 

I'm wondering when the following is preferred:

 

//@include myscript.jsx

myFunction(args);


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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