Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how to find out, whether an application is installed on th..

 
   Macintosh computer (Home) -> Tools RSS
Next:  how to find out, whether an application is instal..  
Author Message
kunal

External


Since: Aug 29, 2006
Posts: 1



(Msg. 1) Posted: Tue Aug 29, 2006 2:33 am
Post subject: how to find out, whether an application is installed on the MAC or not....??
Archived from groups: comp>sys>mac>programmer>tools (more info?)

how to find out, whether an application is installed on the MAC or
not....??

please help...

thanks in advance...

-- kunal

 >> Stay informed about: how to find out, whether an application is installed on th.. 
Back to top
Login to vote
Chris Hanson

External


Since: Apr 30, 2004
Posts: 82



(Msg. 2) Posted: Tue Aug 29, 2006 3:16 am
Post subject: Re: how to find out, whether an application is installed on the MAC or not....?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2006-08-29 02:33:42 -0700, "kunal" said:

> how to find out, whether an application is installed on the MAC or
> not....??

The only sure way to know is to exhaustively search all mounted volumes.

What is it that you're really trying to accomplish?

-- Chris

 >> Stay informed about: how to find out, whether an application is installed on th.. 
Back to top
Login to vote
user638

External


Since: Jan 13, 2005
Posts: 633



(Msg. 3) Posted: Tue Aug 29, 2006 10:55 pm
Post subject: Re: how to find out, whether an application is installed on the MAC or not....?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
"kunal" wrote:

> how to find out, whether an application is installed on the MAC or
> not....??
>
> please help...
>
> thanks in advance...
>
> -- kunal

Depends on how exact and how general you want to be.

Most apps create files in specific directories, such as
preferences files in ~/Library/Preferences/, or
/Library/Application Support, ~/Library/Application Support,
etc..., so you could just look for any of those files, assuming
someone has run the app at least once.

You could use Spotlight on Tiger to search for the app, which
should be rather fast.

The UNIX locate facility, assuming it is recently updated, can
report on the existents of a file anywhere on the system.

You could look in the most likely places, and then assume that if
you don't find it in those places, it isn't worth finding.

Bob Harris
 >> Stay informed about: how to find out, whether an application is installed on th.. 
Back to top
Login to vote
Lawson English

External


Since: Sep 05, 2006
Posts: 15



(Msg. 4) Posted: Wed Sep 06, 2006 9:19 am
Post subject: Re: how to find out, whether an application is installed on the MAC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris Hanson wrote:
> On 2006-08-29 02:33:42 -0700, "kunal" said:
>
>> how to find out, whether an application is installed on the MAC or
>> not....??
>
> The only sure way to know is to exhaustively search all mounted volumes.
>
> What is it that you're really trying to accomplish?
>
> -- Chris
>


There used to be a registry file of applications under MacOS Classic.
Are you saying that there isn't one under MacOS X? I can see how generic
UNIX executables might not be registered, but it seems very lax of Apple
not to create and continuously update a registry of all .app executables
in order to assist the Finder with doing its job.

In fact, I'm almost certain there is one. Perhaps there's no API for
applications programers to use it, but I don't think the Finder could
display as fast as it does at startup without a cache of this kind of
info available somewhere...
 >> Stay informed about: how to find out, whether an application is installed on th.. 
Back to top
Login to vote
Lawson English

External


Since: Sep 05, 2006
Posts: 15



(Msg. 5) Posted: Wed Sep 06, 2006 9:57 am
Post subject: Re: how to find out, whether an application is installed on the MAC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lawson English wrote:
> Chris Hanson wrote:
>> On 2006-08-29 02:33:42 -0700, "kunal" said:
>>
>>> how to find out, whether an application is installed on the MAC or
>>> not....??
>>
>> The only sure way to know is to exhaustively search all mounted volumes.
>>
>> What is it that you're really trying to accomplish?
>>
>> -- Chris
>>
>
>
> There used to be a registry file of applications under MacOS Classic.
> Are you saying that there isn't one under MacOS X? I can see how generic
> UNIX executables might not be registered, but it seems very lax of Apple
> not to create and continuously update a registry of all .app executables
> in order to assist the Finder with doing its job.
>
> In fact, I'm almost certain there is one. Perhaps there's no API for
> applications programers to use it, but I don't think the Finder could
> display as fast as it does at startup without a cache of this kind of
> info available somewhere...
>

I knew there had to be something. Check out Launch Services. There
should be a way of grabbing the info it maintains:



http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServi...Concept

Registering Applications

All applications available on the user’s system must be registered to
make them known to Launch Services and copy their document binding and
other information into its database. It isn’t ordinarily necessary to
perform this task explicitly, since a variety of utilities and services
built into the Mac OS X system software take care of it automatically:

A built-in background tool, run whenever the system is booted or a new
user logs in, automatically searches the Applications folders in the
system, network, local, and user domains and registers any new
applications it finds there. (This operation is analogous to “rebuilding
the desktop” in earlier versions of Mac OS.)
The Finder automatically registers all applications as it becomes aware
of them, such as when they are dragged onto the user’s disk or when the
user navigates to a folder containing them.
When the user attempts to open a document for which no preferred
application can be found in the Launch Services database, the Finder
presents a dialog asking the user to select an application with which to
open the document. It then registers that application before launching it.
In spite of these automatic registration utilities, it may sometimes be
necessary to register an application explicitly with Launch Services.
For example, although developers are encouraged to package their
applications so that they can be installed by simply dragging them onto
the user’s disk, some applications may require more elaborate custom
installer software. In such cases, the installer should call the Launch
Services function LSRegisterFSRef (or LSRegisterURL) to register the
application explicitly.
 >> Stay informed about: how to find out, whether an application is installed on th.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
just installed xcode... where is it? -

How do I find out app dependencies? - Hi, How do I find out application dependencies (i.e. on what libraries an application depends)? Is there a Terminal command for this? Thanks! U.

can't find lnresolve - Hello, I'm trying to build a project in OS X Jaguar. The build fails with the error /Developer/Tools/lnresolve: No such file or directory I don't have this file on my computer. Is it a Panther-only utility? Thanks for any help.

Warning: HOME is not set; can't find distcc directory - I fail to have my compilation distributed using XCode 2.2 on Mac OS X 10.4.3. For each compiled file I get these warnings: distcc[8673] (dcc_get_top_dir) Warning: HOME is not set; can't find distcc directory distcc[8673] (dcc_get_top_dir) Warning: HOME...

help ! PEF Executable using XCODE ?? - ------------------------------------------------------------------------ A poll associated with this post was created, to vote and see the results, please visit http://www.codecomments.com/message235968.html..
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]