Unlocking all in documents (not master pages)
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Unlocking all in documents (not master pages)
- This topic has 5 replies, 3 voices, and was last updated 4 years, 6 months ago by Anne-Marie Concepcion.
-
AuthorPosts
-
-
October 16, 2017 at 3:48 am #98919Ian PetersMember
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 :(
-
October 16, 2017 at 7:11 am #98924Kai RübsamenMember
Try this line with Peter Kahrels Batch-Script:
https://www.kahrel.plus.com/indesign/batch_convert.html
app.activeDocument.pageItems.everyItem().locked = false;
Kai
-
October 23, 2017 at 6:39 am #99168Ian PetersMember
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) -
October 23, 2017 at 6:45 am #99169Kai RübsamenMember
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
-
October 23, 2017 at 7:00 am #99170Ian PetersMember
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!
-
September 24, 2019 at 9:45 am #14324073Anne-Marie ConcepcionKeymaster
Thanks Kai!
-
-
AuthorPosts
- You must be logged in to reply to this topic.