When I want to do logging/debugging outside of XCode, I use the
following handler to write to the console.log file (launch
/Applications/Utilities/Console to view it):
on logConsole(processName, consoleMsg)
-- version 1.5- uses standard date-stamp format
set timeStamp to do shell script "date +\"%Y-%m-%d %H:%M:%S\""
set hostName to do shell script "hostname -s "
set shellCommand to "echo " & quoted form of (return &
timeStamp & " " & hostName & " " & processName & ": " & consoleMsg) &
" >> /dev/console"
do shell script shellCommand
end logConsole
Just send in the name of what you're testing and any text you want to
view. Make sure your message is a string.
At 9:48 AM +1000 7/26/05, George Bray <email@hidden> wrote:
Hi all, I'm wondering how to debug folder actions, a little better
than "display dialog". Can I get Applescript to log to syslog or
somewhere tail-able?
Also, interactive debugging in Xcode is very slow. Is this right?
Should I be looking at Script Debugger as a better tool for this?
thanks 1e6,
--
George Bray
Division of Communication and Education
University of Canberra, Australia