• 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 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

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

  • Prev by Date: Re: Is Script Editor 2.0 latest?
  • Next by Date: Saving Safari documents as html?
  • Previous by thread: Re: Save text to file
  • Next by thread: Re: Save text to file
  • Index(es):
    • Date
    • Thread