Skip to main content

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

Updated for Team Viewer 9:



#!/bin/sh
result=`/usr/libexec/PlistBuddy -c "Print :ClientID" /Library/Preferences/com.teamviewer.teamviewer9.plist`
echo "<result>$result</result>"

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>"

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>"


Amazing – confirming this works with TeamViewer Host 15.58.4 and macOS Sequoia 15.1 beta!


Reply