• 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: Marcus Rodrigues <email@hidden>
  • Date: Fri, 12 Sep 2003 12:45:09 -0300

Add "as alias and it will work:

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


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

> set theFilePath to (path to desktop as string) & "Test.txt"
> set theFileRef to open for access theFilePath with write permission
> write "Hello!" to theFileRef
> close access theFileRef
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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: Re: Writing to an existing file
  • Next by Date: Re: AppleScript dictionary
  • Previous by thread: Re: Writing to an existing file
  • Next by thread: GTQ create database problem
  • Index(es):
    • Date
    • Thread