From: <ho...@us...> - 2006-08-19 01:55:05
|
Revision: 7486 Author: hofman Date: 2006-08-18 18:54:53 -0700 (Fri, 18 Aug 2006) ViewCVS: http://svn.sourceforge.net/bibdesk/?rev=7486&view=rev Log Message: ----------- Add scripting support to generate (rich) text using templates in AppleScript. Deprecate selectionToClipboard. Modified Paths: -------------- trunk/bibdesk/Scripting/BibDesk.sdef Modified: trunk/bibdesk/Scripting/BibDesk.sdef =================================================================== --- trunk/bibdesk/Scripting/BibDesk.sdef 2006-08-19 01:50:51 UTC (rev 7485) +++ trunk/bibdesk/Scripting/BibDesk.sdef 2006-08-19 01:54:53 UTC (rev 7486) @@ -572,6 +572,12 @@ <responds-to name="selectionToClipboard"> <cocoa method="copyAsRTF:"/> </responds-to> + <responds-to name="templated text"> + <cocoa method=""/> + </responds-to> + <responds-to name="templated rich text"> + <cocoa method=""/> + </responds-to> <responds-to name="search"> <cocoa method=""/> </responds-to> @@ -776,11 +782,48 @@ description="Bibliography as styled text"/> </command> - <command name="selectionToClipboard" code="BDSKsbtc" - description="Generates a bibliography from the selected items and puts it on the clipboard. This command has to be sent to a document."> + <command name="selectionToClipboard" code="BDSKsbtc" hidden="yes" + description="Deprecated. Generates a bibliography from the selected items and puts it on the clipboard. This command has to be sent to a document."> <!-- This is a silly command name. But AppleScript choked on all the reasonable ones as they contained words like copy or bibliography, which are already taken. => Ugly but less confusing. --> </command> + <command name="templated text" code="BDSKttxt" + description="Returns a string representation of items in the document using a template."> + <cocoa name="templatedText" class="BibDeskTemplatedTextCommand"/> + <direct-parameter type="document" + description="The object responding to the command, the document."/> + <parameter name="using" code="usng" type="text" + description="The name of the template to use."> + <cocoa key="using"/> + </parameter> + <parameter name="for" code="for " optional="yes" + description="Specifies the publication or list of publications to parse."> + <type type="publication" list="yes"/> + <cocoa key="for"/> + </parameter> + <result description="the templated text" type="text"> + </result> + </command> + + <command name="templated rich text" code="BDSKtrtx" + description="Returns a string representation of items in the document using a template."> + <cocoa name="templatedRichText" class="BibDeskTemplatedRichTextCommand"/> + <direct-parameter type="document" + description="The object responding to the command, the document."/> + <parameter name="using" code="usng" type="text" + description="The name of the template to use."> + <cocoa key="using"/> + </parameter> + <parameter name="for" code="for " optional="yes" + description="Specifies the publication or list of publications to parse."> + <type type="publication" list="yes"/> + <type type="publication"/> + <cocoa key="for"/> + </parameter> + <result description="the templated rich text" type="rich text"> + </result> + </command> + <command name="show" code="BDSKshow" description="Shows an author or a publication in a separate window for editing."> <cocoa name="Show" class="BibDeskOpenCommand"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |