The only stumbling block was that I couldn’t find a way to access the clipboard with appscript
You need to use the bundled osax module for that. Example:
from osax import OSAX
stdadditions = OSAX()
stdadditions.set_the_clipboard_to('Hello world!')
HTH
]]>Thanks! I suspected that (from an example I found using the Ruby version of appscript), but couldn’t find documentation on the osax module, or anything using help(osax) after importing it. What else can osax do, and where can I find the docs? It’s OK to tell me they are in the download and I just didn’t find them, but I did look for about half an hour or so.
]]>You can use OSAX instances to invoke any scripting addition command (one instance per addition), though in practice most osaxen don’t provide any functionality you can’t already get from existing Python modules. Documentation is available online (yeah, site navigation could be better) or included in the source (.tar.gz) download.
]]>