Extended AppleScript support in 11.3.1 and later
Posted: Sun Jul 29, 2012 9:07 am
Bookends 11.3.1 and later have much more robust AppleScript support than earlier versions. You can ask Bookends to return the unique ids of references in any group (including the built-in groups), as well as directly perform SQL searches and get the unique ids of references that match. These capabilities are fully explained in the User Guide in the section Getting reference information from Bookends via AppleEvents.
Below are listed AppleScript examples (without explanation -- see the User Guide for that) that work with the current version of Bookends:
Get unique ids of the selected references or references in a group
tell application "Bookends"
return «event ToySRUID» "Recent papers"
end tell
Get unique ids of references found with an SQL search
tell application "Bookends"
return «event ToySSQLS» "authors REGEX 'Johnson' "
end tell
Ask Bookends to return formatted references
tell application "Bookends"
return «event ToySSQLS» "21864" given «class RRTF»:”true”, string:”APA 6th
Edition”
end tell
Get group names
tell application "Bookends"
return «event ToySRGPN»
end tell
Ask Bookends to return the contents of a specific field
tell application "Bookends"
return «event ToySGUID» "21864" given «class RRTF»:”true”, string:”APA 6th Edition”
end tell
Jon
Sonny Software
Below are listed AppleScript examples (without explanation -- see the User Guide for that) that work with the current version of Bookends:
Get unique ids of the selected references or references in a group
tell application "Bookends"
return «event ToySRUID» "Recent papers"
end tell
Get unique ids of references found with an SQL search
tell application "Bookends"
return «event ToySSQLS» "authors REGEX 'Johnson' "
end tell
Ask Bookends to return formatted references
tell application "Bookends"
return «event ToySSQLS» "21864" given «class RRTF»:”true”, string:”APA 6th
Edition”
end tell
Get group names
tell application "Bookends"
return «event ToySRGPN»
end tell
Ask Bookends to return the contents of a specific field
tell application "Bookends"
return «event ToySGUID» "21864" given «class RRTF»:”true”, string:”APA 6th Edition”
end tell
Jon
Sonny Software