Ask a Question related to Mac Programming, Design and Development.
-
S. Gopu Pillai #1
Locating Applications Folder
Hi,
I am writing an application in which I need to install it in
Applications Folder. The problem is, In Jaguar the Applications Folder
can be renamed as easily as any other folder(With admin Login). Mac OS
10.1 does not allow renaming of Applications folder. But through
terminal, logging in as root user one can rename it.
For locating the Applications folder I am using
FindFolder(). I am passing 'kLocalDomain' as the first parameter and
'kApplicationsFolderType' as the second parameter. But after renaming
applications folder, this API failed to detect Applications folder.
This seems to be limitation of the API. Please help.
...gopu
S. Gopu Pillai Guest
-
Locating C3 files in G5 iMac
Where do I find my Contribute3 files in my G5 iMac, so that I can make a DVD before removing them? I want a clean start for 2007. John blueJred1 -
Need Help Locating Templates
Please help ... I just finished installing Contribute 3.11. And I went to FILE ==> New Page ==> Blank Web Page. From here I have tried many... -
Locating Help files?
Any ideas here: when I click F1 or select "help" from my InDesign menu, it stalls without finding the help file (which is in... -
Locating fields in grid
I have a grid with Contact information, Last Name, First Name, Address, City, State, Zip. etc.... There are about 2000 or more records on the... -
Locating assemblies in ASP.NET
An ASPX page in a virtual directory does not find the compiled assembly containing the base class located in the application's bin directory... -
Patrick Stadelmann #2
Re: Locating Applications Folder
In article <19191854.0308210753.1a9e38e3@posting.google.com >,
[email]sgopupillai@yahoo.com[/email] (S. Gopu Pillai) wrote:
Then it won't be recognized as the Application folder anymore. Mac OS X> Hi,
> I am writing an application in which I need to install it in
> Applications Folder. The problem is, In Jaguar the Applications Folder
> can be renamed as easily as any other folder(With admin Login). Mac OS
> 10.1 does not allow renaming of Applications folder. But through
> terminal, logging in as root user one can rename it.
expects it to be /Applications. On foreign systems, the name is
translated only when it's displayed, the actual folder name does not
change.
Because apart from it's name and location, it has no way of finding it !> For locating the Applications folder I am using
> FindFolder(). I am passing 'kLocalDomain' as the first parameter and
> 'kApplicationsFolderType' as the second parameter. But after renaming
> applications folder, this API failed to detect Applications folder.
For now, it is safe to assume that the folder is /Applications. Apple's> This seems to be limitation of the API. Please help.
own installer makes that assumption, and breaks if the folder is moved
or renamed.
Patrick
--
Patrick Stadelmann <Patrick.Stadelmann@unine.ch>
Patrick Stadelmann Guest
-
David C. Stone #3
Re: Locating Applications Folder
In article <19191854.0308210753.1a9e38e3@posting.google.com >, S. Gopu
Pillai <sgopupillai@yahoo.com> wrote:
> Hi,
> I am writing an application in which I need to install it in
> Applications Folder. The problem is, In Jaguar the Applications Folder
> can be renamed as easily as any other folder(With admin Login). Mac OS
> 10.1 does not allow renaming of Applications folder. But through
> terminal, logging in as root user one can rename it.
> For locating the Applications folder I am using
> FindFolder(). I am passing 'kLocalDomain' as the first parameter and
> 'kApplicationsFolderType' as the second parameter. But after renaming
> applications folder, this API failed to detect Applications folder.
> This seems to be limitation of the API. Please help.
I'm tempted to say that anyone who renames the Applications folder,
deserves whatever they get, and it shouldn't be your problem.
Since someone is likely not only to do this, but also complain
at software developers when things go "blurgh!", how about this:
In the installer: if the FindFolder call returns an error, popup a
dialog asking where the user wants to do the installation.
In your app: IIRC there are other constants/means to obtain the
directory within which your application resides so that you can
check this in your startup routine, should it be necessary for
your application to know this (maybe to find associated files etc)
HTH,
Dave Stone
David C. Stone Guest
-
Doc O'Leary #4
Re: Locating Applications Folder
In article <19191854.0308210753.1a9e38e3@posting.google.com >,
[email]sgopupillai@yahoo.com[/email] (S. Gopu Pillai) wrote:
You have no such need. It is very un-Mac-like to force an app into a> I am writing an application in which I need to install it in
> Applications Folder.
particular folder in order to run. The only apps I have in
/Applications are ones that should have been properly stored in the
/System domain root (i.e., apps supplied by Apple). If your app doesn't
run from any directory the user chooses to put it in (including the disk
image it comes on) then you haven't written it right.
Doc O'Leary Guest



Reply With Quote

