Hello
I am looking at the users script in
https://sourceforge.net/p/bibdesk/wiki/BibDesk_Applescripts/ and I see only
a couple of things for managing groups.
I am trying to just make a script to add a pubblication to a group which I
name trough a dialog
My current best guess for the script is
tell application "BibDesk"
activate
-- without document, there is no selection, so nothing to do
if (count of documents) = 0 then
beep
display dialog "No documents found." buttons {"•"} default button 1
giving up after 3
end if
set thePublications to the selection of document 1
set _counter to 0
repeat with thePub in thePublications
set _counter to _counter + 1
end repeat
--display dialog "Working on " & _counter & " documents."
if _counter > 0 then
-- will set keywords for a group of papers. All papers will be
added the given keywords
set theGroupName to text returned of (display dialog "Enter name of
the group to which we add these papers:" default answer "")
-- got the group name now put the publication into the group
set theGroup to get static group theGroupName
repeat with thePub in thePublications
add thePub to theGroupName
end repeat
end if
end tell --Bibdesk
but it complains "can't get static group XYZ". Any suggestions?
More in general (I am very new to applescript): where do I get to learn the
objects with which I can play in a script (such as 'linked files', 'static
group' and so on).
Thanks a lot for your inputs,
Roberto
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users