[ann] AppScripting 0.3.1
[ann] AppScripting 0.3.1
- Subject: [ann] AppScripting 0.3.1
- From: has <email@hidden>
- Date: Thu, 18 Dec 2003 01:45:26 +0000
Hello,
For the interest of experienced application scripters who are
familiar with Python, a new MacPython module for application
scripting is now available for review:
http://freespace.virgin.net/hamish.sanderson/appscripting.html
AppScripting provides a high-level interface to the Apple Event
Manager, allowing scriptable applications to be easily controlled
from Python scripts. Application object references and commands are
constructed using natural Pythonic syntax. While AppScripting does
not provide OSA support for Python (that's a separate task), my aim
is to otherwise match (if not exceed<g>) the AppleScript language's
own support and ease-of-use in high-level inter-application control.
Example:
tell app "Finder" to get name of every folder of home -- AppleScript
app('Finder.app').home.folders.name.get() # Python
Please note that AppScripting is still in-development and is not yet
ready for prime-time use. For now, I'm primarily looking for feedback
from experienced scripters familiar with both application scripting
in Applescript and general programming in Python. Comments regarding
ease of use, usability issues, ambiguous behaviours, unknown
bugs/glitches/problems are welcome. (Feedback on the documentation
will be especially useful as I suspect significant work is still
required here.)
Thanks,
has
-------
Notes:
- AppScripting requires MacPython 2.3 or later. The following
third-party modules are also required (make sure to install them in
the correct location):
http://undefined.org/python/LaunchServices-0.1.tar.gz
http://freespace.virgin.net/hamish.sanderson/htmltemplate-0.3.0.tar.gz
- If running scripts from the command line/Python interpreter, make
sure you execute them using pythonw, not python. (MacPython's Carbon
modules require access to the Window Manager.) Alternatively, run
from PythonIDE or similar.
- Please read the included Manual.txt before use, and check the TO DO
section to see what features are not yet available.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.