• 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: Where to log lines go
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to log lines go


  • Subject: Re: Where to log lines go
  • From: "Roger Howard" <email@hidden>
  • Date: Mon, 12 Jan 2009 11:17:36 -0800 (PST)

I often use a log handler in my scripts which echo's a log message to
/dev/console where I can monitor it using other tools (whether Apple's
Console.app, or just "tail")

You can do something like

do shell script "echo " & quoted form of LogString & " > /dev/console"

I also do this when I want to generate a log to another file, rather than
having to deal with AppleScript's native file handling and the
open/write/close dance, though I don't use this for writing (generally) to
files... just for appending quick log messages.

YMMV,

Roger

 _______________________________________________
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: Where to log lines go
      • From: Tom Robinson <email@hidden>
References: 
 >Where to log lines go (From: Paul Taylor <email@hidden>)
 >Re: Where to log lines go (From: Ed Stockly <email@hidden>)
 >Re: Where to log lines go (From: "Mark J. Reed" <email@hidden>)
 >Re: Where to log lines go (From: Paul Taylor <email@hidden>)
 >Re: Where to log lines go (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Where to log lines go
  • Next by Date: Re: How to convert number from exponential form?
  • Previous by thread: Re: Where to log lines go
  • Next by thread: Re: Where to log lines go
  • Index(es):
    • Date
    • Thread