Skip to main content
Participating Frequently
June 17, 2024
Question

Applescript—cannot embed ICC profiles in Illustrator save options

  • June 17, 2024
  • 3 replies
  • 937 views

Has anyone else ran into this issue, and possibly have a workaround?

 

Using the following Applescript in macOS 14.5 and Illustrator 27.x or 28.5, I am unable to save an Illustrator file with an embedded ICC profile. The file saves, but the profile does not remain embedded. 

save document 1 in filePath as Illustrator with options {embed icc profile:true}

I have verified that a) the ICC profile was already embedded in the source document, and that if I save the file via the GUI, checking the box to save the ICC profile works. Using AppleScript to save the Illustrator file does not retain the ICC profile.

I also posted this on Macscripter. I believe this to be a bug and will submit that report soon.

3 replies

Participating Frequently
June 29, 2024

I am working with Adobe Support to file a bug

Participant
December 11, 2024

6 month later, that bug seems still to be there. I have a similar problem.

Participant
December 11, 2024

Edit: "close doc saving yes" instead of "save doc as..." keeps the icc profile as it was if there was any at the beginning. maybe this helps as a little workaround.

Inspiring
June 18, 2024

I can confirm this issue (28.5), and would agree it’s a bug.

 

Have you tried the same script in JSX? AI’s AS and JS APIs share a lot of common plumbing so chances are it’s affected too, and this should increase priority for a fix.

Participating Frequently
June 18, 2024

Thanks for confirming!
I tried to recreate in JSX but I'm too novice to make it work.

Participating Frequently
June 17, 2024

here's a more precise script should anyoe want to try it on their own: 

tell application id "ART5"
	save document 1 in "~/Desktop/testFile.ai" as Illustrator with options {embed icc profile:true}
end tell