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!
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
...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
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!!!
Copy link to clipboard
Copied
I'm surprised as you are that it is working.
Thanks for reporting.
Regards,
Uwe