I’m working with the Bomgar remote system, and trying to build a task that uninstalls their client via command line. After sleuthing around a bit on this annoyingly underdocumented client, I found the executable has an -uninstall option. But, the path varies according to an internal serializing system:
Yes, you can get folders or files or other things without actually needing to know the exact path:
pathname of files "Contents/MacOS/sdcust" of folders whose(name of it as lowercase starts with "bomgar-scc-" AND name of it as lowercase ends with ".app") of folders "/Users/Shared"
pathname of files “sdcust” of folders “Contents/MacOS” of folders whose (name of it as lowercase starts with “bomgar-scc-” AND name of it as lowercase ends with “.app”) of folders “/Users/Shared”