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.

> 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.


>
> 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
>
------------------------------------------------------------------------------
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

Reply via email to