Posted on 06-19-2011 09:51 PM
With Justin Rummel (and other's help)
Hear it is in simple form:
#!/bin/sh
result=/usr/libexec/PlistBuddy -c "Print :ClientID" ~/Library/Preferences/com.TeamViewer.Settings.plist
echo "<result>$result</result>"
Major caveat, it will only work with the full Teamviewer App or theirSHost Module, not the QS app (It doesn't make a plist)
--
Doug Hanley doug at mac-tek.com - 702-396-0697
Apple Certified Systems Administrator - Apple Certified Trainer
Apple Certified Support Professional - Apple Certified Technical Coordinator
MacTEK Consulting & Training - http://www.Mac-TEK.com
Apple Authorized Training Center (IT & Pro Apps) - Adobe Authorized Training Center
Apple Consultants Network Member - Apple Authorized Service Provider
Posted on 03-16-2014 04:13 PM
Updated for Team Viewer 9:
#!/bin/sh
result=`/usr/libexec/PlistBuddy -c "Print :ClientID" /Library/Preferences/com.teamviewer.teamviewer9.plist`
echo "<result>$result</result>"
Posted on 11-24-2020 12:08 PM
Thanks for the share.
Adapted for TeamViewer Host (Version 15+)
#!/bin/sh
result=`/usr/libexec/PlistBuddy -c "Print :ClientID" /Library/Preferences/com.teamviewer.teamviewer.preferences.plist`
echo "<result>$result</result>"
Posted on 10-01-2024 12:17 PM
Amazing – confirming this works with TeamViewer Host 15.58.4 and macOS Sequoia 15.1 beta!