Hot answers tagged

32

It’s not like pulling the power plug because it sends various signals like SIGTERM which closes services and daemons. User applications with unsaved data may get lost, but they’re not arbitrarily closed as if the system lost power. From the man page (man reboot) The halt and reboot utilities flush the file system cache to disk, send all running ...


26

You have good old bash (or csh, or whatever). You can use it to write shell scripts.


25

Terminal runs the Unix shell, (bash, zsh, and others) which is obviously a command line scripting environment, which can execute complex scripts, particularly file processing. Python 2.7 comes bundled with MacOS, and always has done. Future?. Ruby, Perl are also included. AppleScript and its JavaScript equivalent (docs) are also there out-of-the box.


20

I believe there can be multiple reasons for this behavior and various solutions. Too bad that app store simply does not give any indication of what is wrong with it. The problem happened to me too. Nothing from this topic helped me. The only thing that worked is going to Activity Monitor and force-killing appstoreagent process. The app started to download ...


14

You can hold down the ⌥ Option key (also known as Alt) at startup, and that will show you all the available boot volumes.


12

After searching for how to fix this after I had erased my drive leaving me with no system, I have figured out how to fix it without having to download the installer again. What I did: With a USB installer connected, restart your Mac and hold the Option key to get to your boot selection screen. Select the Install MacOS Mojave option. DISCONNECT FROM THE ...


11

No. This won’t work since the drivers to run this hardware only ship with Catalina. If your support team isn’t ready for Catalina have them get you VMware fusion so you can run the older OS virtually while they contemplate supporting the new os.


10

Reason the reason seems to be this link Solution I tried everything out. The only thing works for me is to "minimise" Mail. Trick Because I normally close an app by shortcut command+w, It's so annoyed to minimise Mail every time. So I added a shortcut to close Mail using command+w. World is much better then. System Preferences -> Keyboard -> Shortcut ...


9

I'm on Mojave and Python, Ruby, and Perl are installed by default. But I understand that there is a Deprecation notice with Catalina that says future versions of macOS won't include scripting languages by default. As suggested, as a clarification there are Unix shells in macOS, although in Catalina the default shell is zsh. Testing on a 10.5.8, El Capitan ...


9

Yes, this is definitely possible. I just created this exact setup with macOS Catalina (10.15.1) as the "main" OS, and a separate macOS Mojave (10.14.6) installation in an APFS Volume (same disk, same container). Follow these steps: Step 1 Download "Install macOS Mojave" archive Click on this link which will open the Mac App Store on the Mojave page. ...


9

If you want a boot manger which behaves similar to GRUB, the you could install rEFInd. This free boot manager is similar, because rEFInd can be configured to display a menu of operating system choices for a specified period of seconds, then automatically choose the last used if the period expires.


7

First, execute in a terminal with zsh (Z Shell): echo 'export ENV_VAR=12345' >> ~/.zshenv Then, reload changes: source ~/.zshenv Finally, test if your new variable is set: echo $ENV_VAR Note: By standard, the .zshenv file should only contain environment variables setting commands. .zshenv is sourced on all invocations of the shell, hence it will ...


7

There has often been problems with AMD based GPUs and their reporting of video memory usage in iStat Menu. This has in the past been for example always reporting 100% usage, always reporting a climbing usage, etc. If you haven't got any performance degradation, and your computer usage really isn't affected by this - I would just ignore the readout. There'...


7

All relevant UUIDs and other Time Machine metadata are stored in /Library/Preferences/com.apple.TimeMachine.plist on the host side (the Mac to be backed up)! The file contains (probably the old) hostUUID (hardware), destination volume UUID (backup volume) and all IncludedVolumeUUIDs (source volumes). To get your current volume IDs use diskutil info diskXsY ...


5

The conditions are unclear at this time. Apple does not inform on how photoanalysisd or photolibraryd work. It is something they need to address properly. As far as I know, photoanalysis uses CoreML and Vision to analyse what images contain, not only Faces in People. So if you search for mountain, it should retrieve images of mountains. When it comes to ...


5

I have found the answer to actually be 'yes' you can release (flush) the VRAM. Here's what worked for me: I have a hot corner (MacOS) set to turn the display off, and when I activate it, even just for a few moments, my GPU usage goes down to near zero once it comes back on -> not surprising since it’s off, BUT it continues to stay low as I go back to ...


5

Building upon the information provided in @klanomath's answer, I was able to figure out a specific solution to my exact case (others may differ). In my case the problem was the extended attributes attached to the machine directory, for some reason Time Machine didn't like them. However, after forcing the correct values in I was able to sort these out. If ...


5

The easiest way is to zip each one. Right-click and select "Compress Name.app" (where Name is the name of the app). Then delete the app. If you want to restore it, just double click on the zip file, and the app will get re-created. Other possibilities include putting them inside a disk image, and then unmounting it. Any method in which the app is no ...


5

It should be in the global /Applications folder. By default all App Store downloads go there. It's been that way for years.


5

Technically, you don't need to check to see if the app is running. If it is, it will switch to it. A very simple bash script will do this for you #!/bin/bash declare -a Apps=( "Safari" "Firefox" "Mail" ) for i in "${Apps[@]}" do open -a "$i" done It's contains a simple array and will loop through each one and open the app if not running. You can ...


4

man tccutil The tccutil command manages the privacy database, which stores decisions the user has made about whether apps may access personal data. One command is current supported: reset Reset all decisions for the specified service, causing apps to prompt again the next time they access the service. If a bundle ...


4

I noticed this whilst testing an Apple Sign In workflow on an iOS Simulator, initially when clicking on the Apple Sign In button in the simulator an Alert is shown asking you sign in with your Apple ID in Settings. Depending on your iCloud settings after signing in iCloud will start syncing your entire iCloud profile to the simulator, in my case something ...


4

The solution that worked for me is described in this answer on the Apple support forum by rayhaanalykhan: Steps: Go to your applications folder. Find the installer for macOS Mojave. Right click on the installer and click "Show Package Contents". Click on folder named "Contents". Click on the folder named "SharedSupport". Delete the file named "InstallInfo....


4

The problem is occurring because of an improper account name beginning with the dash ("-") character. So the solution is changing the name of the account via the steps given in this link: https://support.apple.com/en-us/HT201548 When you open the terminal an automatic login command like login -pf [account-name] is executed. Let's say the account name is "-...


4

To see which app is using this library run this in terminal find /Applications -name Sparkle.framework the you will get something like: /Applications/VLC.app/Contents/Frameworks/Sparkle.framework /Applications/ForkLift.app/Contents/Frameworks/Sparkle.framework /Applications/Docker.app/Contents/Frameworks/Sparkle.framework /Applications/Wireshark.app/...


4

The sqlite queries mentioned DO work, e.g.: sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' The trick, however, is that you need full-disk access to access that SQLite database, so depending on where you're trying to do this, it's a chicken-and-egg problem. For just testing purposes, you can give your terminal full-...


4

I'm seeing this quite prominently with the latest update to Google Chrome Remote Desktop. Sure would be great if they fixed it, but I'm not holding my breath. Uninstalling the app works to fix the issue of course.


4

Just wanted to share the following app too - https://apps.apple.com/us/app/mutekey/id1509590766?mt=12 Good UI. Adds icon in the menu bar. Ability to add keyboard hotkey. Can select among input devices. Free. Same disclaimer as earlier answer: No financial or any other ties to the developer. Just found the app on the app store and love it.


4

In addition to the languages already mentioned in other answers, macOS Mojave also comes with the general purpose programming language PHP, which is well suited to processing a number of files in a directory and performing custom logic. In addition, macOS Mojave also comes with the programming languages awk and m4 that are specifically suited for processing ...


4

There is the following command. system_profiler SPStorageDataType You will have to parse the output. For example, I have a external HDD with a single volume named RONSPASPORT. The output relevant to this drive is given below. RON2PASPORT: Available: 29.27 GB (29,266,157,568 bytes) Capacity: 500.11 GB (500,105,216,000 bytes) Mount Point: /Volumes/...


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