Re: Write to file??
Re: Write to file??
- Subject: Re: Write to file??
- From: Philip Aker <email@hidden>
- Date: Thu, 01 Aug 2002 02:13:51 -0700
set junky to POSIX path of ((path to desktop) as string) & "junky.txt"
do shell script "echo Date: " & (do shell script "date -u
'+%y.%m.%d'") & " >> " & junky
do shell script "open " & junky
--perl=assez_verbose;
On Wednesday, July 31, 2002, at 11:37 PM, has wrote:
John Delacour wrote:
... yawn
If you're running OS X, then you can do this:
-----
set junk to POSIX path of "doc:junk.txt"
-- a file to be created in volume 'doc'
--
set pl to "perl -e '@t = localtime;"
set pl to pl & "printf qq(d-d-d),"
set pl to pl & "$t[5]-100,$t[4],$t[3];'"
set vText to "Today\\047s date is " & (do shell script pl)
--
set pl to " perl -e ' "
set pl to pl & " $f = qq(" & junk & "); "
set pl to pl & " open F, qq(>$f) ; "
set pl to pl & " print F qq(" & vText & "); "
set pl to pl & " close F; "
set pl to pl & " ' "
--
do shell script pl
do shell script "open " & junk
-----
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.