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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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):
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
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)
To complete the set, & from ...
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 ...
⌘+⌥+←/↑/→/↓ 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
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:
tell application "System Events"
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 ...
This list is based off of the old iChat plist and scripting the list of emoticons from Wikipedia into Messages.app:
Note most support using - for a nose so :-) works for 😊 ...
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 ...
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 ...
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
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 ...
********** 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 "...
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!
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 ...
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 ...
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.
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 ...
This is the correct method:
tell application "Terminal"
if not (exists window 1) then reopen
-- insert your code here
You can open new windows with do script
tell application "Terminal"
do script ""
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 ...