I've spent the last day googling this issue and can't get it figured out. Apparently, Big Sur treats load and unload as legacy and you are supposed to use enable and disable however I've tried many different combinations of commands and still can't get my plist to work. Load and unload give Input/Output errors.
I have a script that runs every 30 minutes during the day. It is located in ~/Library/LaunchAgents
and is called com.office.ks.ExportData
. It worked fine before Big Sur but now doesn't run. If I type launchctl
list I see that the process has a 126 error.
I've tried so many different types of commands using user/501
, gui/501
, sudo
, changing where spaces are, etc. I can't seem to get anything to work. All I'm trying to do is get my script to run every 30 minutes between 9am-5pm which never was an issue before.
sudo launchctl enable user/501/~/Library/LaunchAgents/com.office.ks.ExportData.plist
Can somebody please help me get this plist enabled? When I type the above command it doesn't give a message but doesn't give an error either. It just goes to the next line waiting for a new command.
com.office.ks.ExportData.plist
file? Where is the script- located?