Debugging
Shell command errors are usually logged to the console.
In the following script, the 'screencapture' shell command fails intentionally, triggering the osascript command to bring the console to front. The console is launched if necessary.
on mouseup
put " || osascript -l AppleScript " into showConsole
put "-e 'tell application `console` to activate' ; " after showConsole
put shell("screencapture" & merge(showConsole)) into junk
end mouseup
Comments (0)
You don't have permission to comment on this page.