Launch Teamviewer with Machine Action
I am able to get the TeamViewer ID of each PC and Mac using a custom field. But when I try to create the machine action to launch TeamViewer and use that ID, it fails. I am using a Mac and this is what I am putting in the Machine Action field.
open –a TeamViewer --args –i KACE_CUSTOM_INVENTORY_TEAMVIEWID –P xxxxxxxxxx
I keep receiving the error "Invalid URL"
Has anyone done this with a Mac? I found one post here, http://www.itninja.com/blog/view/k1000-machine-action-s-to-launch-os-x-support-tools
But it seems to have left out a few pieces that I will need to get it to work. I am new to this.
Although I don't have the answer to this question, I can provide a little guidance. In fact, I'm trying to get this to work myself, using the same reference link you provided, but haven't gotten it 100% yet.
You can't use your code in the machine action (now Device Action in v6.0) field. As far as I know, the only supported way to do this is with a URL protocol, using Safari. In other words, you can't pass applescript, shell, bash or any other scripting language into this. In order to get it to work, you would have to create a custom URL handler on your Mac (example: tvlaunch) and call that from the Device Action field (example: tvlaunch://KACE_CUSTOM_INVENTORY_TEAMVIEWERID)
I am, however, unable to get my custom URL handler to work. So if you can manage to figure that out, please let me know!