Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 6 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Script to Auto-Adjust Page Length based on content #14406136
    Nick Passmore
    Participant

    I don’t know offhand whether there is a script “in the wild” that will do this but it’s certainly scriptable.

    Are you working on MacOS or Windows?

    Is there only one text frame per page?

    And is the text frame on each page already expanded to fit the content?

    Is the stretch to be height only or width only or both?

    Do some pages need to be made smaller?

    Nick Passmore

    in reply to: Find overlapping frames #14403319
    Nick Passmore
    Participant

    Ah, thanks David. I wondered where it had gone.

    It seemed a bit long to include in the post (and messy to be honest) but noted for future reference.

    Nick

    in reply to: Find overlapping frames #14403311
    Nick Passmore
    Participant

    Hello Alicia.

    So, I wrote something that can find any “live” text frame that contains a first paragraph with either “rhr” or “rhv” paragraph style applied and that overlaps a similar text frame on its own page or a master page. (Despite my blind spot about xy coordinates!)

    It shows a dialog box once it’s done and also copies the list of page numbers to the clipboard.

    It’s crude and probably fragile and on a long document may be a bit slow. It makes no changes to the document so it should be safe but obviously try it on a copy.

    https://www.dropbox.com/scl/fi/vqf98tyw867ip5mq1io76/Overlapper.scpt?rlkey=4wvzbyr2591xdf1nu4bjs5v79&st=41m6zyb9&dl=0

    I don’t know how many variations on the running headers there are but if this doesn’t work I wonder if you could just temporarily add a few red blobs to the running headers on the master pages then look for pages where the blobs have not pushed the running header text to one side ?

    By the way, I see from the extended file info that this document was created from a Quark XPress file in 2015! If I were you I would do an export to and open from IDML because there could be a lot of crud hidden there.

    Nick

    in reply to: Find overlapping frames #14403265
    Nick Passmore
    Participant

    Is the document confidential? If not, or if you can make a redacted copy with just an example of the problem, I’d be happy to have a look.

    And which frame do you want to remove — the already unlocked one or the one still locked?

    I’m in the UK by the way so our waking hours may be out of sync.

    Nick

    in reply to: Find overlapping frames #14403218
    Nick Passmore
    Participant

    Whatever works of course — I was thinking you wanted to remove the locked text frame from underneath the unlocked one, to do which you would need to unlock it first.

    It proved an interesting rabbit hole though. Even after all these years I realised I didn’t entirely understand the difference between overriding and detaching master page items.

    (In fact I’m still not sure what the state of a page item derived from a master page item is when you can alter its text content but its geometry will still reflect a change made on the master page . . . every day really is a school day I suppose.)

    Nick

    in reply to: Find overlapping frames #14403157
    Nick Passmore
    Participant

    You can certainly list master page items:

    tell application id “com.adobe.InDesign”
    tell document 1
    set MPI to (master page items of every page)
    end tell
    end tell

    That will give you something like this:

    {{}, {text frame id 888 of master spread id 213 of document id 1}, {}, {text frame id 888 of master spread id 213 of document id 1}, {}}

    You could then “free” an individual item like this:

    tell application id “com.adobe.InDesign”
    tell document 1
    set o to (override item 1 of item 2 of MPI destination page page 2)
    detach o
    end tell
    end tell

    But you would need a bit of logic to decide which items to override. Do the ones you want to remove have any other characteristics that could be used? An object style say? Then for those items you could say is there a “live” page item with the same xy coordinates? if so override, detach and delete? Or do you want to delete the overridden one?

    Is this a problem on hundreds of pages?

Viewing 6 posts - 1 through 15 (of 15 total)