Copy link to clipboard
Copied
Hi all,
I am facing one issue in one of the Illustartor plugin where script gives an I/O Error when I try to use the following code, even though file exists at the specified path
$.evalFile("PathToAnotherScript")
Hi @m1b and @CarlosCanto
It is resolved now, I ammsure the reason behind this error, but uninstalling and installing the plugins resolve this problem. So may be somehow scripts gets corrupted as suggested by @CarlosCanto
Thanks for your help. 😊
Copy link to clipboard
Copied
Edit: Sorry I didn't read your question properly. Ignore my comment below.
My first try would be to save the following script in the same folder (ie. PathToAnotherScript):
var PathToAnotherScript = "Your/path/to/another/script";
var folderContainingScript = new File($.fileName).parent;
$.writeln(folderContainingScript);
$.writeln(PathToAnotherScript);
and see if your PathToAnotherScript is right for this location.
- Mark
Copy link to clipboard
Copied
Hi @m1b
I haven't tried this but in my code of the plugin.
I check first if file exists and then evaluate.
So it is looks like
var _scriptFile = File('/Users/charu/Documents/Settings/Cache/js/Export.jsx');
if(_scriptFile.exists){
$.evalFile(_scriptFile)
}
Copy link to clipboard
Copied
can you post the pathToAnotherScript? maybe there's a character in the folder name that's causing the issue
Copy link to clipboard
Copied
Hi @CarlosCanto
So one of the plugin is calling extenal jsx script. Plugin exists inside the folder
/Library/Application Support/Adobe/CEP/extensions/
and the external script exists at following location
/Users/charu/Documents/Settings/Cache/js/Export.jsx
Therefore pathToAnotherScript= "/Users/charu/Documents/Settings/Cache/js/Export.jsx"
Copy link to clipboard
Copied
Hi @m1b and @CarlosCanto
It is resolved now, I ammsure the reason behind this error, but uninstalling and installing the plugins resolve this problem. So may be somehow scripts gets corrupted as suggested by @CarlosCanto
Thanks for your help. 😊
Find more inspiration, events, and resources on the new Adobe Community
Explore Now