Differences between revisions 7 and 8
Revision 7 as of 2007-07-18 08:21:18
Size: 342
Editor: 62
Comment: iamlonleymsn.com
Revision 8 as of 2007-07-18 12:37:54
Size: 1677
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<div style='display:none;width=1px;'><a href=' http://infoarena.info/ '> infoarena </a> <br />
<a href=' http://afxbmx.info/ '> afx bmx </a> <br />
<a href=' http://homunkulus.info/ '> homunkulus </a> <br />
<a href=' http://chrykne.info/ '> chrykne </a> <br />
<a href=' http://bambulka.info/ ' > bambulka </a> <br />

</div>
= What is Appscript? =
 
Appscript is a high-level, user-friendly MacPython-to-Apple Event Manager bridge that allows you to control scriptable Mac OS X applications using ordinary Python scripts. Appscript makes MacPython a serious alternative to Apple's own ../AppleScript language for automating your Mac.
 
For example, to get the value of the first paragraph of the topmost document in ../TextEdit: {{{
app('TextEdit').documents[1].paragraphs[1].get()
}}}
 
This is equivalent to the /AppleScript statement: {{{
get paragraph 1 of document 1 of application "TextEdit"
}}}
 
Appscript builds upon lower-level Python packages (aem, osaterminology) to provide:
 1. an Apple event-based ''RPC mechanism'' for sending commands to applications
 1. a mechanism for converting data between common Python and Apple event types
 1. a simple ''embedded query language'' for constructing references to an application's object model
 1. a mechanism that uses application-defined terminology to present these references in human-readable form
 1. an integrated help system for exploring application terminology information
 1. a clean, ''object oriented-like syntax'' for ease of use.
 
See:
 * http://appscript.sourceforge.net/
 
= Application scripting notes =
 
Pages containing additional information on scripting individual applications:
 
 * ["../Apple Mail"]
 * ["../FileMakerPro"]
 * ["../Growl"]
 * ["../iCal"]
 * ["../iPhoto"]
 * ["../iTerm"]
 * ["../iTunes"]
 * ["../iView MediaPro"]
 * ["../OmniGraffle"]
 * ["../QuarkXPress"]
 * ["../TextEdit"]
 * ["../VoodooPad"]
 * ["../PhotoShop"]
 * ["../Illustrator"]
 * ["../SoundtrackPro"]

What is Appscript?

Appscript is a high-level, user-friendly MacPython-to-Apple Event Manager bridge that allows you to control scriptable Mac OS X applications using ordinary Python scripts. Appscript makes MacPython a serious alternative to Apple's own ../AppleScript language for automating your Mac.

For example, to get the value of the first paragraph of the topmost document in ../TextEdit:

app('TextEdit').documents[1].paragraphs[1].get()

This is equivalent to the /AppleScript statement:

get paragraph 1 of document 1 of application "TextEdit"

Appscript builds upon lower-level Python packages (aem, osaterminology) to provide:

  1. an Apple event-based RPC mechanism for sending commands to applications

  2. a mechanism for converting data between common Python and Apple event types
  3. a simple embedded query language for constructing references to an application's object model

  4. a mechanism that uses application-defined terminology to present these references in human-readable form
  5. an integrated help system for exploring application terminology information
  6. a clean, object oriented-like syntax for ease of use.

See:

Application scripting notes

Pages containing additional information on scripting individual applications:

MacPython/AppscriptModule (last edited 2008-11-15 14:00:31 by localhost)

Unable to edit the page? See the FrontPage for instructions.