• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hopefully A easy fix.

Advocate ,
Mar 13, 2017 Mar 13, 2017

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.

TOPICS
Scripting

Views

329

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Mar 14, 2017 Mar 14, 2017

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}
}

Votes

Translate

Translate
People's Champ ,
Mar 13, 2017 Mar 13, 2017

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 14, 2017 Mar 14, 2017

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}
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 14, 2017 Mar 14, 2017

Copy link to clipboard

Copied

LATEST

I'll give this a shot later.  thank you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines