Re: Determine the version of an application
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.