Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 28, 2011, 06:27 AM   #1
jegadhu84
macrumors newbie
 
Join Date: Apr 2011
AppleScript

Hi everyone,

Please tell me the way to findout the version of an application using AppleScript.
jegadhu84 is offline   0 Reply With Quote
Old Apr 28, 2011, 06:29 AM   #2
Dalton63841
macrumors 65816
 
Dalton63841's Avatar
 
Join Date: Nov 2010
Location: SEMO, USA
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.
__________________
mid-2009 13" Macbook Pro, 2.26Ghz, 8GB RAM, 120GB SSD + 1TB HDD
Dalton63841 is offline   0 Reply With Quote
Old Apr 28, 2011, 06:32 AM   #3
jegadhu84
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Thanks.

Hi Dalton,

Very good suggestion. I need to know the version using AppleScript. Please read the Thread once again.
jegadhu84 is offline   0 Reply With Quote
Old Apr 28, 2011, 06:41 AM   #4
Dalton63841
macrumors 65816
 
Dalton63841's Avatar
 
Join Date: Nov 2010
Location: SEMO, USA
Code:
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.
__________________
mid-2009 13" Macbook Pro, 2.26Ghz, 8GB RAM, 120GB SSD + 1TB HDD
Dalton63841 is offline   0 Reply With Quote
Old Apr 28, 2011, 06:47 AM   #5
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by Dalton63841 View Post
Code:
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:
Code:
version of application "Application"
jiminaus is offline   0 Reply With Quote
Old Apr 28, 2011, 06:51 AM   #6
jegadhu84
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Thanks

Hi,

Its working fine.

Code:
 
tell application "Silverlight Preferences" to get the version
Thanks dalton
jegadhu84 is offline   0 Reply With Quote
Old Apr 28, 2011, 06:52 AM   #7
Dalton63841
macrumors 65816
 
Dalton63841's Avatar
 
Join Date: Nov 2010
Location: SEMO, USA
Quote:
Originally Posted by jiminaus View Post
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:
Code:
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...
__________________
mid-2009 13" Macbook Pro, 2.26Ghz, 8GB RAM, 120GB SSD + 1TB HDD
Dalton63841 is offline   0 Reply With Quote
Old Apr 28, 2011, 07:01 AM   #8
jegadhu84
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Yes, Its equivalent.

Code:
tell application "Finder" to get the version of application "Silverlight Preferences"
The above is as like what you said.
jegadhu84 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Why so much Applescript? Dranix Mac Programming 25 May 2, 2014 02:05 AM
help with applescript andrewisgod Mac Programming 0 Apr 18, 2014 08:58 AM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Programming 0 Oct 29, 2013 12:38 AM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Applications and Mac App Store 0 Oct 29, 2013 12:32 AM
Help with an Applescript Theydonboi Mac Applications and Mac App Store 2 Nov 5, 2012 12:52 PM

Forum Jump

All times are GMT -5. The time now is 09:35 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC