[Pythonmac-SIG] Applescript Confusion?
Bill Bedford
billb@mousa.demon.co.uk
Tue, 5 Mar 2002 12:10:49 +0000
At 12:29 pm +0100 05/03/02, Jack Jansen wrote:
>On Monday, March 4, 2002, at 08:46 , Bill Bedford wrote:
>>
>> import Freehand
>> import StdSuites
>> fh = Freehand.Freehand(start=1, timeout=10*60*60)
>> std = StdSuites.StdSuites()
>> fh.activate()
>> fh.open(StdSuites.file(file +'.art'), Dialogs=0)
>
>If all works as intended Freehand.Freehand should already use the
>StdSuites as a base class, and start=1 implies activate(),
The code above is part of a bigger script where activate() is needed -- sorry
>so the following should work:
>
> import Freehand
>
> fh = Freehand.Freehand(start=1, timeout=10*60*60)
> fh.open(Freehand.file(file +'.art'), Dialogs=0)
Mmmm
>>> import Freehand
>>> fh = Freehand.Freehand(start=1, timeout=10*60*60)
>>> fh.open(Freehand.file('Holkham:Coaches:BRW:BWK8003 Conflat L'))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'file'
>>>
--
Bill Bedford
You can win or you can have peace, but not at the same time.