Re: 'log' command results in AppleScript Editor
Re: 'log' command results in AppleScript Editor
- Subject: Re: 'log' command results in AppleScript Editor
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 11 Aug 2010 05:49:44 -0400
Again, don't try to do your own quoting of shell commands. Use
'quoted form of log_string' instead of the manual quotation marks.
Otherwise any embedded quotes, dollar signs, exclamation points, etc
will cause trouble in the form of syntax errors and mangled or missing
messages.
On Tuesday, August 10, 2010, Tim Mansour <email@hidden> wrote:
> 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
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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