![]() ![]() While I frequently use it to make file-sharing connections with other devices on my network-in olden days, via Apple Filing Protocol (AFP) and, in more recent times, SMB (Server Message Block)-Connect to Server goes far beyond those meager capabilities.įor example, if you’ve ever wanted to quickly initiate screen sharing via the Finder, you might be tempted to navigate to the Locations section of a Finder window sidebar, click on the computer you want to view, then find the Share Screen button. Hidden away in the Go menu, Connect to Server is actually an impressively versatile command, since it accepts a wide variety of URLs that you can plug into it. I speak, of course, of that old workhorse: Connect to Server. While I still spend plenty of time using the command line for these tasks, macOS has some powerful networking capabilities built right into the Finder that I also end up using quite a bit. 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).Back in my earliest days of using networked computers 1 I quickly learned the glories of connecting to other computers, whether it was via telnet, gopher, or eventually a web browser like lynx. 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" Below is what we use so each user gets our desired defaults:īROWSER="/Applications/Google Chrome.app"ĬALENDAR="/Applications/Microsoft Outlook.app"ĬONTACT="/Applications/Microsoft Outlook.app" To configure these options as part of initial device provisioning, outset is ideal with a login-once script. swda setHandler -app "/path/to/calendar_app.app" -UTI.swda setHandler -app "/path/to/spreadsheet_app.app" -UTI ma-separated-values-text.swda setHandler -app "/path/to/calendar_app.app" -URL.swda setHandler -app "/path/to/mail_app.app" -URL mailto.swda setHandler -app "/path/to/rss_app.app" -rssĪdditionally, you can set the default app for specific filetypes via the UTI ( Uniform Type Identifier).swda setHandler -app "/path/to/ftp_app.app" -ftp.swda setHandler -app "/path/to/mail_app.app" -mail. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |