• 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: open file for overwriting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open file for overwriting


  • Subject: Re: open file for overwriting
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 14 Oct 2003 23:03:15 -0700

On Tuesday, October 14, 2003, at 10:15 PM, Rua Haszard Morris wrote:

I'm trying to use open for access to open a file for writing to. If the
file exists, I want it to be overwritten.

set boo to "Dora:Users:michelle:Desktop:a"
set foo to open for access file boo with write permission
set eof of foo to 0
write "abcd" to foo
close access foo

--
Don't dream it. Be it. --RHPS
_______________________________________________
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.

References: 
 >open file for overwriting (From: "Rua Haszard Morris" <email@hidden>)

  • Prev by Date: Do shell script
  • Next by Date: Re: Do shell script
  • Previous by thread: open file for overwriting
  • Next by thread: Re: open file for overwriting
  • Index(es):
    • Date
    • Thread