Copy link to clipboard
Copied
I'm using extend script for exporting a file into jpg format. when i'm performing an export operation, sometimes it shows "could not write the file. an assertation has failed" but not every time.
I'm using following code
var exportOptions = new ExportOptionsJPEG();
var type = ExportType.JPEG;
var fileSpec = new File(dest);
exportOptions.antiAliasing = true;
exportOptions.qualitySetting = 70;
app.activeDocument.exportFile( fileSpec, type, exportOptions );
Is it part of code error or anything from the side of Illustrator? it doesn't occur at all time. does it seem to an OS or version problems? Although I'm using the latest version of illustrator.
Copy link to clipboard
Copied
there's nothing wrong with your function, does it happen with different files?
Copy link to clipboard
Copied
Sometimes it occurs but not every time...it occurs with different files.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Click Start Menu - Setting - Update & Security - Windows Security - Open Windows Defender Security Center - Virus & Threat Protection - Virus & Threat Protection Setting - Controlled Folder Access - make it OFF.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now