Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

$.fileName from ExtendScript

$
0
0

I think this one is a bug, maybe introduced with the latest Illustrator CC 2014 update... This is Illustrator CC 2014 running on Windows 7.

 

I have a simple script like this:


#target Illustrator-18.064

alert($.fileName);

 

Now it works as expected when executed from the File>Scripts, or executed from inside ExtendScript ToolKit CC. But if I try this:

"C:\ProgramX86\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe" -run "C:\pathtoscript\testscript.jsx"


Then it is outputs "3"

 

I think this used to work, can someone confirm this, please?

I use this in scripts for a "#includepath (new File($.fileName)).parent" clause to include other files, and it doesn't work now!


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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