http://livingcode.org/2009/01/31/tab-dumping-with-applescript-and-back-to-python <![CDATA[Comments on: Tab Dumping with AppleScript and back to Python]]> Dethe WordPress 2009-02-01T10:05:15Z http://livingcode.org/2009/01/31/tab-dumping-with-applescript-and-back-to-python/comment-page-1#comment-45 2009-02-01T02:05:15Z <![CDATA[Comment by: hhas]]> http://appscript.sourceforge.net

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

]]>
http://livingcode.org/2009/01/31/tab-dumping-with-applescript-and-back-to-python/comment-page-1#comment-46 2009-02-01T10:51:57Z <![CDATA[Comment by: delza]]> http://livingcode.org/ Hi Has,

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.

]]>
http://livingcode.org/2009/01/31/tab-dumping-with-applescript-and-back-to-python/comment-page-1#comment-47 2009-02-01T12:35:59Z <![CDATA[Comment by: hhas]]> http://appscript.sourceforge.net help() tends not to work on appscript &co.; it kinda used up its allowance of double-underscore magic on providing the human-readable syntactic sugar. Use the ASDictionary application to produce export application and scripting addition dictionaries in Python format.

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.

]]>
http://livingcode.org/2009/01/31/tab-dumping-with-applescript-and-back-to-python/comment-page-1#comment-48 2009-02-01T12:41:14Z <![CDATA[Comment by: delza]]> http://livingcode.org/ Ah, cool. Given that, I supposed I can find documentation on the scripting additions through normal AppleScript documentation channels. Thanks again!

]]>