Re: 'log' command results in AppleScript Editor
Re: 'log' command results in AppleScript Editor
- Subject: Re: 'log' command results in AppleScript Editor
- From: Tim Mansour <email@hidden>
- Date: Wed, 11 Aug 2010 11:52:51 +1000
On 11 August 2010 11:36, Gil Dawson <email@hidden> wrote:
> Could someone please tell me how to see the 'log' results alone?
I usually use my own handler to write to a log file, so I'm not at the
mercy of any particular script editor. For instance:
to logit(log_string, log_file)
do shell script ¬
"echo `date '+%Y-%m-%d %T: '`\"" & log_string & ¬
"\" >> $HOME/Library/Logs/" & log_file & ".log"
end logit
--
Tim Mansour <email@hidden>
Neologica Print & Promotions ABN 63 904 335 408
Certified FileMaker 10 Developer
PO Box K1163 : Haymarket NSW 1240
Mobile 0405 500 846 : Melbourne in-dial 03 9012 7441
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden