So I created a .webloc file using a .vncloc file as a template (standard xml/plist format), but instead of opening in a Safari window, it is downloading the html of the website into a file.
My goal is to eventually write a cronjob that keeps the URL of a server with a dynamic IP address up to date in the file (in dropbox) so that I can just double-click it anytime and get the correct server page.
The contents of the file look like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>URL</key> <string>http://**ipaddress...**:**port...**/</string> </dict> </plist>
How do I get the .webloc file to actually open and display in Safari, as if I were to have entered the URL myself?