Re: New Appleworks 5 documents
Re: New Appleworks 5 documents
- Subject: Re: New Appleworks 5 documents
- From: "Neal A. Crocker" <email@hidden>
- Date: Wed, 1 Aug 2001 11:54:32 -0700
Your script has two problems. You can't use "with data" (don't ask
me why) and you're missing the magic "at front". Try this (which I
just verified as working from the Classic Script Editor):
set newnm to "foo"
set newtxt to "bar" & return & "blah"
tell application "AppleWorks 5"
activate
set newdoc to make new document at front with properties
{document kind:"WP", name:newnm}
tell text body of newdoc to set paragraph 1 to newtxt
end tell
Neal
Date: Tue, 31 Jul 2001 14:12:43 -0400
Subject: New Appleworks 5 documents
From: "Greg Back" <email@hidden>
To: AppleScript Mailing List <email@hidden>
Hi scripters-who-are-so-much-better-than-me,
This may have been discussed earlier pertaining to other app's, but the
following won't work in Appleworks 5 (I have never seen the need to dish out
the money for AW 6):
make new document at desktop with properties {name:newName, document
kind:WP} with data finalText
newName and finalText are both string variables.
If i take out "with properties... and with data...," it still doesn't work.
Also, I tried changing "at desktop" to
at desktop folder
at (path to desktop)
at "MacHD:Desktop Folder:"
at "MacHD:Desktop Folder"
at desktop of startup disk
none of which have worked.
What obvious thing am I overlooking??
TIA,
Greg