Wednesday, May 22, 2019

#1 2019-03-13 08:10:05 am

FredrikM
Member
From:: Förslöv, Sweden
Registered: 2019-02-19
Posts: 21

Use "Clear Effects" in InDesign from Applescript?

In InDesign in the effects panel under the menu there is a option "Clear Effects".

Is there a way to use this feature with applescript?

Offline

 

#2 2019-03-13 02:18:08 pm

Budgie
Member
From:: New Zealand
Registered: 2005-02-22
Posts: 676

Re: Use "Clear Effects" in InDesign from Applescript?

hi
you could try using the Remove_Doc_Effects.jsx from

https://github.com/GitBruno/Novelty/tree/master/Scripts

and call it from a applescript, or add it to the scripts folder in Indesign and call it from the scripts menu in Indesign.


Cheers
Budgie

"There's no shame in accepting aid from others... but perhaps there is a  responsibility."    - Batman

Offline

 

#3 2019-03-13 05:37:44 pm

Marc Anthony
Member
From:: Dallas, TX
Registered: 2006-04-27
Posts: 872

Re: Use "Clear Effects" in InDesign from Applescript?

Alternatively, you can apply a basic object style; this may change the transparency settings as well, based on the source style. You can also apply a style created on the fly.

Applescript:

tell application "Adobe InDesign CS3"'s document 1 to apply object style page item 1 using object style "[Basic Graphics Frame]" with clearing overrides

Offline

 

#4 2019-03-14 09:17:59 am

FredrikM
Member
From:: Förslöv, Sweden
Registered: 2019-02-19
Posts: 21

Re: Use "Clear Effects" in InDesign from Applescript?

I have thought about this case and perhaps it will be easier for me this time to copy the geometric bounds of my object and create a new rectangle that will be fresh and clean.

Offline

 

#5 2019-03-14 12:16:00 pm

EricLipton
Member
Registered: 2012-12-02
Posts: 24

Re: Use "Clear Effects" in InDesign from Applescript?

Hi,

you may try this:

tell application "Adobe InDesign CC 2015"
    do script "app.menuActions.itemByID(67885).invoke();" language javascript
end tell



Grtz.

Offline

 

#6 2019-03-18 06:15:22 am

FredrikM
Member
From:: Förslöv, Sweden
Registered: 2019-02-19
Posts: 21

Re: Use "Clear Effects" in InDesign from Applescript?

EricLipton wrote:

Hi,

you may try this:

tell application "Adobe InDesign CC 2015"
    do script "app.menuActions.itemByID(67885).invoke();" language javascript
end tell



Grtz.



Had to revisit this and tried out your suggestion, works just fine.

Thank's a lot Eric!

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)