While many web sites direct you to download Adobe Reader to open PDFs, I recommend that you use Preview instead, as it’s faster and less clunky than Reader, and it has more user-friendly annotation tools. Preview is a PDF and image viewer made by Apple that comes installed with the Mac OS. 2 Change the Default for Other File Types.1 Change the Default PDF Reader to Preview.This has the benefit of allowing you to see what URLs are tied to which apps (URI Schemes tab), what file extensions are included in a given UTI and are assigned to which apps (Uniform Type Identifiers tab), as well as from the app point of view see these same associations (Applications tab).
While we do not deploy the preference pane, making this available to users provides a GUI to accomplish the same tasks from the CLI.
As such, you may want to simply refer to the exit code to determine if a desired change was made. Be aware that after changing a given setting with setHandler, it can take longer than expected to subsequently see the change reflected when calling getHandler. "$SWDA" setHandler -app "$SHEET" -UTI ma-separated-values-textĪlternatively, if you use a configuration management tool you could use swda to keep your desired settings in the specified state. "$SWDA" setHandler -app "$CONTACT" -UTI public.vcard "$SWDA" setHandler -app "$CALENDAR" -UTI .event "$SWDA" setHandler -app "$CALENDAR" -UTI "$SWDA" setHandler -app "$CALENDAR" -URL webcal "$SWDA" setHandler -app "$CALENDAR" -URL ical "$SWDA" setHandler -app "$MAIL" -URL message "$SWDA" setHandler -app "$MAIL" -URL mailto "$SWDA" setHandler -app "$BROWSER" -UTI public.xhtml # "$SWDA" setHandler -app "$BROWSER" -UTI public.url # "$SWDA" setHandler -app "$BROWSER" -UTI public.html # "$SWDA" setHandler -app "$BROWSER" -URL https # "$SWDA" setHandler -app "$BROWSER" -URL http
# ^^ http, https, public.html ,and public.url handled by the above ^^ $SWDA setHandler -app "$BROWSER" -browser SHEET="/Applications/Microsoft Excel.app" MAIL="/Applications/Microsoft Outlook.app"