From: Michael M. <mic...@ma...> - 2006-09-01 19:03:59
|
From what I can tell, that should work. Where are you calling it from, and which of those 3 functions is returning nil? If it hasn't finished loading yet, [frame dataSource] will be nil. -mike On Sep 1, 2006, at 3:43 AM, Christiaan Hofman wrote: > I see now. I don't know the webkit too much though, and I'm not able > to get the text of the loaded document. I tried [[[frame dataSource] > representation] documentSource] but that always gives me nil. Anyone > knows more about this? > > Christiaan > > > On 1 Sep 2006, at 1:04 AM, Michael McCracken wrote: > >> I was talking about this situation: >> >> 1. open google scholar web page in import sheet >> 2. search for something >> 3. click on 'bibtex' link - it loads a new page showing just the >> bibtex entry as text. >> >> At this point, we currently do nothing. Maybe the same bibtex- >> detection code that is run on the pasteboard contents in other cases >> could also be run on the string contents of the web view, if the mime >> type is text. >> >> -mike >> >> On Aug 31, 2006, at 3:37 AM, Christiaan Hofman wrote: >> >>> I think we already do that (if I understand you correctly). If the >>> data on the clipboard is in a format we recognize (s.a. bibtex) we >>> just add the parsed items instead of opening text import. This does >>> not work however with loading from file or the clipboard when the >>> import sheet is already open. >>> >>> Christiaan >>> >>> >>> On 28 Aug 2006, at 9:26 PM, Michael McCracken wrote: >>> >>>> Hi, I just noticed that google scholar has a feature which can send >>>> you bibtex as plain text for a search result, if you turn it on in >>>> the preferences. Other formats are also supported. >>>> It's not on by default, but you can turn it on in the "scholar >>>> preferences". >>>> >>>> This made me notice that if we have bibtex displayed on the text >>>> import pane, there's no reason we shouldn't support autofill using >>>> that information, right? >>>> >>>> If anyone wants to claim that job, go ahead. I think I've burned my >>>> bibdesk programming time for the next little while. >>>> >>>> Thanks, >>>> -mike >>> >>> >>> -------------------------------------------------------------------- >>> - >>> - >>> --- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Bibdesk-develop mailing list >>> Bib...@li... >>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop >> >> >> >> -- >> Michael McCracken >> mic...@ma... >> http://michael-mccracken.net/ >> >> >> >> --------------------------------------------------------------------- >> - >> --- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Bibdesk-develop mailing list >> Bib...@li... >> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Bibdesk-develop mailing list > Bib...@li... > https://lists.sourceforge.net/lists/listinfo/bibdesk-develop -- Michael McCracken mic...@ma... http://michael-mccracken.net/ |