Tuesday, January 17, 2017
  • Index
  •  » OS X Finder
  •  » How can I check if a particular application is installed in the system

#1 2005-10-12 07: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

[ Generated in 0.031 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)