• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(standard additions) read file as styled text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


  • Follow-Ups:
    • Re: (standard additions) read file as styled text
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: using terms from with scripting additions?
  • Next by Date: iDo stable?
  • Previous by thread: Re: using terms from with scripting additions?
  • Next by thread: Re: (standard additions) read file as styled text
  • Index(es):
    • Date
    • Thread