I want get company names,product names, and versions of running applications, and I only know how to get versions of running applications at this time, but how to get company name and product name? Please help me, thanks!
Note that the “application” inspector inherits from the “file” inspector, so take a look at the properties for the File inspector to figure out what is available.
Perhaps the most tricky part is that many application do not specify their version number or company name. So it is important to check for non-existence scenarios.
I have included a few queries for you to test. The last one is the query you need.
q: ((if (exists version of it) then (version of it as string) else “No version info”)) of running applications
q: (if (exists version block 1 of it) then (value “CompanyName” of version block 1 of it) else (“No company info”)) of running applications
q: ((if (exists version block 1 of it) then (value “CompanyName” of version block 1 of it) else (“No company info”)), (if (exists version block 1 of it) then (value “ProductName” of version block 1 of it) else (“No product info”)), (if (exists version of it) then (version of it as string) else “No version info”)) of running applications
q: ((if (exists version block 1 of it) then (value “CompanyName” of version block 1 of it) else (“No company info”)) & " - " & (if (exists version block 1 of it) then (value “ProductName” of version block 1 of it) else (“No product info”)) & " - " & (if (exists version of it) then (version of it as string) else “No version info”)) of running applications
Thanks for your help, and I know how to get company name, product name and etc. from version block of file, but I think I need a relevance like “versions of running applications” or “product name of running application”, after test it, only “versions of running applications” works fine.
The relevance examples I provided is the way we can retrieve the product name and company name.
We cannot get them from the the Application inspector.
Sorry I did not understand the question - if you “know how to get company name, product name and etc. from version block of file”, what else is desired?
Here is “TOM-Skype” and “Skype Technologies S.A.”, I think the “TOM-Skype” is product name, and the “Skype Technologies S.A.” is company name, so I wonder whether there is a simple relevance just return “TOM-Skype” or “Skype Technologies S.A.”.
The version information can get from a simple relevance as below:
Q: version of running applications “skype.exe”
A: 3.6.4.141
Q: product version of running applications “skype.exe”
A: 3.6.0.0
I said that I known how to get company name, product name and etc. from version block of file as below:
Q: values “ProductName” of version blocks of files (pathnames of running applications “skype.exe”)
A: Skype
Q: values “Company” of version blocks of files (pathnames of running applications “skype.exe”)
A: Skype Technologies S.A.
In fact, I just want to get “TOM-Skype” from running application “skype.exe” results.