I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview.
How do I ensure from Applescript that the 3.2.3 version is picked?
I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview.
Share
Instead of simply referencing Xcode by its name, i.e.:
you can also reference a particular version of an application by its full POSIX path, i.e.:
Also see the AppleScript language guide section on the application class.
A more complex solution involves searching the Launch Services database for all the versions of an application that are installed on the system. You can then programmatically pick the one with the required version: