Thank you very much Christiaan.
--
M. Tamer Özsu
University of Waterloo
(Currently on sabbatical leave at ETH Zürich)
On 2011-11-12, at 7:52 PM, Christiaan Hofman wrote:
>
> On Nov 12, 2011, at 15:43, M. Tamer Özsu wrote:
>
>> Thank you Charles. That seems to require installation of appscript, which in
>> my my case fails with
>>
>> unable to execute llvm-gcc-4.2: No such file or directory
>>
>> Also, does one set up this script the same way as any other applescript
>> (once appscript is installed)?
>>
>> Thanks for any pointers.
>>
>> --
>> M. Tamer Özsu
>> University of Waterloo
>>
>> On 2011-11-12, at 3:03 PM, Charles Turner wrote:
>>
>>> On Sat, Nov 12, 2011 at 6:32 AM, "M. Tamer Özsu" <[email protected]> wrote:
>>>
>>>> Christiaan kindly explained that to automatically put the open meta tags
>>>> in the keywords field I would need to use a script hook. I wonder if
>>>> anyone has written a script for this purpose.
>>>
>>> Well, in Python using py-appscript:
>>>
>
> This is not a script hook, only AppleScript can be used for script hooks.
>
> Here is an AppleScript that you can use as an "Import Publication" script
> hook:
>
> using terms from application "BibDesk"
> on perform BibDesk action with publications thePubs for script hook
> theScriptHook
> if name of theScriptHook is not "Import Publications" then
> return
> repeat with thePub in thePubs
> tell thePub
> set numFiles to count of linked files
> if numFiles > 0 and value of field "Keywords" ≠
> "" then
> set theTags to {}
> repeat with i from 1 to numFiles
> set theTags to theTags & (get
> tags of linked file i)
> end repeat
> if (count of theTags) > 0 then
> set AppleScript's text item
> delimiters to ", "
> set value of field "Keywords"
> to (theTags as text)
> end if
> end if
> end tell
> end repeat
> end perform BibDesk action with publications
> end using terms from
>
> Christiaan
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users