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

updating scripts to CC from CS6

Participant ,
Jul 27, 2015 Jul 27, 2015

Hello World!

I've got a lot of scripts that I've been updating but for some reason my ETSK isn't wanting to run them in CC, only CS6.  I make sure the target is set to "Adobe Illustrator CC 2015 (19.064) but when I hit run it changes to CS6.  Below is a snippet from the first part of my code, not sure what I'm missing.  I did a search for converting scripts from CS6 to CC and mainly came up with Photoshop stuff.  If you could kindly point me to some reference guides it would be most helpful in my endeavors.

I'm not sure what all scripting functions have changed / removed / added with the change from CS6 so this is a challenge that I look forward to.

Many thanks!

#target illustrator;

//#targetengine "session";

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

///// BUILDING THE PALETTE WINDOW

/////  First line also shows the palette version

var w = new Window("palette","Script Menu V2.0",undefined,{closeButton:true});

//w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [.75, .75, .75]);

w.orientation = "row";

w.alignment = "left";

w.margins = 1;

w.spacing = 0;

If you need me to past my entire code I will, it is currently at 758 lines and this includes any notes.

TOPICS
Scripting
758
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
Participant ,
Jul 27, 2015 Jul 27, 2015

I didn't realize that the ESTK for CS6 and CC were two different ones.  I kept trying to do all my stuff from the one that I had the shortcut for on my desktop without changing it to the newer CC one.

I would still like to have a link to the newer guides if possible as most of the ones do not list the major changes between CS6 and CC as far as scripting go.

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 ,
Jul 27, 2015 Jul 27, 2015

Was CS6 installed after CC? somehow it takes over as default, comment out the #target directive, it should take care of it

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
Engaged ,
Jul 27, 2015 Jul 27, 2015

Hi, Zantcor!

If I understand you correctly, you can specify the version of Illustrator in directive:

#target illustrator-19

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 ,
Jul 27, 2015 Jul 27, 2015
LATEST

o-marat schrieb:

Hi, Zantcor!

If I understand you correctly, you can specify the version of Illustrator in directive:

#target illustrator-19

That' right. But IMHO you target CC 2015 on this way.

Look here: Re: How do I target different version of Illustrator?

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