[AS CS3-4] Delete applied master, entirely deletes the master from doc?


here's trying do: add page @ end of document. then, if there master page applied automatically, "a-master", delete page has "[none]" master applied.

i've tried several variations on applying "[none]" or "none" or nothing or null, not seem work.

i have script thought worked, removes master spread entire document. not intended.

 

any suggestions on how this?

 

non-functional example script:

tell application "adobe indesign cs3"

tell document 1

  --page 1 has "a-master" applied

   tell page 1 to delete applied master

  --"a-master" gone document

end tell

end tell

the applied master property reference master spread in question. delete , indeed delete master (as you've discovered).

 

what want change applied master property "[none]" or null.

 

in javascript, using:

 

mypage.appliedmaster = null;

 

i'm not sure syntax is.

 

dave



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???