From: <dm...@dm...> - 2002-06-13 15:49:45
|
* pi...@cs... [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. |