You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lock keystroke?

Is there a keystroke in Ventura to toggle the lock/unlock box in the "Get Info" file window? If not, is there a way to create one using the System Prefs/Keyboard/Keyboard shortcuts/app shortcuts UI? "Lock" is nested so I can't do it the normal way.

Posted on Nov 19, 2022 7:51 AM

Reply
4 replies

Nov 24, 2022 11:15 AM in response to Blond James Blond

Here is a Monterey or Ventura Shortcut that toggles the user lock on selected files in the Finder. It is a two-action Shortcut:

  1. Get Selected Files in the Finder
  2. Run AppleScript with File


The Shortcut looks this simple:



  1. In Dock > Launchpad > Other click Shortcuts to launch the Shortcuts application.
  2. File menu > New Shortcut
    1. In the search field, enter Get Selected to locate the Get Selected Files in Finder.
      1. Click its blue i⃝ button and +Add to Shortcut
    2. In the search field again, enter run applescript to locate that action, and repeat 2.1.1 to add that action to the Shortcut workflow.
    3. Enter what you see above exactly in that order. The text will be an aggravatingly dark purple until you click that hammer icon. If there are no syntax errors, your result will appear as above.
  3. Select an arbitrary file or files in the Finder and then click the ▶︎ button to run the Shortcut. If the file(s) have no lock on them initially, the Shortcut will apply the lock. Run the script again and the lock symbols will be removed.
  4. When you choose File menu > Close, the Shortcut is also saved. You can right click on the generic Shortcut icon and choose Rename. Consider giving it the name [Un]lock Selected Files.
  5. You can add the finished Shortcut to your menu extras menu bar by dragging it from the Shortcuts All Shortcuts over the Menu Bar category in its side panel, or you can drag and drop the Shortcut onto your Dock for one click access there.
  6. Quit Shortcuts

Lock keystroke?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.