56

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


47

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


45

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


45

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


45

Option + Click the menu bar Actually, there is a Menu Bar icon, of sorts. To toggle Do Not Disturb you can just hold the option key down while you click on the Notification Centre icon at top right of your Menu Bar. Doing this will instantly make any visible notifications disappear and grey out the icon. You can still click on it to manually show/hide the ...


44

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


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


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


27

⌘+⌥+←/↑/→/↓ 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


26

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


24

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


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

Complementing Monomeeth's excellent answer, there's also a toggle button available in the Notification Center in macOS. This is sort of the shortcut (albeit a bit lengthy) you are looking for. Click on the Notification Center button in the far right on the Menu bar to reveal the Notification Center UI. Now with the Today tab selected, scroll down to reveal ...


23

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


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

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


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


19

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


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.


19

********** UPDATED SOLUTION ********** This update is a direct solution to the OP's original question. This following AppleScript code will add a "Play/Pause YouTube" status menu item with the options to play or pause any YouTube video in either Google Chrome or Safari, whether the browsers are visible or not. Save this following AppleScript code as a "...


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

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


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


15

In System Preferences → Mission Control Change "Show Desktop" to F10 Change "Show Dashboard" to F11 In System Preferences → Keyboard, open App Shortcuts. Click + to add a new shortcut. Leave Application as "All Applications". In Menu Title enter exactly this phrase (without quotation marks): "Shut Down…" Click cursor in the Keyboard shortcut field, then ...


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