Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 95538

$.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 95538

Trending Articles