Re: [Pythonmac-SIG] appscript

2006-02-20 Thread Ronald Oussoren
On 20-feb-2006, at 23:35, Keith Ray wrote: > I'm trying to use python/appscript to send apply-events to a cocoa > application, but it seems to be choking on parsing the aete... > possibly because the aeta has been replaced by 'sdef' for holding > scripting terminology. > > help? What happe

Re: [Pythonmac-SIG] appscript

2006-02-20 Thread Bob Ippolito
On Feb 20, 2006, at 2:35 PM, Keith Ray wrote: > I'm trying to use python/appscript to send apply-events to a cocoa > application, but it seems to be choking on parsing the aete... > possibly because the aeta has been replaced by 'sdef' for holding > scripting terminology. If all you want t

[Pythonmac-SIG] appscript

2006-02-20 Thread Keith Ray
I'm trying to use python/appscript to send apply-events to a cocoa application, but it seems to be choking on parsing the aete... possibly because the aeta has been replaced by 'sdef' for holding scripting terminology. help? Traceback (most recent call last): File "/fitEtc/PyFIT/fit/fit/TypeAdapt

Re: [Pythonmac-SIG] python on tiger question

2006-02-20 Thread Bill Janssen
> I was wondering if following the instructions on this page > http://bill.janssen.org/mac/new-macpython-page.html Clearly past time to move this to python.org :-). I'll take care of that. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org ht

Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString

2006-02-20 Thread Opstad, Dave
Title: Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString On 2/20/06 1:05 PM, "Keith Ray" <[EMAIL PROTECTED]> wrote: > Help ? You encode from Unicode, and decode to Unicode: >>> 'hi there'.decode('ascii') u'hi there' >>> u'hi there'.encode('ascii') 'hi there' Dave _

Re: [Pythonmac-SIG] pythonw vs. python

2006-02-20 Thread Bob Ippolito
On Feb 20, 2006, at 1:22 PM, Ronald Oussoren wrote: > > On 20-feb-2006, at 19:51, Bob Ippolito wrote: > >> >> On Feb 20, 2006, at 9:56 AM, Ronald Oussoren wrote: >> >>> I've been thinking a little about pythonw vs. python. The former is >>> needed because on OSX any API that needs a connection to

Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString

2006-02-20 Thread Ronald Oussoren
On 20-feb-2006, at 22:05, Keith Ray wrote: > PyFIT gives me ascii strings,and I am trying to call cocoa (and > eventually some applescript) functions from Python. I tried > > from Foundation import NSString > from AppKit import NSWorkspace > import os.path > > etc... > > ws = NSWorksp

Re: [Pythonmac-SIG] pythonw vs. python

2006-02-20 Thread Ronald Oussoren
On 20-feb-2006, at 19:51, Bob Ippolito wrote: > > On Feb 20, 2006, at 9:56 AM, Ronald Oussoren wrote: > >> I've been thinking a little about pythonw vs. python. The former is >> needed because on OSX any API that needs a connection to the window >> server (anything that uses a native GUI and some

Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString

2006-02-20 Thread Bob Ippolito
On Feb 20, 2006, at 1:05 PM, Keith Ray wrote: > PyFIT gives me ascii strings,and I am trying to call cocoa (and > eventually some applescript) functions from Python. I tried > > from Foundation import NSString > from AppKit import NSWorkspace > import os.path > > etc... > > ws = NSWor

[Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString

2006-02-20 Thread Keith Ray
PyFIT gives me ascii strings,and I am trying to call cocoa (and eventually some applescript) functions from Python. I tried from Foundation import NSString from AppKit import NSWorkspace import os.path etc... ws = NSWorkspace.sharedWorkspace() uapplicationpath = unicode(self.

Re: [Pythonmac-SIG] python on tiger question

2006-02-20 Thread Bob Ippolito
On Feb 20, 2006, at 11:49 AM, altern wrote: > In a few weeks I will be giving some Python lectures and I am checking > how to support students running Tiger. I don't run Tiger yet so I > haven't gone trough the process of getting it to run on that system. > > In the workshop I would need to expla

[Pythonmac-SIG] python on tiger question

2006-02-20 Thread altern
Hi all In a few weeks I will be giving some Python lectures and I am checking how to support students running Tiger. I don't run Tiger yet so I haven't gone trough the process of getting it to run on that system. In the workshop I would need to explain the students how to install it but also h

Re: [Pythonmac-SIG] pythonw vs. python

2006-02-20 Thread Bob Ippolito
On Feb 20, 2006, at 9:56 AM, Ronald Oussoren wrote: > I've been thinking a little about pythonw vs. python. The former is > needed because on OSX any API that needs a connection to the window > server (anything that uses a native GUI and some other calls) need to > be in an application bundle. py

[Pythonmac-SIG] pythonw vs. python

2006-02-20 Thread Ronald Oussoren
I've been thinking a little about pythonw vs. python. The former is needed because on OSX any API that needs a connection to the window server (anything that uses a native GUI and some other calls) need to be in an application bundle. pythonw is a program that can be placed anywhere on the

[Pythonmac-SIG] Fwd: python help

2006-02-20 Thread Nehemiah Dacres
Dear Python Help Group I am a student of Computer Science and i need help understanding how MacOS 10.4 (tiger) handles Python. the class I am in is "Intro to Object Oriented Programing" so they teach in python to reduce teaching of syntax so they can focus on O. Orientation. I need to import module