re: Naming Files from List Ref
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.