Create an Internet Location File

An internet location file, is a file that records a URL. When double-clicked in the Finder, the user is taken to the URL using the default application. For example, a developer might create an internet location file containing the url for their web site... which they can place in their software distribution so users can always easily contact them for support.

 

Usage...

Simply run the script. You will be prompted for a URL, which can be any standard URL type... such as 'http://mysite.com' or 'mailto:[email protected]'. The resulting internet location file will be created on the desktop.

Code...

set theUrl to text returned of (display dialog "Enter a URL..." default answer "")
tell application "Finder" to make new internet location file to (theUrl as string)
			

 

 

Hosted by www.Geocities.ws

1