On Jun 9, 2009, at 5:33 PM, Chris Lovell wrote: > > --===============9087685893277345301== > Content-Type: multipart/alternative; > boundary=001e680f1640d19657046bec1574 > > > --001e680f1640d19657046bec1574 > Content-Type: text/plain; > charset=ISO-8859-1 > Content-Transfer-Encoding: 7bit > > Replies below. > > On Tue, Jun 9, 2009 at 11:07 AM, Christiaan Hofman > <[email protected]>wrote: > >> >> On Jun 9, 2009, at 3:43 PM, Chris Lovell wrote: >> >>> Thanks. I asked if it was possible to do this through AppleScript >>> because I'm trying to write an app that will facilitate >>> communication between BibDesk and Mellel (similar to BibDesk2Word >>> and CiteInPages, but Mellel isn't scriptable, so it's a bit >>> trickier). One piece of information Mellel wants from a >>> bibliographic app is the Endnote XML for each citation. So it would >>> be handy to be able to get that data with AppleScript. >>> >>> Is it feasible to use a template to generate Endnote XML? >> >> I think this should be possible, as XML is essentially text. However >> it would be non-trivial to generate such a template, the template >> editor would not be able to handle it I think. >> >>> Or is it possible to change BibDesk so that the formats available >>> through File-->Export are available to AppleScript? >> >> They are, as I said before. The "save" command does exactly the same >> as File > Export when you pass it a file and a file type. See the >> scripting dictionary for more info. > > > I didn't understand what you meant by the "save" command at first-- > I thought you were talking about the menu command, not AppleScript. > Sorry, AppleScript is new to me, and I didn't realize that commands in > the standard suite could have custom implementations. Thanks for the > pointer--the "save" command should do what I want. >
Actually, this is not custom, even though BibDesk does override the implementation. But that's just because the default implementation is buggy on Tiger and somewhat unpredictable, however the default implementation does use Export most of the time. >> Another option is to put the Mellel stuff in BibDesk itself, but I >> think this is undesirable because 1) the Mellel code provides no >> benefit to non-Mellel users and 2) Mellel expects to communicate >> with an app whose creator code is BERB (using AppleEvents), so this >> would require changing BibDesk's creator code. >> > > Are you sure about that? It makes absolutely no sense, as the creator >> code is an identifier for an app, not for what role an app plays. > > > I think so. At least, when I send properly constructed AppleEvents to > an app with the wrong creator code, things go wrong. It doesn't > matter, > though--since I can get the XML through applescript I can create a > separate > app and no modifications to Mellel are necessary. > Don't you mean that Mellel has the BERB creator code? Christiaan > >> >> Apart from that the biggest problem: someone has to spend time on >> it... >> >> Christiaan >> >>> Chris Lovell >>> >>> On Jun 8, 2009, at 9:01 AM, Christiaan Hofman wrote: >>> >>>> On Jun 8, 2009, at 3:26 AM, Chris Lovell wrote: >>> >>>>> Hi all, >>>>> >>>>> Is it possible to use applescript to export endnote xml for a >>>>> given >>>>> publication(s)? As far as I can determine, one can only use a >>> script >>>>> to export plain text, rtf, or templated text. >>>>> >>>>> Chris Lovell >>> >>>> You can use the save command. >>> >>>> Christiaan >>> >> ------------------------------------------------------------------------------ >>> Crystal Reports - New Free Runtime and 30 Day Trial >>> Check out the new simplified licensing option that enables unlimited >>> royalty-free distribution of the report engine for externally facing >>> server and web deployment. >>> >> http://p.sf.net/sfu/businessobjects_______________________________________________ >>> Bibdesk-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Bibdesk-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/bibdesk-users >> > > --001e680f1640d19657046bec1574 > Content-Type: text/html; > charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > Replies below.<br><br><div class=3D"gmail_quote">On Tue, Jun 9, 2009 > at 11:= > 07 AM, Christiaan Hofman <span dir=3D"ltr"><<a href=3D"mailto:cmhof...@g= > mail.com">[email protected]</a>></span> wrote:<br><blockquote > class=3D"= > gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); > margin: 0p= > t 0pt 0pt 0.8ex; padding-left: 1ex;"> > <div class=3D"im"><br> > On Jun 9, 2009, at 3:43 PM, Chris Lovell wrote:<br> > <br> > > Thanks. I asked if it was possible to do this through > AppleScript<br> > > because I'm trying to write an app that will facilitate<br> > > communication between BibDesk and Mellel (similar to > BibDesk2Word<br> > > and CiteInPages, but Mellel isn't scriptable, so it's a > bit<br= >> > > trickier). One piece of information Mellel wants from a<br> > > bibliographic app is the Endnote XML for each citation. So it > would<br= >> > > be handy to be able to get that data with AppleScript.<br> > ><br> > > Is it feasible to use a template to generate Endnote XML?<br> > <br> > </div>I think this should be possible, as XML is essentially text. > However<= > br> > it would be non-trivial to generate such a template, the template<br> > editor would not be able to handle it I think.<br> > <div class=3D"im"><br> > > Or is it possible to change BibDesk so that the formats > available<br> > > through File-->Export are available to AppleScript?<br> > <br> > </div>They are, as I said before. The "save" command does > exactly= > the same<br> > as File > Export when you pass it a file and a file type. See > the<br> > scripting dictionary for more info.</blockquote><div > class=3D"im">=A0<br>I = > didn't understand what you meant by the "save" command > at fir= > st--<br> > I thought you were talking about the menu command, not > AppleScript.<br> > Sorry, AppleScript is new to me, and I didn't realize that > commands in<= > br>the standard suite could have custom implementations. Thanks for > the<br>= > pointer--the "save" command should do what I want.<br><br> > > Another option is to put the Mellel stuff in BibDesk itself, > but I<br> > > think this is undesirable because 1) the Mellel code provides > no<br> > > benefit to non-Mellel users and 2) Mellel expects to > communicate<br> > > with an app whose creator code is BERB (using AppleEvents), so > this<br= >> > > would require changing BibDesk's creator code.<br> > ><br> > <br> > </div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px > solid rgb= > (204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Are > you sur= > e about that? It makes absolutely no sense, as the creator<br> > code is an identifier for an app, not for what role an app plays.</ > blockquo= > te><div><br>I think so. At least, when I send properly constructed > AppleEve= > nts to <br>an app with the wrong creator code, things go wrong. It > doesn= > 9;t matter,<br> > though--since I can get the XML through applescript I can create a > separate= > <br>app and no modifications to Mellel are necessary.<br>=A0<br></ > div><bloc= > kquote class=3D"gmail_quote" style=3D"border-left: 1px solid > rgb(204, 204, = > 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> > <br> > Apart from that the biggest problem: someone has to spend time on > it...<br> > <br> > Christiaan<br> > <div class=3D"im"><br> > > Chris Lovell<br> > ><br> > > On Jun 8, 2009, at 9:01 AM, Christiaan Hofman wrote:<br> > ><br> > > >On Jun 8, 2009, at 3:26 AM, Chris Lovell wrote:<br> > ><br> > > >> Hi all,<br> > > >><br> > > >> Is it possible to use applescript to export endnote > xml for a= > given<br> > > >> publication(s)? As far as I can determine, one can > only use a= > <br> > > script<br> > > >> to export plain text, rtf, or templated text.<br> > > >><br> > > >> Chris Lovell<br> > ><br> > > >You can use the save command.<br> > ><br> > > >Christiaan<br> > </div>> > ----------------------------------------------------------------= > --------------<br> > > Crystal Reports - New Free Runtime and 30 Day Trial<br> > > Check out the new simplified licensing option that enables > unlimited<b= > r> > > royalty-free distribution of the report engine for externally > facing<b= > r> > > server and web deployment.<br> > > <a href=3D"http://p.sf.net/sfu/businessobjects________________________= > _______________________" target=3D"_blank">http://p.sf.net/sfu/businessobje= > cts_______________________________________________</a><br> > > Bibdesk-users mailing list<br> > > <a href=3D"mailto:[email protected]">Bibdesk- > us...@l= > ists.sourceforge.net</a><br> > > <a href=3D"https://lists.sourceforge.net/lists/listinfo/bibdesk-users > "= > target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bibdesk-use= > rs</a><br> > <br> > <br> > ---------------------------------------------------------------------------= > ---<br> > Crystal Reports - New Free Runtime and 30 Day Trial<br> > Check out the new simplified licensing option that enables > unlimited<br> > royalty-free distribution of the report engine for externally > facing<br> > server and web deployment.<br> > <a href=3D"http://p.sf.net/sfu/businessobjects" > target=3D"_blank">http://p.= > sf.net/sfu/businessobjects</a><br> > _______________________________________________<br> > Bibdesk-users mailing list<br> > <a href=3D"mailto:[email protected]">Bibdesk- > us...@lists.= > sourceforge.net</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/bibdesk- > users" targ= > et=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bibdesk-users > </a= >> <br> > </blockquote></div><br> > > --001e680f1640d19657046bec1574-- > > --===============9087685893277345301== > Content-Disposition: inline > Content-Type: text/plain; > charset=us-ascii > Content-Transfer-Encoding: 7bit > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > --===============9087685893277345301== > Content-Disposition: inline > Content-Type: text/plain; > charset=us-ascii > Content-Transfer-Encoding: 7bit > > _______________________________________________ > Bibdesk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bibdesk-users > > --===============9087685893277345301==-- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Bibdesk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-users
