indeed with a "tell document" now it works, thanks!
            tell document 1
                set theGroup to get static group theGroupName
                repeat with thePub in thePublications
                    add thePub to theGroup
                end repeat
            end tell

Thanks as well for the tip on the applescript dictionary, it is very
useful!

On Mon, Dec 4, 2017 at 11:22 PM, Christiaan Hofman <cmhof...@gmail.com>
wrote:

> Your script looks mostly ok. But you should put the last part in a tell
> block for the document, otherwise it does not know where to get the group
> from.
>
> Generally you can get information about the scripting terms for an app
> from the applescript dictionary, see the library in script editor.
>
> Christiaan
>
> ------------------------------------------------------------
> ------------------
> 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
>
>
------------------------------------------------------------------------------
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

Reply via email to