Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a 1 action automator workflow. This workflow is recorded to produce a "Watch Me Do" action. The action is to click on the "VPN" menu bar item, then select a particular VPN from the menu. This workflow runs fine in automator. When I run it as a standalone app the mouse moves correctly (clicking on the menu, selecting the correct VPN), but I don't actually connect to the VPN. I'm clueless about what's going wrong, so any help at all would be good!

In the console, the only thing I see is:

Oct 19 20:19:18 vonnegut Application Stub[7148]: Can't open input server /Library/InputManagers/MultiClutchInputManager.bundle
Oct 19 20:19:24 vonnegut Automator Launcher[7153]: Can't open input server /Library/InputManagers/MultiClutchInputManager.bundle

I'm running on a MacBookPro5,1 with an apple keyboard and a standard 2-button + wheel mouse attached.

I'm not really sure how to tell whether a connection is attempted. Nothing changes in ppp.log which makes me think nothing gets that far. If I try to connect manually, that's fine.

share|improve this question
    
You’ll need to specify some more stuff here. What version of OS X are you using (add the tag if you can or we will). Next, do you see any Console Output when automator “clicks” ? Is the VPN really trying to connect? –  Martín Marconcini Oct 19 '10 at 8:56
    
Do you have a Macbook/Macbook Pro or a Magic Touch/Mouse ? Do you use MultiClutch? "MultiClutch allows you to assign custom keyboard shortcuts in a given app to a given gesture”. –  Martín Marconcini Oct 19 '10 at 20:52
    
Adding details now. Thanks for helping me through this! –  Nick Hawes Oct 20 '10 at 11:43
    
@nick do you have any mouse modifier like the ones in this answer: apple.stackexchange.com/q/3284/115 ?? –  Martín Marconcini Oct 20 '10 at 12:54
    
Nope, nothing like that to my knowledge. –  Nick Hawes Oct 21 '10 at 11:21

1 Answer 1

I've previously discovered when attempting to Applescript an application through UI scripting, that the Applescript command of the mouse didn't quite behave the same as the real mouse. For instance, I would be able to command the change of a dropdown box, but the app wouldn't register the change until a "real" selection by mouse occurred.

It must have been a bug in the design of the app, but it was defunct and I had to find a solution. I ended up using "Extra Suites" by Kanzu, which was able to simulate the equivalent of a "real" mouse click.

Automator uses the same Apple Events as Applescript, and perhaps is falling to the same problem. What VPN client are you using? You might be able to solve the problem by using some Applescript (if the client supports it), or switching to another VPN client.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.