• 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
Re: applescript-users digest, Vol 2 #1455 - 5 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 2 #1455 - 5 msgs


  • Subject: Re: applescript-users digest, Vol 2 #1455 - 5 msgs
  • From: Bill White <email@hidden>
  • Date: Sat, 05 Jan 2002 22:32:09 -0500

> First off, open your text file using "open for access":
>
> set ref to open for access ("HD:blah:blah:theFile" as alias)
> set myText to read ref as text
> close access ref

You don't have to open for access to read a file, only to write to one. The
three lines could be condensed into:

set myText to read ("HD:blah:blah:theFile" as alias)

Also I don't think "ref" can be used as a variable as it is a reserved word,
an abbreviation for "reference."

Bill


  • Follow-Ups:
    • Re: applescript-users digest, Vol 2 #1455 - 5 msgs
      • From: Shane Stanley <email@hidden>
References: 
 >RE: applescript-users digest, Vol 2 #1455 - 5 msgs (From: Joe Kelly <email@hidden>)

  • Prev by Date: RE: applescript-users digest, Vol 2 #1455 - 5 msgs
  • Next by Date: Script Timer and OS 9.2.2
  • Previous by thread: RE: applescript-users digest, Vol 2 #1455 - 5 msgs
  • Next by thread: Re: applescript-users digest, Vol 2 #1455 - 5 msgs
  • Index(es):
    • Date
    • Thread