note
Anonymous Monk
<b>Automator!</b> It's simultaneously awesome and horrible. It has many powers
and quirks. Here are some notes on functionality and issues to watch out
for:
<p>
<b>If you can't see code:</b> Close the Library.
<p>
<b>If you can't see Library items:</b> Click "hide description" icon bottom
left (or resize its frame).
<p>
<b>The Hammer Icon</b> checks syntax and indents your code (if syntax passed).
It also does odd things sometimes like rename all instances of a
particular uppercase variable to lowercase (but only some variables).
<p>
<b>Debug Applescript</b> with try blocks that propogate the error:
<code>
try
something
on error oops # <- oops is my pet name for the error msg :-)
display alert oops as critical # let's see wtf
display alert MyData # examine some data structure
#return # maybe exit too, while debugging
end try
</code>
<b>Debug Perl</b> the usual ways but, I have to mention something
WEIRD about shell. It seems like an Automator bug but who knows.
Sometimes the code inside a <tt>do shell script</tt> stops
working for no apparent reason. Nothing is wrong with the previously
working code, it was not changed, and it does not work. The solution to
this crazy problem is equally crazy: erase the problem code and rewrite
the do shell script part by actually typing, then paste your Perl back
into place.
<p>
<b>Automator has a spectacular built-in Time Machine</b> (that every program
should have)! You can restore any version of the file. It's simply
magnificent.
<p>
<b>Be very careful about using the Play button</b> to test scripts. If you
have an infinite loop it can get stranded. You may be able to break
out with dot (Command .) or you may have to kill Automator. Luckily
the revision system means you'll lose never lose data if it crashes or gets
killed. It usually works fine but when Automator crashes on me it's
always when going back through multiple levels of undo (Command Z).
That crash can be ignored but you have to restart the program to fix undo.
<p>
<b>Background apps</b> made with Automator get a cool free animated gear
icon in the system menubar! Click the gear to exit or, in some cases, monitor its progress. Love your Gear!
1216610
1216610
4