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

Is it possible to change mode via script?

Community Beginner ,
Sep 26, 2008 Sep 26, 2008
How to change the mode via script.

Thanks,
prabudass
TOPICS
Scripting
716
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 26, 2008 Sep 26, 2008
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.
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 ,
Oct 03, 2008 Oct 03, 2008
VB only:
1) make action (via insert menu item)
2) DoScript
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 Expert ,
Oct 06, 2008 Oct 06, 2008
Steve's right. You can do it in AppleScript also.
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 ,
Oct 13, 2008 Oct 13, 2008
System events will also do this in AppleScript
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 ,
Oct 13, 2008 Oct 13, 2008
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.
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 ,
Oct 16, 2008 Oct 16, 2008
LATEST
Any one please help me.
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