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 ...
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):
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 ...
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"
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 ...
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 😊 ...
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
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 ...
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!
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 ...
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 ...
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"
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 ""
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.
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:
This command will track down every open system call.
Switch to the ...
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 "...