End of File error
End of File error
- Subject: End of File error
- From: Deivy Marck Petrescu <email@hidden>
- Date: Tue, 4 Jun 2002 13:39:12 -0400
The following script works once and then it gives me an end of file
error, then works again, and then again another error, and it keeps
alternating.
Could anybody else verify that.
Thanks.
info: AS 1.8.1 OS 10.1.4
The script:
set ptdkt to path to desktop as string
set l to the clipboard
try
set theFile to (open for access file (ptdkt & "write.txt")
with write permission)
set eof of theFile to 0
write l to theFile
on error
close access file (ptdkt & "write.txt")
set theFile to (open for access file (ptdkt & "write.txt")
with write permission)
end try
log theFile
set k to ""
repeat 5 times
set k to k & return & (read theFile using delimiter tab before return)
end repeat
close access theFile
k
--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
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.