Hot answers tagged

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


40

This is SilverInstaller, adware to download more adware and ‘potentially unwanted programs’. This was likely distributed through fake Flash popups, which someone on the system clicked on, downloaded, opened, installed and provided administrator credentials to. Installed software in this package likely includes MacKeeper, VSearch, A Pirrit injector,...


30

This is because you are using an expired trial version of iStat Menu Status. The app will display a dollar sign icon instead of the system stats icon.


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


14

As well as the answers given, if your Mac has a Touch Bar, you can customise it to include a toggle for Do Not Disturb in the Control Strip which is (nearly) always visible. Of course, you'll have to give up one of the other functions from the Control Strip -- the defaults are brightness, volume, mute and Siri.


11

It's possible to set network access interface priority order. Go to System Preferences → Network, click on the lock icon to unlock the preference pane. Now click on the gear icon shown towards the bottom of the network interface list, and select Set Service Order... command. Now, in the new pane that opens, you can drag the priority network interface (...


7

In a default setup, macOS will prefer the ethernet connection over the WiFi connection automatically. You do not need to fear that you're limiting your network speeds by also connecting to WiFi. You can change the default order by opening System Preferences, select Network, click on the Gear icon below the interface list and select "Set Service Order". ...


5

That script does everything I would expect malware to do and has been around for a while so the domains it connects could be blocked or shut down now. Downloads some files, runs those files and cleans up after itself. It could be ad(vertising)ware instead of malware, but it’s clearly fingerprinting your mac, reporting a unique identifier for your Mac and ...


4

If you can use the Terminal, do open "`pbpaste`"


4

Assuming that the clipboard contains a string of the form /Users/username/path/to/file, this should work: tell application "Finder" to reveal (get the clipboard as string) as POSIX file The use of the verb reveal ensures that, if a path to a file is supplied, the Finder will display that file in its containing folder rather than launching an application to ...


4

pmset -g assertions will show the caffeinate-generated assertion (among others) along with how many seconds remain: pid 23694(caffeinate): [0x0013076c0005a0ed] 00:37:55 PreventUserIdleDisplaySleep named: "caffeinate command-line tool" Details: caffeinate asserting for 7200 secs Localized=THE CAFFEINATE TOOL IS PREVENTING SLEEP. Timeout will ...


3

If you have a trackpad, and you want to enter "Do Not Disturb" mode with gestures, then go to System Preferences->Trackpad->More Gestures and turn on "Notification Centre". Now you can swipe to the left with two fingers from the edge of the trackpad to open the Notification Center. Now swipe down with two fingers to reveal the Do Not Disturb switch. If you ...


3

Here are some other options that you could use. sysctl kern.version kern.version: Darwin Kernel Version 16.7.0: Sun Jun 2 20:26:31 PDT 2019; root:xnu-3789.73.50~1/RELEASE_X86_64 sysctl kern.ostype kern.ostype: Darwin sysctl kern.osrelease kern.osrelease: 16.7.0 sysctl kern.osrevision kern.osrevision: 199506 And as an alternative to sw_vers /usr/...


3

ls > Applications.txt is going to list the Applications.txt file in the list. Though I don't entirely understand all of your workflow, adding the -d flag should do the trick, by specifying *.app. ls -d *.app > Applications.txt Just like your previous approach though, that won't catch .app files buried in subdirectories (like your Adobe Suite). You ...


2

youtube-dl is great but if you want a GUI way to download video from YouTube and almost anywhere else, I highly recommend Downie. It works great, it's constantly being improved, it's developed by a named, reputable developer (unlike some tools out there which seem a little "fly-by-night"), and it has some nice Mac-specific features. There is a free trial ...


2

I see that the OP's question says "an application made in Automator." But, as an aside, and since this question has most of the right keywords to solve the problem I was having (applications launched from an Automator "Run Shell Script" action showing up behind other open applications)… If you are launching a GUI application from a shell script action in ...


2

Use the standard way - uname - defined in POSIX so works in all Unix systems and sopme others that provide compatibility. Examples from my Mac mini running macOS 10.14.6 uname -a gives all it can Darwin mini12 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64 Given the question you link to the ...


2

JBis’ answer is correct, only the regex string has changed in recent 10.14 versions. In 10.14.6, the regex to be changed is '^$|.{4,}+' And to reduce the minimum amount of characters in a password, you can just change the number 4 to 1, for example. Works like a charm. (Couldn’t post is a comment, it wouldn’t let me).


2

I found the following comment on Reddit. tl;dr you need to add ffmpeg or avconv executables to your PATH Sounds less like a problem with youtube-dl and more like you do not have ffmpeg or avconv on your PATH. Without one of the two, the streams cannot be muxed into a single file, so you're winding up with two files named .f136 and .f251 then you ...


2

The / matters This is the Unix file system and use of relative and absolute patyhs. All Unix files and directories are in one space all under the root directory / An absolute path is one beginning with / and is always seen the same. If the path does not beginning with / it is a relative path and if used it is appened to your current working directory. ...


2

Open Key Bindings from Preferences of Sublime Text or short cut is (cmd ⌘ + ,) and add like: [ { "keys": ["ctrl+c"], "command": "cancel_build" }, ]


2

You can achieve the first, lock it to a single display - though it will entail a change in working practice. System Prefs > Mission Control Uncheck "Displays have separate Spaces" Your Spaces/Desktops will then always move as a pair, locked together. Then use System prefs > Displays > Arrangement You can drag the menu bar representation to define your ...


2

2019 Possible Update I ran into this issue on my iMac Pro. The sound input wasn't registering my voice at all, however tapping on the iMac moved the input bar. To fix on Mojave, I went to System Prefs -> Accessibility -> Dictation in the left menu -> Open Dictation Preferences. On the left side under the microphone picture, change it from Automatic to ...


2

Taking it a step further, this is not quite a direct solution but it incorporates the direct solution within a larger set of commands. This following AppleScript code will copy to the clipboard, the POSIX paths of the item or items currently selected in Finder, only if Finder is the front most application. Otherwise it will copy to the clipboard, the ...


2

Can I be reached on FaceTime on Mac using my non-iPhone phone number? No. You need an iPhone to do that. I've added my phone number to my Apple ID What you have done is associated your mobile number with your Apple ID. The mobile number can be used to receive verification code when logging in with your Apple ID (if you do not have an active trusted ...


2

This is same as the shortcut you're trying. Apple logo in the menu bar in top left corner-> Force Quit. This should be done from an app whose menu bar is not in the hang(spin-ball) state. To achieve this, I normally click on desktop to get Finder. A different approach, type Activity Monitor.app in spotlight(cmd+space) or via launchpad or via Applications ...


2

Finder menu > Preferences > Sidebar tab Check the box next to Applications.


1

From man bash: HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to not be saved. A value of ignoreboth is shorthand ...


1

Apple covers this expertly. https://support.apple.com/en-us/HT201065 Once you have a backup, you can restore the documents and not the apps or restore the apps and delete only the ones with an embedded AppleID that’s wrong. With this procedure you don’t need any access to any AppleID or any previous passwords.


1

In iOS, tap(or hold) the globe key. In macOS, try control+space bar. Press and hold control and then press space to get a list of languages. If menu bar has input sources shortcut enabled in keyboard settings, one can use it too.


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