Unlocking all in documents (not master pages)

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Unlocking all in documents (not master pages)

Tagged: , ,

Viewing 5 reply threads
  • Author
    Posts
    • #98919
      Ian Peters
      Member

      Got a tricky one here, if someone can point me in the right direction, i’d be very very grateful.

      Basically I’ve got over 1000 pages in around 70 indesign files that have been supplied with every box locked on every page. The only way I can unlock presently is to use [Object/Unlock all on Spread]. Obviously this will take forever if I have to do it around 500 times for every page/spread.

      Just to clarify, these aren’t master page items and are not on locked layers. Every item has been manually locked, with the padlock icon on every box on every page.
      All layers are unlocked and master page items do not need unlocking or changing. Although, if all master page items are unlock too, that’s better than having everything locked.

      Is there a script or something that can at least unlock everything on a document, if not a batch or book.

      Otherwise I’m looking at a very long and boring task :(

    • #98924

      Try this line with Peter Kahrels Batch-Script:

      https://www.kahrel.plus.com/indesign/batch_convert.html

      app.activeDocument.pageItems.everyItem().locked = false;
      

      Kai

    • #99168
      Ian Peters
      Member

      Getting this error when adding the line you provided into the script box. Any ideas?

      ~/Desktop/Batch Test WMP/P932c Section 0 Front Matters RW LC ND.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)
      ~/Desktop/Batch Test WMP/P932c Section 1 Design Concept of the Vessel nd LC.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)
      ~/Desktop/Batch Test WMP/P932c Section 2 Properties of LNG ND LC.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)
      ~/Desktop/Batch Test WMP/P932c Section 3-1 Cargo Control Room Arrangement ND LC.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)
      ~/Desktop/Batch Test WMP/P932c Section 3-2 Integrated Automation System ND LC.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)
      ~/Desktop/Batch Test WMP/P932c Section 3-3 Custody Transfer System ND LC.indd: Invalid value for parameter ‘language’ of method ‘doScript’. Expected ScriptLanguage enumerator, but received null. (120)

    • #99169

      What is the “scriptbox”? You should save this line as plain text with suffix “.jsx”. Then you can call this script from Peters script. Before you could do a little test and run the line from your scripting-folder on a single document.

      Kai

    • #99170
      Ian Peters
      Member

      Thanks for the info, don’t have too much experience with doing anything but running a script. Tested on 5 files and now works perfectly. Thank you very much!

    • #14324073

      Thanks Kai!

Viewing 5 reply threads
  • You must be logged in to reply to this topic.
>