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

Could not write the file an assertation has failed in illustrator

Community Beginner ,
Sep 07, 2018 Sep 07, 2018

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.

TOPICS
Scripting
2.1K
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
Adobe
Community Expert ,
Sep 07, 2018 Sep 07, 2018

there's nothing wrong with your function, does it happen with different files?

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 Beginner ,
Sep 07, 2018 Sep 07, 2018

Sometimes it occurs but not every time...it occurs with different files.

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 Beginner ,
Sep 07, 2018 Sep 07, 2018

assert.jpg

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
New Here ,
Nov 16, 2018 Nov 16, 2018
LATEST

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.

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