Re: [Pythonmac-SIG] appscript and Firefox

2008-06-19 Thread Hengist Podd
Bill Janssen wrote:> But how do I write "<>" in appscript?You need to use the lower-level aem API to construct references/commands using raw AE codes. However, while both APIs are well documented in themselves, it's not currently explained to end users how to combine them in order to work around d

Re: [Pythonmac-SIG] appscript and Firefox

2008-06-19 Thread Bill Janssen
> But you can enter raw apple events which is what you want to do. > See here for and explanation of the brackets and how to enter them: > http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_raw_data.html Right, thanks, that's helpful. But how do I

Re: [Pythonmac-SIG] appscript and Firefox

2008-06-19 Thread Bill Janssen
Thanks, this is what I needed to know -- I'm hoping to avoid diving into the source. I'll download FF 2 and try it out. > appscript.terminology.dump() Not sure what you mean here. appscript.terminology doesn't have a "dump" function... Bill ___ Pytho

Re: [Pythonmac-SIG] [py2app] [pygame] can't build my app

2008-06-19 Thread Christopher Barker
(do try to keep this on the pythonmac list) Pierre-Alain Dorange wrote: Ok i follow the step from py2app documentation : - uninstall py2app - get package with easy_install (it find 0.3.6 and install fine) At that step running my setup.py fail with the same error but at a different step, in

[Pythonmac-SIG] appscript can't talk to 'System Events'?

2008-06-19 Thread Bill Janssen
So, here's another appscript problem: /Users/wjanssen 2 % python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from appscript import * >>> app('System Events').processes()

[Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Bill Janssen
Can someone tell me how to convert the old Classic-style paths returned from many of the appscript properties to real OS X file paths? Is there some appscript constructor which takes a path as an argument and returns a Unix path? Here's an example: >>> app('Microsoft Word').active_document.path(

Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Henning Hraban Ramm
Am 2008-06-19 um 20:15 schrieb Bill Janssen: Can someone tell me how to convert the old Classic-style paths returned from many of the appscript properties to real OS X file paths? Is there some appscript constructor which takes a path as an argument and returns a Unix path? Here's an example:

Re: [Pythonmac-SIG] appscript can't talk to 'System Events'?

2008-06-19 Thread Henning Hraban Ramm
Am 2008-06-19 um 19:16 schrieb Bill Janssen: So, here's another appscript problem: /Users/wjanssen 2 % python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. from appscript im

Re: [Pythonmac-SIG] appscript can't talk to 'System Events'?

2008-06-19 Thread Bill Janssen
Greetings from San Francisco Bay! Thanks for looking at this; it turned out that the problem was that I was running Leopard's X11. My system.log had lots of this: Jun 18 09:52:43 mymachine System Events[32983]: Unable to find class: X11Application, exiting Jun 18 09:52:43 mymachine com.apple.la

Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Bill Janssen
> > Here's an example: > > > app('Microsoft Word').active_document.path() > > u'wolfe:downloads' > > > > > That should be "/downloads". > > > > By the way, I'll update the appscript Wiki page with the answers I > > get. > > Have a look at mactypes.File and mactypes.Alias: > http://appscr

Re: [Pythonmac-SIG] [py2app] [pygame] can't build my app

2008-06-19 Thread Pierre-Alain Dorange
Le 19 juin 08 à 18:40, Christopher Barker a écrit : no, you can download the whole thing with an SVN client. I think the command line client comes with Apple's developer tools (I'm not sure how I installed it, it's been a while, but if you don't have it, you can try: http://www.collab.net/

[Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-19 Thread John Velman
I'm a bit out of my depth here, new to Mac, comfortable with Python, comfortable with SQL, but lots left to learn. Problem: My daughter is starting a small business renting a certain kind of prop to the movie industry. She needs to a) keep track of her stock, b) keep track of rentals, c) issue

Re: [Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-19 Thread Tom Weir
On Thu, Jun 19, 2008 at 4:15 PM, John Velman <[EMAIL PROTECTED]> wrote: > I'm a bit out of my depth here, new to Mac, comfortable with Python, > comfortable with SQL, but lots left to learn. > > Problem: > > > Am I out of my mind? > I think it really depends on how fast you need a solution, h

Re: [Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-19 Thread John Velman
On Fri, Jun 20, 2008 at 01:49:35AM +0200, Georg Seifert wrote: > I think it is much easier to do this with cocoa. You can use use xCode to > start with a cocoa python app, use interface builder to set up the > interface. So you can code in a known language but can benefit from the > rich macosx

Re: [Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-19 Thread John Velman
On Thu, Jun 19, 2008 at 05:13:31PM -0700, Tom Weir wrote: > On Thu, Jun 19, 2008 at 4:15 PM, John Velman <[EMAIL PROTECTED]> wrote: > > > I'm a bit out of my depth here, new to Mac, comfortable with Python, > > comfortable with SQL, but lots left to learn. > > > > Problem: > > > > > > > > > Am

Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Ned Deily
In article <08Jun19.140559pdt."58698"@synergy1.parc.xerox.com>, Bill Janssen <[EMAIL PROTECTED]> wrote: > Thanks. I think you're suggesting that I could take the "path" and > turn it into a File, and use the "path" property of the File to get > the POSIX path. Would it be too much to ask for a o