Re: Scripting makes AppleWorks 6 crash
Re: Scripting makes AppleWorks 6 crash
- Subject: Re: Scripting makes AppleWorks 6 crash
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 26 Dec 2002 12:14:13 +1100
I'm not a regular AppleWorks user, but I suggested that a recent
demonstration of Chritstmas card printing from AppleWorks ought to
be scripted. Now I have to produce. In a landscape mode I want to
paste two pictures into carefully calculated locations and then
insert a few text items to simulate what has been done by hand.
The script below is where I stand. The commented lines work OK
except for some redrawing delays of infinite duration. But I'm in
the process of debugging the ones below which very likely contain
errors due to guessing on my part. AppleWorks has a blank drawing
document open in landscape mode.
AppleWorks CRASHES. It doesn't complain about something I'm doing
wrong. It simply crashes.
It crashes alright. Here's a workaround. I don't know why it works but it does.
tell application "AppleWorks 6"
set _doc to make new document with properties {document
kind:drawing document}
set _txt to make new text frame in drawing area of _doc -- creates bugs
set _txt to make new text frame in drawing area of _doc --
fixes bugs -- only one text frame in document !
set text body of _txt to "Seasons Greetings"
end tell
--
--
Malcolm Fitzgerald email@hidden
flat 15, Cahors
117 Macleay St ph: 02 83569323 / 0403 972660
Potts Point NSW 2011
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.