• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determine the version of an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine the version of an application


  • Subject: Re: Determine the version of an application
  • From: Graff <email@hidden>
  • Date: Mon, 19 Apr 2004 15:05:33 -0400

You can always do something along the lines of:
------------
set theApp to path to application "TextEdit"
set theInfo to info for theApp
set theVersion to short version of theInfo
------------

- Ken

On Apr 19, 2004, at 1:36 PM, CS Carl Stawicki (4211) wrote:

Hi,

I want to write an AppleScript that works with both Photoshop 7 and CS, but I
don't know how to get the script to determine the user's version prior to
executing the Photoshop part of the script (which will be the same for both
versions). In other words, I can't do this:

tell app "Adobe Photoshop whatever"
version
end tell

Is there a way for AppleScript to determine the version of an application
prior to asking the app to do something? I thought of using a dialog that asks
the user to select their version, but that's too clunky for my tastes, and I
haven't figured out if and how I can use the 'version' property for this
situation.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Determine the version of an application (From: "CS Carl Stawicki \(4211\)" <email@hidden>)

  • Prev by Date: Re: backup
  • Next by Date: Out of the Stone Age
  • Previous by thread: Determine the version of an application
  • Next by thread: Re: Determine the version of an application
  • Index(es):
    • Date
    • Thread