Hi,
I’ve just upgraded to Snow Leopard and I’ve found that Meerkat 1.2.2 loses Applescript support if run without a dock icon.
When I run it without the dock, launching a previously-working Applescript results in an error message asking me “Where is MeerkatAgent.app.” When I open the script in the editor, real variable names instead of dictionary words are shown (e.g., “the first «class Tunn»” instead of “the first tunnel”)
Everything works fine if I run Meerkat with a Dock icon.
Thanks for your help,
Marco
Hi Marco. Sorry for the trouble.
Can you check the Activity Monitor (located in Utilities) and see if there is a process called "MeerkatAgent" that is running when the dockless Meerkat is running? There should be. It should quit when Meerkat quits, too.
It could be, particularly if you were trying immediately after restarting Meerkat in dockless mode. The agent could have already been talking to to the docked app and had trouble communicating with the dockless one and/or crashed.
I didn't have a problem with AppleScript once I pointed to the MeerkatAgent.
The issue I'm having is that I wrote a script to open a given tunnel, but I can't find the proper script commands to *close* a tunnel.
I use Quicksilver, which I can run scripts via a keyboard shortcut or quick typed command, and script support is *extremely* handy, so thanks for adding support to Meerkat!
Yeah, in case it wasn't clear (though it is mentioned in the manual), to script Meerkat you have to address "MeerkatAgent" in the scripts. This is because of the dual docked and dockless nature that Meerkat can have.
If you are starting tunnels, you are using 'activate'. To stop them, just use 'deactivate'. There is more info in the scripting dictionary, which you can get to with Shift-Command-O in AppleScript Editor.
Thanks for the feedback. I'm really glad when people find good uses for AppleScript :-)



Now MeerkatAgent is there, and AppleScript is working.
I can’t see why the agent wouldn’t run before—perhaps it crashed?