• 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: Naming Files from List Ref
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Naming Files from List Ref


  • Subject: re: Naming Files from List Ref
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 2 Sep 2002 14:15:40 -0700

On Monday, September 2, 2002, at 01:36 PM, Mathew Baker wrote:

set originalJobText to (open for access file "Macintosh HD:Users:mathew:Desktop:input_list")

set colorText to (open for access file "Macintosh HD:Users:mathew:Desktop:Separations")

set originalJobText to read file "Macintosh HD:Users:mathew:Desktop:input_list"
set colorText to read file "Macintosh HD:Users:mathew:Desktop:Separations"

Open for access will open the file for reading (and for writing if you set the write flag), but it is not necessary for reading an entire file once.

If you need to read a file in chunks, or for some other reason open it and then read it, you do it like this:

set the OriginalJobFile to (open for access file "Macintosh HD:Users:mathew:Desktop: input_list")
set the OriginalJobText to read OriginalJobFile

--Michelle

We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: HTML parsing
  • Next by Date: Re: Naming Files from List Ref
  • Previous by thread: Re: Naming Files from List Ref
  • Next by thread: Bypass the Mail AppleScript Send Alert?
  • Index(es):
    • Date
    • Thread