Script for object styles being applied to specific layer
- January 20, 2023
- 1 reply
- 469 views
Hi, I'm very new to scripting and I've been unable to locate this answer elsewhere on the community. I'm trying to make a specific object style appear on a specific layer so that I can set that later to non-print and it doesn't show up on my exports.
Example: I have an object style called "Post It - Comments" which is a bright pink text box we use to write comments that stand out, but we don't want them to end up getting accidentally exported. I want to make sure all of these comment boxes can be easily toggled off, so I want them to move to a layer called "Comments" that I can default to not print in exports. Right now, it takes a long time (full of user error) to manually add these comments to the right layer because InDesign defaults to the last used layer, which is typically the Text layer.
I have attached a screenshot of how I use the Object Style as an example. I'm sure this is a simple script but can't find it. Also, it would be great if you can help me know how to apply it. Can I just add the script to a Word file and save as a .jsx and that will work in my Scripts Panel in my file explorer? Thanks!
