Differences between revisions 4 and 5
Revision 4 as of 2007-02-14 01:39:21
Size: 2011
Comment: link fixage
Revision 5 as of 2007-02-14 01:41:00
Size: 2016
Comment: add some space
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This aeve module sounds great, exactly what I've been looking for, but I must say that I have been having a ton of trouble getting things to work. Some more documentation would really help. To see what I can add to the effort, I've added this page to jot down my findings. - WinstonWolff Nov 03 This aeve module sounds great, exactly what I've been looking for,
but I must say that I have been having a ton of trouble getting things to work. Some more documentation would really help. To see what I can add to the effort, I've added this page to jot down my findings. - WinstonWolff Nov 03
Line 5: Line 6:
''' Q: How do I Install this thing?''' '''Q: How do I Install this thing?'''
Line 12: Line 14:
''' Q: How do I get started? I know Python, but I don't know a thing about ../AppleScript.''' '''Q: How do I get started? I know Python, but I don't know a thing about ../AppleScript.'''
Line 15: Line 18:
''' Q: I've seen the iCal example of how to "make" an object, but I want to automate ../OmniGraffle. How do I create these properties to pass into make()? I've tried the following, but the iter Objects For Name() doesn't work.''' '''Q: I've seen the iCal example of how to "make" an object, but I
want to automate ../OmniGraffle. How do I create these properties to pass into make()? I've tried the following, but the iter Objects For Name() doesn't work.'''
Line 32: Line 36:
''' Q: I'm just having a really hard time finding my way around, where should I look for info? ''' '''Q: I'm just having a really hard time finding my way around, where should I look for info?'''

How to use aeve for newbies

This aeve module sounds great, exactly what I've been looking for, but I must say that I have been having a ton of trouble getting things to work. Some more documentation would really help. To see what I can add to the effort, I've added this page to jot down my findings. - WinstonWolff Nov 03

Q: How do I Install this thing?

A: In order to install aeve on Panther you need these modules: - ww nov 03

  1. pyrex - http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

  2. ../LaunchServices - available on this Mr. Ippolitti's website: http://undefined.org/python/#LaunchServices

  3. TECManager - also at undefined.org
  4. Finally, you can install aeve. I installed all of the above using "python setup.py build" and then "sudo python setup.py install"

Q: How do I get started? I know Python, but I don't know a thing about ../AppleScript.

A: To get a primer on how to "read" ../AppleScript and understand it as a Python programmer, I found Apple's "AppleScript Language Guide" the most useful. - WinstonWolff Nov 03

Q: I've seen the iCal example of how to "make" an object, but I want to automate ../OmniGraffle. How do I create these properties to pass into make()? I've tried the following, but the iter Objects For Name() doesn't work.

   1 import aeve
   2 app = aeve.talkto('/Applications/OmniGraffle.app')
   3 from aeve.Applications import OmniGraffle as og
   4 origin  = og.shape._aereg_.iterObjectsForName("origin", aekind="property", deep=True).next()
   5 size    = og.Standard_Suite._aereg_.iterObjectsForName("size", aekind="property", deep=True).next()
   6 name    = og.Standard_Suite._aereg_.iterObjectsForName("name", aekind="property", deep=True).next()
   7 
   8 shape = app.make(new=og.shape, with_properties={ origin:(100,100), size:(20,20), name:"Circle" } )

A: no answer yet.

Q: I'm just having a really hard time finding my way around, where should I look for info?

A: no answer yet.

MacPython/AeveNewbieDiscussion (last edited 2008-11-15 14:01:18 by localhost)

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