Re: I must be Daft! (creating a new text file)
Re: I must be Daft! (creating a new text file)
- Subject: Re: I must be Daft! (creating a new text file)
- From: "David G. Simmons" <email@hidden>
- Date: Mon, 7 Apr 2003 11:48:14 -0700
No offense, but evan as a newbie, this makes even less sense. Whyh
close the file and open the file every time through the loop? Open the
file, write one char, close the file, open the file, write one char,
close the file. I am sure this is not what you meant. Maybe you
possibly meant:
set fU to "/tmp/junk"
set f to POSIX file fU
open for access f with write permission
repeat with c in characters of "abcde"
write c to f starting at eof
end repeat
close access f
read f
Anyway, thanks for all the answers. One was just what I needed. It runs
perfectly in my test routine, but fails miserably as part of a larger
script. I'll let you know if I figure out what Stupid AppleScript Trick
(SAT (tm)) I have pulled to make this true.
dg
On Monday, April 7, 2003, at 01:54 AM, John Delacour wrote:
At 11:28 pm -0500 5/4/03, david wrote:
set newFile to (open for access file FileLoc with write permission)
set eof_text to get eof of newFile
write FileTxt & return to newFile starting at (eof_text + 1)
;; write FileTxt to newFile
close access newFile
This makes no sense. All you need is 'starting at eof'
set fU to "/tmp/junk"
set f to POSIX file fU
repeat with c in characters of "abcde"
open for access f with write permission
write c to f starting at eof
close access f
end repeat
read f
-- JD
_______________________________________________
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.
--
David G. Simmons
Ever notice that even the busiest people are never too busy to tell you
just how busy they are.
_______________________________________________
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.