0
Is it possible to change mode via script?
Community Beginner
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/td-p/1159439
Sep 26, 2008
Sep 26, 2008
Copy link to clipboard
Copied
How to change the mode via script.
Thanks,
prabudass
Thanks,
prabudass
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159440#M238437
Sep 26, 2008
Sep 26, 2008
Copy link to clipboard
Copied
You can't. You would need to create a new document with the desired color mode and copy/paste the objects from the original file.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159441#M238438
Oct 03, 2008
Oct 03, 2008
Copy link to clipboard
Copied
VB only:
1) make action (via insert menu item)
2) DoScript
1) make action (via insert menu item)
2) DoScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159442#M238439
Oct 06, 2008
Oct 06, 2008
Copy link to clipboard
Copied
Steve's right. You can do it in AppleScript also.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159443#M238440
Oct 13, 2008
Oct 13, 2008
Copy link to clipboard
Copied
System events will also do this in AppleScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Prabudass_
AUTHOR
Community Beginner
,
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159444#M238441
Oct 13, 2008
Oct 13, 2008
Copy link to clipboard
Copied
Thanks for your response. Through illustrator action in cs3, i changed the document mode(RGB to CMYK) via Visual Basic. But sometimes only it throws 2 different kinds of error messages.
CODE:
-----
appRef.DoScript "Change", "Convert"
While (appRef.ActionIsRunning)
WScript.sleep 1000
Wend
Error 1:
--------
Could not complete the Play Command because the action is playing.
Error 2:
--------
The Object "Document Color Mode: CMYK Color" is not currently available.
Could you please explain how to solve this error.
CODE:
-----
appRef.DoScript "Change", "Convert"
While (appRef.ActionIsRunning)
WScript.sleep 1000
Wend
Error 1:
--------
Could not complete the Play Command because the action is playing.
Error 2:
--------
The Object "Document Color Mode: CMYK Color" is not currently available.
Could you please explain how to solve this error.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Prabudass_
AUTHOR
Community Beginner
,
LATEST
/t5/illustrator-discussions/is-it-possible-to-change-mode-via-script/m-p/1159445#M238442
Oct 16, 2008
Oct 16, 2008
Copy link to clipboard
Copied
Any one please help me.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

