Re: Where to log lines go
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