Re: "browse-url" support for Macintosh

Piet van Oostrum <[email protected]> 13 Jun 2002 17:27:07 +0200
Newsgroups gmane.emacs.macintosh.user
Message-ID <[email protected]>
>>>>> [email protected] (d) writes:

d> Here is a patch to browse-url.el which adds support for a MacOS
d> browser function.  It uses Applescript to ask the default browser to
d> open URLs.

There is no reason to patch browse-urk for this. The following also works:

(if (eq system-type 'darwin)
    (setq browse-url-generic-program
	  "openurl"))

where openurl is the shellscript:

#!/bin/sh
osascript -e 'open location "'$*'"'

I think the do-applescript solution requires a patched emacs, doesn't it?
-- 
Piet van Oostrum <[email protected]>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: [email protected]


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink