Ok. I have a new twist on this problem. I have multipule computers synced with dropbox and iCloud. So I'm trying to tailor all my automation so that the same scripts will work on different computers. So, I write my automators and scripts on my main work maching (a MacBook Pro) and then include everything unique that that machine in try, end try statements. This usually works great, but....
I have created an automator script that first kills all my browsers and a program called CopyPaste (my favorite program ever). It then pauses to make sure eveything has time to close, then trashes all the caches files and my Copypaste clip recorder file. Finally, I have another short pause, then launch copypaste and I'm back where I started. Put the problme is since CopyPaste is currently a little buggy with Lion, I haven't installed it on my mini. When I just use an automator launch module, it gets and error and stops the whole process. I tried writing it something like this.
try
tell application "Copypaste" to activate
end try
but instead of just failing with grace, as it should, it pops up a window wanting to know where the dictionary for CopyPaste is. It isn't anywhere, it's not on this machine, hence the 'try"
Does anyone know how to make automator (or even Applescript) gracefully fail to launch a program?