Home > Mac administration, macOS > Adding hidden Login Items on macOS Ventura

Adding hidden Login Items on macOS Ventura

One of the changes made between macOS Monterey’s System Preferences and macOS Ventura’s System Settings is that the Hide checkbox in System Preferences’ Login Items has disappeared from System Settings’ Login Items.

Login Items in System Preferences

Screen Shot 2022 10 27 at 2 25 28 PM

Login Items in System Settings

Screenshot 2022 10 27 at 2 40 18 PM

Fortunately for those who want to continue being able to launch applications on login and automatically hide them, it’s still possible to do so on macOS Ventura from the command line using osascript.

To do this, run a command similar to the one shown below using the logged-in user’s privileges:

/usr/bin/osascript -e 'tell application "System Events" to make login item at end with properties {path:"/path/to/itemname", hidden:true}'

For example, if you want Safari to launch at login with its windows automatically hidden, run the command below using the logged-in user’s privileges:

/usr/bin/osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/Safari.app", hidden:true}'

Safari will appear in the Login Items list without any sign that it’s launching as hidden, but the application behavior on login will be just like it would be on earlier versions of macOS where the Hide checkbox was checked.

Categories: Mac administration, macOS
  1. Rocío Segoviano Aguilar
    November 11, 2022 at 2:18 am

    What about if my cellphone is hacked with “Pegasus”!!!

  2. November 16, 2022 at 11:04 pm

    It’s missing two things: trailing single quote at the end of the command, and Ventura 13.0.1, you need to append the name of the login item if you don’t want a “login item UNKNOWN” error.

    • December 2, 2022 at 12:51 pm

      How to append the name of the login item?

      • Alec
        January 5, 2023 at 10:15 pm

        As a final property in the dictionary:

        ❯ /usr/bin/osascript -e ‘tell application “System Events” to make login item at end with properties {path:”/Applications/Safari.ap”, hidden:true, name:”Safari”}’

  3. January 28, 2023 at 4:00 pm

    I did this with Activity Monitor. It did not launch it “hidden”… It merely minimized it.

  4. January 28, 2023 at 4:03 pm

    Your example commands are missing the final end single-quote ‘

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: