Unix script for opening a log in items in the macbook through terminal

Maheswara
New Contributor

open -b com.apple.systempreferences /System/Library/PreferencePanes/ParentalControls.prefpane
When I run this script in the terminal it is entering in to a parental control .
like that way i want to open a users & groups in that i want Loginitems is their any script to open directly this loginitems?
5a4aef11352b4bb4a64dd6afb80de19c

2 REPLIES 2

mjsanders
New Contributor III

I don't fully understand why you want to help users opening the Login items.
If you goal is to help (or manage) users to open specific apps/files I suggest to look at the tools outset and dockutil. They work great in combination.

I am a supporter to help users finding app's (by filling the Dock) but I am no fan to manage users to auto-start some apps.
Or is a loginhook what you are looking for? I strongly suggest to use it only for background tasks, not for starting Apps.

takayuki
New Contributor III

try >sudo open -b com.apple.systempreferences /System/Library/PreferencePanes/Accounts.prefPane