• 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: Save text to file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save text to file


  • Subject: Re: Save text to file
  • From: BigKM <email@hidden>
  • Date: Thu, 5 Jan 2006 18:06:41 +1000

theres was a problem with closing the file.
it wasn't closing the file handle.
it should be
close access FileRef

but thanks michelle, im now using your additions.

On 1/5/06, Michelle Steiner <email@hidden> wrote:
>
> On Jan 4, 2006, at 11:10 PM, Michelle Steiner wrote:
>
> > On Jan 4, 2006, at 8:40 PM, BigKM wrote:
> >
> >> Thanks mark
> >> exactly what i wanted
>
> I don't know what happened there.  I meant to offer this as a
> suggestion:
>
> set theText to "this is some sample text."
> set theFile to "file.txt"
> set thePath to path to desktop as text
> set theFilePath to thePath & theFile
>
> set the FileRef to (open for access theFilePath with write permission)
> set eof of the FileRef to 0
> write theText to the FileRef
> close the FileRef
>
> -- Michelle
>
> --
> "The past is like a foreign country.  They do things differently
> there."  --Leslie Poles Hartley
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Save text to file
      • From: Michelle Steiner <email@hidden>
References: 
 >Save text to file (From: BigKM <email@hidden>)
 >Re: Save text to file (From: BigKM <email@hidden>)
 >Re: Save text to file (From: Michelle Steiner <email@hidden>)
 >Re: Save text to file (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Save text to file
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: Re: Save text to file
  • Next by thread: Re: Save text to file
  • Index(es):
    • Date
    • Thread