Page Palette: remove local overrides

252 views
Skip to first unread message

Valter Viglietti - Frame Studio

unread,
Nov 20, 2012, 9:15:54 PM11/20/12
to InDesign Talk
Hi all!
I'm working on several diaries (daily, weekly...), and today I had to
restore all pages to their original Master Page state (I'm on ID CS3 on OSX
10.4.11).

I used the "Remove all local overrides" command into the Page palette but,
since there are LOTS of pages, I selected ALL pages in the document and then
used that command: alas, it seems to work only on the current page/spread.
:-(
(I tried again with just some pages, nope, same behaviour)

I then found I can assign a keyboard shortcut to that command, but I wonder
why it cannot work on all selected pages. Do you know a way it can?


I think I could re-assign the Master pages instead, but since there are over
a dozen Masters, I'm afraid I would make a mistake and assign the wrong
Master.

TIA,
Valter

Bret Perry

unread,
Nov 20, 2012, 10:04:40 PM11/20/12
to indesi...@googlegroups.com
On 11/20/12 6:15 PM, "Valter Viglietti - Frame Studio"
<frame....@fastwebnet.it> wrote:

>I used the "Remove all local overrides" command into the Page palette but,
>since there are LOTS of pages, I selected ALL pages in the document and
>then
>used that command: alas, it seems to work only on the current page/spread.
>:-(
>(I tried again with just some pages, nope, same behaviour)

Could probably be done with Applescript or JavascriptŠ Did you check out
InDesign Secrets or http://in-tools.com/ ?

Bret Perry
Studio IT Manager/Production Artist
ph 626-463-9365
fax 626-449-2201
bpe...@russreid.com


The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this email in error, please notify us immediately by calling the Help Desk at 866-682-8852.

Please consider the environment before printing this email.

Valter Viglietti - Frame Studio

unread,
Nov 21, 2012, 11:38:05 PM11/21/12
to InDesign Talk
Il giorno 21-11-2012 4:04, Bret Perry ha scritto:

> Could probably be done with Applescript or Javascript - Did you check out
> InDesign Secrets or http://in-tools.com/ ?

I checked them and I googled "master page Remove all local overrides
multiple pages", but found almost nothing (I mean, lots of reference to the
"Remove all local overrides" command, but none about assigning it to
multiple pages).

One exception was "Real World Adobe InDesign CS6" (on Google Books), where
it mentions selecting the pages (in the Pages panel), and then issuing the
command.
Maybe this is working in CS6 (or older), but not CS3.


It would be nice having a script doing that to multiple pages, if someone
here knows about one.
Missing that, I will settle on a keyboard shortcut. :-)

Bret Perry

unread,
Nov 22, 2012, 2:04:46 AM11/22/12
to indesi...@googlegroups.com
On 11/21/12 8:38 PM, "Valter Viglietti - Frame Studio"
<frame....@fastwebnet.it> wrote:

>Il giorno 21-11-2012 4:04, Bret Perry ha scritto:
>
>> Could probably be done with Applescript or Javascript - Did you check
>>out
>> InDesign Secrets or http://in-tools.com/ ?
>
>I checked them and I googled "master page Remove all local overrides
>multiple pages", but found almost nothing selecting the pages (in the
>Pages panel), and then issuing the
>command.
>Maybe this is working in CS6 (or older), but not CS3.

Good man.
Hmph, working Not in CS5 either...

But this does!
Hope you are on a Mac, since I mainly do applescript.
But it is an easy script!

Copy this and paste it in applescript editor and save it as a script, or
download at
http://dl.dropbox.com/u/5111961/InDesign_Remove_overrides_all_pages.scpt
then add it to your InDesign scripts folder (scripts panel, choose the
User Folder, pick Reveal in Finder from the pull-down panel menu and move
it inside the Scripts Panel folder.
(YOURHARDDRIVET/Users/YOURUSERNAME/Library/Preferences/Adobe
InDesign/Version7.0 (OUR InDesignVERSION/en_US(YOUR
COUNTRY)/Scripts/Scripts Panel)
You can also modify it to override other items "Supported by the following
objects: form field, button, multi state object, movie, sound."

Then run it from the panel:

tell application "Adobe InDesign CS5" to set thepages to remove override
every page of document 1

If you're on a Windows PC, you'd need a Javascript, Maybe someone else
knows that well. I could take a stab...

Valter Viglietti - Frame Studio

unread,
Nov 27, 2012, 6:09:46 PM11/27/12
to InDesign Talk
Il giorno 22-11-2012 8:04, Bret Perry ha scritto:

> Hope you are on a Mac, since I mainly do applescript.
I do!

> Then run it from the panel:
>
> tell application "Adobe InDesign CS5" to set thepages to remove override
> every page of document 1
Thank you Bret, I managed to try your script just today.
It works flawlessly, and it surely will come in handy! :-)))

Thank you very much, have a great day,
Valter

Roy McCoy

unread,
Nov 27, 2012, 6:13:52 PM11/27/12
to indesi...@googlegroups.com
It works without "to set thepages", right?

Thanks,

Roy

Bret Perry

unread,
Nov 27, 2012, 6:33:30 PM11/27/12
to indesi...@googlegroups.com
On 11/27/12 3:13 PM, "Roy McCoy" <roymc...@gmail.com> wrote:

>It works without "to set thepages", right?
>
>Thanks,
>
>Roy


Oops! Yes, thanks, Roy! "to set thepages" should be removed, I was hoping
it would variable "thepages" to the result, but there IS no result, so
useless to try, should be just:

tell application "Adobe InDesign CS5" to remove override every page of
document 1


This was a fun one!

Valter Viglietti - Frame Studio

unread,
Nov 27, 2012, 6:45:21 PM11/27/12
to InDesign Talk
Il giorno 28-11-2012 0:13, Roy McCoy ha scritto:

> It works without "to set thepages", right?

Yes, it works that way as well (i.e., with AND without it).


Andrew Brown

unread,
Nov 28, 2012, 12:21:01 AM11/28/12
to indesi...@googlegroups.com
On 28 nov. 2012, at 00:33, Bret Perry wrote:

> tell application "Adobe InDesign CS5" to remove override every page of
> document 1

At the moment, most of our longer projects have a number of paragraphs, here and there, where there is a plus against the name of the paragraph style. The culprit is probably Word. I usually search for that paragraph style and replace it by itself, which forces all occurrences to conform -- but with scores of styles, that can be rather time-consuming.

Is there a script that would zap all non-conforming paragraph styles in a volume?

AB

William Adams

unread,
Nov 28, 2012, 9:00:09 AM11/28/12
to indesi...@googlegroups.com
On Nov 28, 2012, at 12:21 AM, Andrew Brown wrote:

> At the moment, most of our longer projects have a number of paragraphs, here and there, where there is a plus against the name of the paragraph style. The culprit is probably Word. I usually search for that paragraph style and replace it by itself, which forces all occurrences to conform -- but with scores of styles, that can be rather time-consuming.
>
> Is there a script that would zap all non-conforming paragraph styles in a volume?

If you're sure there's no local formatting which should be kept you can select all the text then choose the contextual menu item ``Remove Local Overrides''.

Or just export to Adobe Tagged Text (if there're no embedded graphics) and examine how things are tagged.

Rather than place directly from Word one could always write a WordBASIC macro to export to Adobe Tagged Text (or XTags) and import that.

William

--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

Roy McCoy

unread,
Nov 28, 2012, 9:05:14 AM11/28/12
to indesi...@googlegroups.com
Andrew Brown wrote:

At the moment, most of our longer projects have a number of paragraphs, here and there, where there is a plus against the name of the paragraph style. The culprit is probably Word. I usually search for that paragraph style and replace it by itself, which forces all occurrences to conform -- but with scores of styles, that can be rather time-consuming.

Well, first of all, since you're on a Mac, here's another invitation to join the InDesign AppleScripting group: http://tech.groups.yahoo.com/group/applescriptingindesign or a blank message to applescriptingin...@yahoogroups.com. A couple of the best InDesign AppleScripters anywhere (unfortunately I'm not one of them) are in this group, and sometimes help is posted by Shirley Hopkins, the author of the book AppleScripting InDesign, recommended and available at http://www.amazon.com/AppleScripting-Adobe-InDesign-CS5-CS5-5/dp/1463797656/ref=pd_vtp_b_1 (see also http://www.yourscriptdoctor.com for supporting materials and info on another book on "JavaScripting" InDesign if you want that).

Is there a script that would zap all non-conforming paragraph styles in a volume?

More appropriately: Can such a script be written if it hasn't been already? and the immediate answer is certainly yes - or maybe almost certainly yes, though this one doesn't look like much of a challenge. You just need to get all your styles and then consecutively do what you want with them. Here's one I have to change the OTF figure style of all paragraph styles to tabular lining, not only of a single file (unless only one is selected) but of an entire file selection:

tell application "Finder"
set fileList to selection
repeat with processItem in fileList
set theAlias to alias ((fileList as string) & (processItem))
tell application "Adobe InDesign CS5.5"
activate
open theAlias
set theDoc to active document
tell theDoc
set myParagraphStyles to every paragraph style of theDoc
set theCount to count of myParagraphStyles
repeat with n from (count myParagraphStyles) to 1 by -1
set myCurrentStyle to item n of myParagraphStyles
set OTF figure style of myCurrentStyle to tabular lining
end repeat
end tell
close theDoc saving (yes)
end tell
end repeat
end tell

Your desired operation could be placed in the innermost repeat statement. Maybe someone will come up with that for you, though William's simple command may be all you need.


Roy
Reply all
Reply to author
Forward
0 new messages