MACSCRPT Archives

March 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Robertson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 30 Mar 2006 06:18:45 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
> In Applescript, this of course works fine:
> 
> set filePath to "disk:folder:file"
> set f to (open for access file filePath with write permission)
> write theText to f
> close access f

As an alternative you can use the shell script method

Copy cell "Whatever" of current record to theText

Set theCommand to "echo " & quoted form of theText & " >
~/desktop/myfile.txt"

Do shell script theCommand

ATOM RSS1 RSS2