• 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: logging to a file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logging to a file?


  • Subject: Re: logging to a file?
  • From: Gnarlodious <email@hidden>
  • Date: Fri, 12 Nov 2004 17:33:13 -0700

Title: Re: logging to a file?
Entity Aaron Rosenblum spoke thus:

> I have this code that I want to log to a file.

set logString to (do shell script "date | awk '{print $2, $3, $4}'") & " - " & "someText"
do shell script "echo " & quoted form of (logString as text) & ">>$HOME/DATE.log"

Note: doubleclicking the logfile opens it in Console.

-- Gnarlie
 _______________________________________________
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

References: 
 >logging to a file? (From: Aaron Rosenblum <email@hidden>)

  • Prev by Date: Re: Count lines
  • Next by Date: Re: logging to a file?
  • Previous by thread: logging to a file?
  • Next by thread: Re: logging to a file?
  • Index(es):
    • Date
    • Thread