Copy link to clipboard
Copied
Hi all. I had a post earlier that asked something like this but i deleted it to simplify my question. How can i make the below script only apply to one frame and not all frames?
app.generalPreferences.preventSelectingLockedItems = false; |
I've tried a few different versions of this code but everytime i try to add a specific frame to this code it Stops working.
You could use a selection changed event + a label to fake it.
Something like:
var s=app.selection[0];
if (s.hasOwnProperty('extractLabel'){
if(s.extractLabel('disallowSelection')=='true'){app.selection[0]=null}
}
Copy link to clipboard
Copied
I don't think you can. Is there some way of doing that with the UI? I think it's an all or nothing option in InDesign...
Copy link to clipboard
Copied
You could use a selection changed event + a label to fake it.
Something like:
var s=app.selection[0];
if (s.hasOwnProperty('extractLabel'){
if(s.extractLabel('disallowSelection')=='true'){app.selection[0]=null}
}
Copy link to clipboard
Copied
I'll give this a shot later. thank you.