Where do the errors go?
Where do the errors go?
- Subject: Where do the errors go?
- From: Gil Dawson <email@hidden>
- Date: Thu, 03 May 2018 17:45:41 -0700
While running a stayopen application produced by Script Editor, such as the one
below, where can I view any execution-time errors or "log" outputs?
--Gil
This works well enough so long as no execution-time errors show up:
on run
logsome(return & "Starting." & return)
return
end run
on idle
logsome("Doing... " & time string of (current date) & return)
return 20
end idle
on quit
logsome("Ending." & return)
continue quit
end quit
on logsome(aString)
set TestLog to (((path to desktop) as text) & "TestLog.txt") as alias
try
close access TestLog
end try
open for access TestLog with write permission
write aString as text to TestLog starting at eof
close access TestLog
end logsome
_______________________________________________
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