You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tellapplication"TextEdit" try set ato text 0of its name on error e number n my logit("OOPs: " & e& " "&n,"TestDrive") end tryend tellto logit(log_string, log_file) do shell script ¬ "echo `date '+%Y-%m-%d %T: '`\"" & log_string & ¬ "\" >> $HOME/Library/Logs/" & log_file& ".log"endlogit