From: Andrew C. <ak...@sh...> - 2002-06-18 00:49:07
|
> * 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. Let's test it and add the modification to browse-url.el if it works well. It would be nice to have it already setup with some default. I wonder if we need to handle `mailto:' specially however. |