From: Christiaan H. <chr...@we...> - 2005-02-09 23:04:43
|
On Feb 10, 2005, at 0:52, Christiaan Hofman wrote: > On Feb 9, 2005, at 18:36, Thomas Counsell wrote: > >> Hello, is there any way to apply keywords to several entries at once? >> Thanks. Tom >> > > There is no build-in way to do this. If you have many items where you > want to do this, or you want to do this often, you can use AppleScript > for this. Just copy the following in Script Editor and save it as > Script (you can put it in ~/Library/Application > Support/BibDesk/Scripts/ if you want to use it more often). > > Sorry, small typo: tell document 1 of application "Bibdesk" set thePubs to selection display dialog "Enter a keyword to set for the selection:" default answer "" buttons {"Cancel", "OK"} default button 2 copy the result as list to {theKeyword, buttonPressed} repeat with thePub in thePubs tell thePub set oldKeywords to keywords if oldKeywords = "" then newKeywords = theKeyword else newKeywords = oldKeywords & "," & theKeyword end if set keywords to newKeywords end tell end repeat end tell Christiaan |