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 13:40:22 +1000
Thanks mark
exactly what i wanted
On 1/5/06, Mark Lively <email@hidden> wrote:
> On 1/4/06, BigKM <email@hidden> wrote:
> > I want to put the variable theText into a text file.
> >
> > normally for something simple i would use
> > do shell script "echo "& theText & " > ~/file.txt"
> > but i want to stay away from the shell script on this one.
> >
> > i came across this but with big paragraphs it gets a bit ahead of it's self.
> > tell process "TextEdit" to keystroke theText & return
> >
> > also could someone explain the "with data" of the make command as that
> > sounds like what im looking for but i couldn't get the syntax write.
> >
>
> Set LUN to open for access "~/file.txt" with write permission
> write theText to LUN as text
> close access LUN
>
> -Mark
> LUN=lib$getlun()
> OPEN (LUN,AFILE,ACCESS=WRITE)
> WRITE(LUN,*)theText
> CLOSE(LUN)
> CALL lib$freelun(LUN)
>
_______________________________________________
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