Re: Save text to file
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