Applescripting Appleworks
Applescripting Appleworks
- Subject: Applescripting Appleworks
- From: List Guy <email@hidden>
- Date: Wed, 01 Aug 2001 11:12:55 -0700
Unfortunately, I don't own AW5 which has significant differences in its
scripting from AW6. So let me try the simple first:
This statement:
make new document at desktop with properties
{name:newName, document kind:WP} with data finalText
appears to combine the finder's make document and applework's "make
document". I didn't think AW understood "at desktop". Nevertheless, the
statement works fine in AW6 -- AW5 make not understand "at desktop". In AW6,
the new document is created, but it isn't saved; that is, it does not appear
in the finder on the desktop.
So:
The "make new" command is surrounded by a tell block, yes? As in:
tell app "Appleworks 5"
make new [etc]
end
Have you tried the simpliest version
tell app "Appleworks 5" to make new document
I believe AW5 will create a new document of the default type with this
command.
If you want the document on the desktop in the finder, you must save it to
there.
macguy