(standard additions) read file as styled text
(standard additions) read file as styled text
- Subject: (standard additions) read file as styled text
- From: Brennan Young <email@hidden>
- Date: Mon, 23 Apr 2001 15:01:44 +0200
- Organization: Magic Lantern
I'm trying to use the standard additions file commands for reading a
styled text document.
Unfortunately when I try (read o as styled text) I get a 'parameter
error'. What's up with that? I thought styled text was a core
Applescript class.
set chosenFile to (choose file)
set docName to name of (info for chosenFile)
set o to (open for access chosenFile)
set d to (read o as styled text) -- parameter error here
close access o
-- this next bit is just to test whether it works...
tell application "Tex-Edit Plus"
activate
make new document with data d
end tell
--
_____________
Brennan