Thanks.
I did make
the change in “get info”, but why do the text file open in Appleworks as “untitled”
document?
Ruby
-----Original
Message-----
From:
applescript-users-bounces+rubym=email@hidden
[mailto:applescript-users-bounces+rubym=email@hidden]On Behalf Of Jeremy Sellors
Sent: Wednesday, October 20, 2004
7:07 AM
To:
email@hidden
Subject: Re: Appleworks.
If you want
to open "all" text files with AppleWorks. then select a text file and
then under the Finder Edit menu select "Get Info" then "Open
with" and select "AppleWorks 6" then click the change all. now
all text files (.txt) will open in AppleWorks and have the AppleWorks icon.
Now a text
file from TextEdit will open in Appleworks.
Note default
saved TextEdit files are RTF (.rtf) or you can choose Word format but not TEXT.
In order to
save a TextEdit file as .txt you have to select "Make Plain Text" from
the "Format" menu in TextEdit then save.
The
AppleWorks dictionary for save is:
save: Save a document
save document -- the document to
save
[in alias] -- the file in which to save the document
[as file type type class] -- the type of file in which to save the document (e.g.,
PICT, TEXT, MW2D)
[using translator international text] -- the name of the translator to use to save the
document
[template boolean] -- save the document as template?
the TextEdit
dictionary for save is:
save: Save an object.
save [reference] --
the object for the command
[as Unicode text] -- The file type in which to save the data.
[in alias] -- The file in which to save the object.
This
script might help:
set fileToConvert to choose file
tell application "AppleWorks
6"
open fileToConvert
save document 1 as file type "TEXT" --here
you get prompted for a name and you can select place to save the document
close document 1 saving no
quit
end
tell
Let me know
if this works or you need more help. __Jeremy
On Oct 19,
2004, at 10:59 AM, Ruby Madraswala wrote:
Unfortunately I don't have the Appleworks
dictionary in my system, can anyone give me the syntax for the following.
1. Open a text file (from TextEdit) in
Appleworks.
2. Save Appleworks document as text file.