55

Assuming I understand your question, you can set your Touch Bar to show the function keys as its default display on an app by app basis. To do this: Go to Apple > System Preferences Select the Keyboard preference pane Click on the Shortcuts tab In the left sidebar, select the Function Keys option On the right-hand side click on the plus + button Select the ...


52

I would say desktop alias creation at install time for an app is an anti-pattern and bad practice for developers to implement as default behavior. The desktop belongs to the end user and macOS is designed to install apps for every user account and to consider more than one user per computer. To accomplish this, you’re either escalating the installer to ...


46

I have two alternatives: Press Cmd+L (go the Location/Search field), then Cmd+Return. Click the back button (<), then press Cmd while clicking the forward button (>). Both of these will open a tab in the background. (Often, Cmd + click opens the click target's reference in a new tab.) If you also press Shift while performing the second step of ...


44

Yes this is possible. Please revise the question title to "Creating System-Wide Keyboard Shortcut To Launch Applications" so further question-seekers can find this resolution easily. Most system events can be directly handled and manipulated with Automator. Automator is highly resourceful, yet, not taken advantage of. I'll walk you through the steps to ...


43

Karabiner-Elements (10.12 and later) Karabiner stopped working in 10.12 due to changes in the kernel architecture, and Karabiner was rewritten as Karabiner-Elements which uses a new JSON format for the configuration files. You can now add a rule like this to karabiner.json (https://pqrs.org/osx/karabiner/json.html): { "from": { "key_code": "t", "...


43

In macOS High Sierra (10.13) there is a 'Lock Screen' option built in the Apple menu. And finally a shortcut ctrl + cmd + Q :-)


41

I contacted Slack support and was told to use ⌘+R to do a quick refresh and reset the mode from overwrite to insert. From Slack support team: Thanks for writing in about this! We've seen this occur on Mac computers recently as well, and the good news is there is an easy way to switch! To reset the mode from overwrite to insert, this should be possible ...


35

This answer was written before the clarification that the OP is from a developer perspective, not end user I've always been firmly of the school of "nothing on the desktop" personally - but each to his/her own. You can find apps to launch in one of at least 6 ways... The Apple  Menu > Recent Items The Applications folder itself LaunchPad Spotlight Drag ...


34

This might be one of those that changes by language, but on a UK English keyboard [& from comments, also US English], there are 4 dashes available from the key to the right of 0, Minus. - - key alone (hyphen) – - Opt ⌥ (en dash) — - Opt ⌥ Shift ⇧ (em dash) _ - Shift ⇧ (underscore) Late Edit... To complete the set, & from ...


28

You can enable this feature in the "Keyboard" preference pane. Open System Preferences (e.g., from the Apple menu) Click on the "Keyboard" preference pane Go to the "Shortcuts" tab Choose "Mission Control" from the menu on the left Look in the box on the right for "Switch to Desktop 1" Enable the feature by "checking" the check box Be sure that the keyboard ...


26

⌘+⌥+←/↑/→/↓ will let you navigate split panes in the direction of the arrow, i.e. when using ⌘+D to split panes vertically, ⌘+⌥+← and ⌘+⌥+→ will let you switch between the panes. Note: ⌥ is the [alt] key


24

You can create Automator service to run this Applescript and give it a keyboard shortcut in the System Preferences Keyboard shortcuts This will close Alert and banners Notification In Automator choose a new service Add a Run Applescript Action and replace it's code with: my closeNotif() on closeNotif() tell application "System Events" tell ...


24

Closing and restarting Slack worked for me... But yeah, super annoying!


23

That would be the Ctrl-Left or Right Arrow to slide between full screen applications.


23

There are different ways to lock your screen. Note: These shortcut tips are for Sierra and below. In High Sierra, there is a new entry under the Apple Menu (with shortcut) to lock the screen. 1. Use keychain Open keychain -> Settings. Choose from there Show keychain status in menu bar. You can now choose from the menu bar to lock your screen. With this ...


22

This list is based off of the old iChat plist and scripting the list of emoticons from Wikipedia into Messages.app: 😊 :) 😉 ;) 😟 :( 😎 B) 😃 :D 😩 D: 😋 :d 😜 ;p 😛 :p 😮 :o 😖 :s 😶 :x 😐 :| 😕 :/ 😳 :[ 😏 :> 😷 :@ 😘 :* 😬 :! 😇 o:) 😠 >:-o 😈 >:-) 😺 :3 👍 (y) 👎 (n) ❤️ <3 Note most support using - for a nose so :-) works for 😊 ...


21

Open Keyboard Shortcuts Preferences Click "Mission Control" from the list Untick "Show Dashboard" (disable default beahviour of F12) Click "Application Shortcuts" from the list Click the "+" below the right-hand list Select Google Chrome from the drop down list In "Menu Title", type Developer Tools Click in "Keyboard Shortcut", then press F12


21

If you want to REALLY customize your Touch Bar, you'll need BetterTouchTool. There is a short post on the official BTT site, linking to a long blog post on medium.com illustrating Touch Bar customization using BTT. In the interest of link rot prevention, here are a couple of Touch Bar screenshots from the blog post. Holding down Ctrl key for a custom ...


19

I am using Ctrl+e to move to the last letter and Ctrl+a to move to the first letter. Remember that Emacs commands, work also in the Terminal.


18

Here's a partial solution for starters: Preventing accidental quitting in Safari (or any specific application) Simply set up an unusual keyboard shortcut for the "Quit Safari" menu item in Keyboard preferences. This will disable the standard ⌘Q shortcut, so accidentally hitting it doesn't make a difference — and you have to think before you quit! (...


18

Yes, using Karabiner (formerly KeyRemap4Macbook). First, go into the Keyboard preference pane, click "Modifier Keys…", and change Caps Lock to Control. Then, go into Karabiner and search for this option: Control_L to Control_L       (+ when you type Control_L only, send Escape) Check that, and you're done. With Karabiner you can do lots more ...


18

Fabio's answer seems not to works as expected, not sure if I have a different version of BTT, or osx. Anyway, I found another option: simply bind Quit Safari with another keybinding. Go to system preferences -> Keyboard -> Shortcuts -> App Shortcuts -> Add new one ('+' sign) -> Choose Safari from the Application menu -> Enter in the Menu Title the exact ...


18

This script will click on the Play/Pause button on a video playing in YouTube in Google Chrome, whether or not Google Chrome is visible. to clickClassName(theClassName, elementnum) tell application "Google Chrome" to (tabs of window 1 whose URL contains "youtube") set youtubeTabs to item 1 of the result tell application "Google Chrome" ...


16

Karabiner is currently incompatible with MacOS Sierra. Another, Sierra-friendly solution, is with Keyboard Maestro (it is not free). Change the behavior of the Caps-Lock key to Control through System Preferences -> Keyboard -> Modifier Keys as others have suggested. Then within Keyboard Maestro, setup a macro as follows: Triggered by USB Device Key ...


16

If you have a 2016 or later MacBook Pro with Touch Bar, you can assign one of the Touch Bar virtual keys to lock the Mac. It's under System Preferences/Keyboard and use the "Customize Control Strip…" button.


16

No. You should just copy the app to /Applications (or ~/Applications), and let the user choose if they want to create a shortcut in the dock or somewhere else. A lot of the time, "installers" in macOS are just disk images (dmg files) containing the app itself and a shortcut to the Applications folder. The user can choose to drag the app there, or anywhere ...


15

This is the correct method: tell application "Terminal" if not (exists window 1) then reopen activate -- insert your code here end tell EDIT You can open new windows with do script tell application "Terminal" do script "" end tell


14

Go to System Preferences → Keyboard → Text and set as many replacements as you wish. Set the ‘Replace’ to the standard characters and the ‘With’ to the emoji you would like the ‘Replace’ to be replaced with. These synchronise over iCloud, so will be available on your iOS devices too.


13

I don't know any fast and efficient method to find the recipient of a shortcut. But here is a receipe to initiate the hunt: Close most of your running applications so as to improve the efficiency of the hunt. Open a Terminal window, and run the following command: /usr/bin/sudo opensnoop This command will track down every open system call. Switch to the ...


13

Continuing on jtbandes' solution, once you have remapped the standard Quit command to a different keystroke (yes, sadly, you need to remap it manually for every application you are worried about accidentally quitting), you can create a service in Automator that takes no input. It should have a single action: Run AppleScript. The script is: tell application "...


Only top voted, non community-wiki answers of a minimum length are eligible