macos – When shutting down, how to automatically replace an application prompt that interrupts the process?

I have scheduled a daily shutdown of my MacBook at 1:00 am, but an application interrupts the process with a prompt to which I must manually respond before the shutdown can continue. How can I force an automatic replacement of this prompt or prevent it from appearing first so that the machine can shut down successfully?

The application in question is Audio HiJack on macOS – Sierra.

macos – What is the next available API for kauth and network kernel extension, since these two programs are obsolete on MAC OS 10.15?

We have a solution to move all cold data (unused for a long time) from expensive storage to a cloud in order to reduce storage costs on the CIFS server. All files moved to the cloud are marked offline (FILE_ATTRIBUTE_OFFLINE file attribute set to files).

When users access these files from the Windows CIFS client, the Windows operating system recognizes the FILE_ATTRIBUTE_OFFLINE attribute and does not recall the cloud files to create a thumbnail or preview when browsing in the files. files unless users explicitly open a file object.

Under MacOS, the attribute FILE_ATTRIBUTE_OFFLINE is not respected and remembers all files to create thumbnails and previews when browsing files in the QuickLookSatellite Finder, which is very expensive for customers.

We have implemented the kauth API to block downloads from miniature processes, as well as the Network Kernel Extension API to track all SMB calls in order to inform our server that MAC OS is the customer.

But according to the release notes of MAC 10.15 (1), it is indicated that kauth and NKE are deprecated on MAC OS 10.15 and later.

Is there an alternative (to Kauth and NKE) or an interface to access an SMBClient offline attribute to the kernel and user space?

If not, can we take advantage of any API or system attribute used by Apple's iCloud to not download files while browsing?


  • The Network Core Extension API is now obsolete. (49284108)
  • The kauth API is obsolete. (50419013)

Thank you in advance.

homebrew – brew cask install java6 – Can not install on volume / because disabled – MacOS 10.15 beta

I've uninstalled / reinstalled an infusion, disabled macOS Gatekeeper and many other things. brew cask install java6 always entails this:

> $ brew cask install java6                                        ⬡ 8.11.4 [±OLYM-152-optimizely-web-per-banner ✓]
==> Satisfying dependencies
==> Downloading
Already downloaded: /Users/mmooring/Library/Caches/Homebrew/downloads/ef0dff3db9496248774373eb3eba27a50a91e83edda3fe32d2197db15a5ffc69--javaforosx.dmg
==> Verifying SHA-256 checksum for Cask 'java6'.
==> Installing Cask java6
==> Running installer for java6; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
installer: Cannot install on volume / because it is disabled.
installer: A newer version of this package is already installed.
==> Purging files for version 1.6.0_65-b14-468 of Cask java6
Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=mmooring USER=mmooring USERNAME=mmooring /usr/sbin/installer -pkg /usr/local/Caskroom/java6/1.6.0_65-b14-468/JavaForOSX.pkg -target /` exited with 1. Here's the output:
installer: Cannot install on volume / because it is disabled.
installer: A newer version of this package is already installed.
Follow the instructions here:
/usr/local/Homebrew/Library/Homebrew/system_command.rb:111:in `assert_success'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:52:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:29:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:33:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:59:in `block in run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:65:in `with_choices_file'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:52:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:34:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:214:in `block in install_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:205:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:103:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:23:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:92:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:158:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:123:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `

I've tried and answers this Apple StackExchange question:
How to run an application that requires the Java SDK on macOS Catalina 10.15?

Any help will be greatly appreciated because I am stuck for a few days. 🙇🏻♂️

macos – OSX Activity Monitor vs Medium Charge

I know that Avg Load (obtained with the help of the "uptime" command on the terminal) gives the average of the process quantity in "Runnable" state. I can see that the average load of my mac is about 2-3.
But, when I open the activity monitor at the same time, it indicates that hundreds of processes are running. I want to know why there is such a difference.

test / verify / confirm if the Macos applications / data are synchronized with icloud (from the script)?

I write some kind of peace of mind script before the flight to help prepare my Macbook erasure.

I often use the non-network, so it would be nice to confirm that I do not have applications or unsynchronized data classes.

You are looking for file system locations or commands through which this information is accessible.

macos – How to iterate elements of the window with a dynamic title

I'm trying to get all the lines of an application table.

set ProcName to "AppName"
tell application ProcName to activate
tell application "System Events"
    tell process ProcName
        tell tab group 1 of window 1
            set items to every row of table 1 of scroll area 1
            set itemValues to {}
            repeat with aRow in items
                set itemValue to (value of text field 1 of aRow)
                log itemValue
                set the end of itemValues to itemValue
            end repeat
        end tell

    end tell
end tell

However, when I run the script, it prints only several items because the window title changes constantly and the following error message is displayed.

 "System Events got an error: Can’t get window "App name window title"

Is it possible to tell the script to use other identifiers than title?
Or please suggest how to solve the problem.

Thank you.

macOS Excel warning missing fonts

MacOS Excel keeps warning: "We could not load all your fonts, some fonts may be missing." I have tried solutions in Microsoft support but nothing works.

yosemite – How to remove a B & W hard disk icon reappeared on the macOS desktop?

I have an iMac under OS X Yosemite 10.10.5 and an external hard drive with 3 partitions.

The external hard drive was unplugged and left unplugged. Since then, it appears on my desktop at each startup, in black and white. It can be ejected at any time (with orderE or Disk Utility), but always returns at each startup.

If I plug the hard drive, it also appears in color in addition to fake HD icons in black and white. It can be ejected and comes back only if I reconnect it. By clicking on the false icon, the right menu is displayed. All documents and applications are also accessible.

How to get rid of B & W icons?

macos – How to identify the selected audio input device from the command line?

I executed this command to display the I / O registry kit and I was looking for information to indicate the active microphone input device. But the second microphone indicates "active" (when running the command), but the built-in microphone was selected in the zoom application.

ioreg -p IOUSB -w0
+-o Root  
  +-o AppleUSBXHCI Root Hub Simulation@14000000  
    +-o Apple Optical USB Mouse@14600000  
    +-o FaceTime HD Camera (Built-in)@14400000  
    +-o ASM107x@14300000  
    | +-o PCP-USB@14310000  
    | +-o ASM107x@14320000  
    | | +-o IOUSBHostDevice@14321000  
    | | | +-o USB Keyboard@14321300  
    | | +-o Apple USB Ethernet Adapter@14324000  
    | +-o  CP 1500D@14340000  
    +-o Bluetooth USB Host Controller@14500000  
    +-o USB Optical Mouse@14200000  

Has anyone written a script to initiate a system call for the active camera?

usb – How to get an RFID scanner to connect to MacOS

I use an RFID scanner:

This scanner connects via USB to Windows and Rasbian without special firmware. When I plug it into my Mac, however, it turns on, but does not scan the RFID tags.

As MacOS is based on Unix, I assumed it worked the same way on the system. Does anyone know how to connect the RFID scanner to my Mac?