PDA

View Full Version : AppleScript




jegadhu84
Apr 28, 2011, 05:27 AM
Hi everyone,

Please tell me the way to findout the version of an application using AppleScript. :confused:



Dalton63841
Apr 28, 2011, 05:29 AM
If you want to know the version of an app all you need to do is click on the title of the app in the menubar and click About.

jegadhu84
Apr 28, 2011, 05:32 AM
Hi Dalton,

Very good suggestion. I need to know the version using AppleScript. Please read the Thread once again.

Dalton63841
Apr 28, 2011, 05:41 AM
do shell script "osascript -e 'version of application "Application"'"

Something to this affect should work. You need to tweak the quotation marks obviously. Replace "Application" with the app you want to find the version.

jiminaus
Apr 28, 2011, 05:47 AM
do shell script "osascript -e 'version of application "Application"'"

Something to this affect should work. You need to tweak the quotation marks obviously. Replace "Application" with the app you want to find the version.

I don't know much about AppleScript, but why escape from AppleScript into the shell just to enter AppleScript again.

Is the above not the equivalent of:

version of application "Application"

jegadhu84
Apr 28, 2011, 05:51 AM
Hi,

Its working fine.


tell application "Silverlight Preferences" to get the version


Thanks dalton

Dalton63841
Apr 28, 2011, 05:52 AM
I don't know much about AppleScript, but why escape from AppleScript into the shell just to enter AppleScript again.

Is the above not the equivalent of:

version of application "Application"


Would you look at that. You got it. And yea I knew the code I put didn't make any sense for some reason. Im pretty tired at this point...

jegadhu84
Apr 28, 2011, 06:01 AM
Yes, Its equivalent.


tell application "Finder" to get the version of application "Silverlight Preferences"


The above is as like what you said.