Tuesday, December 6, 2022

Announcement

MacScripeter.net will transition to a new Discourse server soon. Watch this space for the date and time of the transition. Please expect the site to experience periods of outage during this transition. See this and this for more details.
  • Index
  •  » OS X Finder
  •  » How can I check if a particular application is installed in the system

#1 2005-10-12 06:03:42 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

How can I check if a particular application is installed in the system

You should ask to the Finder about the specific creator type of such application. For example, we will ask for "GraphicConverter":

Applescript:

try
   tell application "Finder" to application file id "GKON"
   --> do whatever
on error --> app does not exist!!!
   --> do whatever
end try

And... How do you know the creator type of a particular application? Just select its icon in the Finder and run this code:

Applescript:

tell application "Finder" to creator type of (selection as alias)


Filed under: Finder

Offline

 
  • Index
  •  » OS X Finder
  •  » How can I check if a particular application is installed in the system

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)