Re: "browse-url" support for Macintosh
[email protected] Thu, 13 Jun 2002 16:49:25 +0100
| Newsgroups | gmane.emacs.macintosh.user |
|---|---|
| Message-ID | <[email protected]> |
* [email protected] [2002-06-13 16:27:07] > 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 "'$*'"' Yes, this is similar to the first version that I had (mine called osascript directly from browse-url). > I think the do-applescript solution requires a patched emacs, doesn't it? Yes, though that patch isn't something specific to browse-url - it would be a good thing to do generally. The advantage of the do-applescript version is that it doesn't require the creation of extra processes. It should be a little faster, and will consume less resources (forking emacs to exec the shell and/or osascript seems like something best avoided where possible). dme. _______________________________________________________________ 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