Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I/O Error while executing the script

Community Expert ,
Oct 01, 2021 Oct 01, 2021

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")
This issues occur only at one machine not others. What could be the reason behind it?
One reason I can think of is the permission issue but the file exists inside the Documents folder. So I am not sure.
 
Any help will be highly appreciated.
Best regards
TOPICS
Scripting
881
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 06, 2021 Oct 06, 2021

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. 😊

 

 

Translate
Adobe
Community Expert ,
Oct 01, 2021 Oct 01, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2021 Oct 04, 2021

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)
}

 

 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2021 Oct 01, 2021

can you post the pathToAnotherScript? maybe there's a character in the folder name that's causing the issue

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2021 Oct 04, 2021

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"

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 06, 2021 Oct 06, 2021
LATEST

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. 😊

 

 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines