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

Pie chart script by Mariusz Sobolewski

Enthusiast ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

Does anyone know how to update this pie chart script by Mariusz Sobolewski to make it able to work on newest versions of InDesign.

I know the rotate() method is obsolete. And I tried to use the transform() method. But I can't figure out how to use the properties to make it working properly.

Thank you!

http://www.sobolewski.biz/stuff/PieGraph.zip

TOPICS
Scripting

Views

964

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Feb 19, 2018 Feb 19, 2018

Hi lf.corullon ,

don't know if it will work with InDesign CC 2018.

As far as I can see this script was written for InDesign CS which is version 3.

What you can try:

Change the version of the script environment to an older one.

( Try also a number. )

var currentVersion = app.scriptPreferences.version;

alert( currentVersion );

// Be very careful with that:

app.scriptPreferences.version = "3";

// Pie chart script code

app.scriptPreferences.version = currentVersion;

Don't forget to change it back to the recent

...

Votes

Translate

Translate
Community Expert ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

Hi lf.corullon ,

don't know if it will work with InDesign CC 2018.

As far as I can see this script was written for InDesign CS which is version 3.

What you can try:

Change the version of the script environment to an older one.

( Try also a number. )

var currentVersion = app.scriptPreferences.version;

alert( currentVersion );

// Be very careful with that:

app.scriptPreferences.version = "3";

// Pie chart script code

app.scriptPreferences.version = currentVersion;

Don't forget to change it back to the recent one!

Especially check after the old script gives you an error message.

Regards,
Uwe

Votes

Translate

Translate

Report

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
Enthusiast ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

Awesome!!! Thank you so much, Uwe.

It works very well! I didn't know this "feature". So, I can run a script using an old DOM... Great!!!

Votes

Translate

Translate

Report

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 ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

LATEST

I'm surprised as you are that it is working.

Thanks for reporting.

Regards,
Uwe

Votes

Translate

Translate

Report

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