You can embed profile with "embed this_image with source" command. And..."profile" have to be an actual profile.
Your code seems to use undeclared variable "profile". You have to set some ICC profile to other variable such as "myProfile".
Then.....
embed this_image with source myProfile
will be executed.
AppleScript's rexical coloring is important function to write AppleScript.
Apple's default color setting is nightmare. It can not detect some different rexical elements.
This is my rexical coloring in Script Editor. It can detect the difference of each rexical elements.
http://piyocast.com/as/wp-content/uploads/2018/02/edf39d5e74f06d49cbe0d21a20cffb75-660x1024.png
Topic:
App & System Services
SubTopic:
General
Tags: