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

Is there a way to keep my guides locked after a save+close?

Community Beginner ,
May 03, 2017 May 03, 2017

We're creating templates at work, and I need these guides to stay locked, but every time i save and close, upon reopening the guides are unlocked?

this seems like a pretty serious flaw to me?? I'm obviously locking these guides for a reason? CC-17

3.0K
Translate
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

Community Expert , May 26, 2021 May 26, 2021

 

Locking guides is an application function, it is not stored in the file. Therefore, you will need to do the following:

 

* Create an action. Use the insert menu command for a single step action using the "lock guides" command.

 

* Create a new File > Scripts > Scripts Events Manager... Tick the enable checkbox.

 

* Use the lower section to select the "open document" event to play the action set and action to lock guides, then add it to the list of events in the upper section.

 

Now every time

...
Translate
Adobe
Adobe Employee ,
May 03, 2017 May 03, 2017

Hi Hillaryk,

Are you saving the files in .PSD format?

Have you tried updating Photoshop CC 2017.1.1?

Regards,

Sahil

Translate
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
Community Beginner ,
May 03, 2017 May 03, 2017

yes to the .psd format and my cc 2017 is up to date, but still no luck

Translate
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
Adobe Employee ,
May 03, 2017 May 03, 2017

Is it happening with all the document or only one specific document?

Translate
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
Community Beginner ,
May 03, 2017 May 03, 2017

Its happening with every file, i even tried restarting my computer

Translate
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
Adobe Employee ,
May 10, 2017 May 10, 2017

Could you check if only guides are disappearing or other settings are also reverting back?

Translate
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
Community Beginner ,
May 26, 2021 May 26, 2021

This is still a problem in version 22.4.1

Translate
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
Community Expert ,
May 26, 2021 May 26, 2021

 

Locking guides is an application function, it is not stored in the file. Therefore, you will need to do the following:

 

* Create an action. Use the insert menu command for a single step action using the "lock guides" command.

 

* Create a new File > Scripts > Scripts Events Manager... Tick the enable checkbox.

 

* Use the lower section to select the "open document" event to play the action set and action to lock guides, then add it to the list of events in the upper section.

 

Now every time you open a file, the guides will be automatically locked.

 

https://www.designeasy.co/2018/06/how-to-automate-boring-tasks-using.html

https://photoshoptrainingchannel.com/using-the-script-events-manager-in-adobe-photoshop/

 

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021

I've tried this a few times. It does not work.

Translate
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
Community Expert ,
Jun 07, 2021 Jun 07, 2021

It works for me. Post cropped screenshots of the expanded action and the scripts events manager window.

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021

Got it working but now the Script Events Manager loads every time.

scripteventmgr.png

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021

semgr2.png

Translate
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
Community Expert ,
Jun 07, 2021 Jun 07, 2021

The first one on the start app event is not what I suggested, as there would be no document open. The second one for the open doc event should work. Which leaves the screenshot of the fully expanded action panel to diagnose the issue.

 

EDIT: We were both posting at the same time. You should only need a single step action with the inserted menu command, no need to record the SEM into the action.

 

So is it working now?

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021

They're the same, the second ss just has the action panel expanded.

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021

Gotcha. Working now. Thanks for the help!

Translate
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
Community Expert ,
Jun 07, 2021 Jun 07, 2021

 

Excellent, so my original post was the correct answer?

 

You could also use a script instead of an action, once installed it would not have the dependency of being loaded as an action does.

 

 

 

// Toggle lock guides

toggleLockedGuides();

function toggleLockedGuides() {
    var idslct = charIDToTypeID("slct");
    var desc6 = new ActionDescriptor();
    var idnull = charIDToTypeID("null");
    var ref1 = new ActionReference();
    var idMn = charIDToTypeID("Mn  "); // Menu item class
    var idMnIt = charIDToTypeID("MnIt"); // Menu item type
    var idTglL = charIDToTypeID("TglL"); // toggleLockGuides
    ref1.putEnumerated(idMn, idMnIt, idTglL);
    desc6.putReference(idnull, ref1);
    executeAction(idslct, desc6, DialogModes.NO);
}

 

 

 

Or this simple one-liner:

 

 

app.runMenuItem(charIDToTypeID("TglL"));

 

 

or perhaps:

 

app.runMenuItem(stringIDToTypeID('toggleLockGuides'));

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

Translate
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
Community Beginner ,
Jun 07, 2021 Jun 07, 2021
LATEST

Yes, the initial solution works. Just wasn't clear to me about not putting the SEM in the action.

I'll look into that script.

Translate
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