Automator "Launch Application" Causes Error

bowjest

Registered
Hello everyone,

I've created an Automator service to launch an app using - you guessed it - Launch Application.

It's to launch an app called Plain Clip that converts text on the clipboard to plain text.

I've got the parameters set to not accept input in any application so that I can see it in Word (any other settings don't seem to work) and it seems to launch Plain Clip, but each time I also get an error on screen that says:

"The action "Launch Application" encountered an error."

Does anyone know why this is happening and what I can do to stop it?

Thanks,

Bowjest
 
Can you try testing the script by having Automator launch a different application, say, iPhoto or something?

That will tell you whether it's the action failing, or whether the application you're trying to launch is at fault.
 
Thanks, Diablo.

I tried your suggestion and found that some apps work ok, others don't, so not sure what the cause is with Plain Clip.

I got around the issue by digging around in Google a bit and put together the following:

+++++++++++++++

try
tell application "Plain Clip" to activate
-- do something
-- an error will cause execution to jump to the "on error" part
on error errorMessage number errorNumber
-- this is executed if there is an error
-- the error message and number can be used if desired
end try

+++++++++++++++

No errors and all seems to work as needed, so result!

Thanks for your help.

Bowjest
 
Back
Top