Updated script: https://gist.github.com/itst/780dee5c510db6d1327c34c39166eb0f … (same link as in the first post.)
After setting up the scheduled task I realized the script does not know which database to use. Wow. Ended up with all my +6k bookmarks in the global inbox
Now it does know where to look for the group.