Name

choose URL — URL selection dialog

Description

Puts up a standard Choose URL dialog (with a Connect button); this is the same as the Finder’s Connect to Server dialog, useful for specifying servers on the local network, with an option to let the user choose various categories of server. The user can also just type a URL unless you prevent it; this can be basically any string at all. Does not actually connect! Returns a string. If the user cancels, an error is thrown (-128: “User canceled.”)

Example

choose URL showing Remote applications -- "eppc://169.254.199.218:3031/"

Get AppleScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.