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

Want a preference setting that will Lock guides by default.

Community Beginner ,
May 07, 2023 May 07, 2023

Copy link to clipboard

Copied

There should be an option that will either set guides to be locked by default OR when we save a file, if the guides are locked. it also saves that data so when i re-open the file I dont have to lock them again. its a mino inconvenience, but it would be nice

Idea No status
TOPICS
macOS , Windows

Views

120

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
1 Comment
Community Expert ,
May 07, 2023 May 07, 2023

Copy link to clipboard

Copied

LATEST

What you can do while waiting for such a feature to possibly be included in the software:

 

1) Create an Action, insert the menu command for "Lock Guides". This is a toggle, so if guides are currently locked they will become unlocked, which isn't fantastic.

 

2) Configure the Script Events Manager to run this action when opening or saving a file.

 

The following script code performs the same task as the action:

 

#target photoshop
app.runMenuItem(stringIDToTypeID("toggleLockGuides"));

 

or

 

#target photoshop
cTID = function (s) {
  return app.charIDToTypeID(s);
};
sTID = function (s) {
  return app.stringIDToTypeID(s);
};
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), cTID('TglL'));
desc1.putReference(cTID('null'), ref1);
executeAction(cTID('slct'), desc1);

 

A person with more advanced AM code knowledge than I possess could possibly add code for a conditional check to only apply the toggle if the current menu item was unticked (so as to not turn off guide locks if already active), however, I'm not sure if this is possible or not.

Votes

Translate

Translate

Report

Report