• 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: Writing to an existing file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing to an existing file


  • Subject: Re: Writing to an existing file
  • From: Steven Majewski <email@hidden>
  • Date: Fri, 12 Sep 2003 11:45:27 -0400

On Friday, September 12, 2003, at 11:30 AM, Steve Roy wrote:

set theFilePath to (path to desktop as string) & "Test.txt"
set theFileRef to open for access theFilePath with write permission

Change the line above to:

set theFileRef to open for access file theFilePath with write permission


write "Hello!" to theFileRef
close access theFileRef



( I've gotten bit with that one myself and it was a pretty frustrating bug
to figure out! )

-- Steve Majewski
_______________________________________________
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: Writing to an existing file
  • Next by Date: Re: Writing to an existing file
  • Previous by thread: Writing to an existing file
  • Next by thread: Re: Writing to an existing file
  • Index(es):
    • Date
    • Thread