• 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
End of File error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: files in a folder
  • Next by Date: Re: Sending Mail from shell script
  • Previous by thread: Re: files in a folder
  • Next by thread: Re: Sending Mail from shell script
  • Index(es):
    • Date
    • Thread