Posted on 02-08-2021 09:28 AM
Here's a fun one for you duti users out there... I'm attempting to use duti with this script to set defaults. The commands work when run locally, but when I attempt to use a script or a command in Files & Processes, they don't work. It also didn't work when added to the duti package as a postinstall script. 10.15.7 is the version of macOS; anyone seen this before? Might cdef behave differently?
#!/bin/sh
#makes outlook default mail program
/usr/local/bin/duti -s com.microsoft.outlook mailto
#makes outlook default calendar program
/usr/local/bin/duti -s com.microsoft.outlook ics all
#makes outlook default contacts program
/usr/local/bin/duti -s com.microsoft.outlook vcf all
Solved! Go to Solution.
Posted on 02-08-2021 09:55 AM
You probably want to script these in a way where you are running them as the user and not root. Also, I haven't used duti in some years. If you can't get it to work, take a look at SwiftDefaultApps.
Posted on 02-08-2021 09:55 AM
You probably want to script these in a way where you are running them as the user and not root. Also, I haven't used duti in some years. If you can't get it to work, take a look at SwiftDefaultApps.
Posted on 02-09-2021 11:12 AM
Thanks! Running the commands as current-user worked.