On 16 Apr 2008, at 7:47 PM, James Howison wrote: > Thanks Christian, > > On Apr 16, 2008, at 1:00 PM, Christiaan Hofman wrote: >> First, be aware that URL handling has changed. In the past, sending >> an >> "open location" apple event to BibDesk would just forward it to the >> system. Now, as BibDesk defines it's own URLs, those are handled by >> BibDesk. For http: URLs this will open them in the web group (not >> your >> browser). >> >> The problem is that the URLs this script generates most of the time >> will be invalid, because it contains invalid characters like spaces. >> It could be that your browser corrected for this before (mine >> doesn't), but BibDesk does not. > > Hmmm, maybe that is why it failed sometimes, but it basically worked > great. I think that Safari/FireFox does auto-URL encode if it finds > invalid chars in URLs. Try typing > > http://www.google.com/search?q=Hello World > > you'll get redirected to > > http://www.google.com/search?q=Hello%20World >
Doesn't work with FF, but does work with Safari. >> I've just added that, so for the next >> nightly the script will work. > > Should the script be URL escaping the fields it gets from BibDesk? > That's the safest, though there is no simple way to do it in AppleScript. The next release will try to escape invalid characters. > How will BibDesk know that it should open the http:// open URL with a > browser (ie send to the open cmd) rather than trying to open it as a > WebGroup? > BibDesk can't know, so it will always open in the web group. > Should the script send the open location URL command directly to > Finder? I just tried that and it works well (ie delete the "open > location theURL" line, then add this below the end tell (for BibDesk) > line: > > tell application "Finder" > open location theURL > end tell > > --J You can also simply add "tell me to" before "open location". Christiaan ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Bibdesk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-users
