Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 28, 2011, 05: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, 05: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, 05: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, 05: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, 05: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, 05: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, 05: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, 06: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Handling Duplicate AppleScripts the Otter Mac Programming 1 Dec 22, 2010 05:53 AM
Applescript NOOB Revolume Mac Programming 2 Dec 1, 2010 08:06 AM
iTunes Resize Error AppleScript Konki Mac Applications and Mac App Store 1 Nov 21, 2010 12:47 PM
Applescript with cocoa Renmusxd Mac Programming 0 Nov 16, 2010 11:06 PM
AppleScript Application fivetoadsloth OS X 0 Nov 15, 2010 06:35 PM


All times are GMT -5. The time now is 06:49 AM.

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

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