• 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: 'log' command results in AppleScript Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: 'log' command results in AppleScript Editor
      • From: "Mark J. Reed" <email@hidden>
    • Re: 'log' command results in AppleScript Editor
      • From: Gil Dawson <email@hidden>
References: 
 >'log' command results in AppleScript Editor (From: Gil Dawson <email@hidden>)

  • Prev by Date: 'log' command results in AppleScript Editor
  • Next by Date: Re: 'log' command results in AppleScript Editor
  • Previous by thread: 'log' command results in AppleScript Editor
  • Next by thread: Re: 'log' command results in AppleScript Editor
  • Index(es):
    • Date
    • Thread