Re: Storing location for a preferences file in a standalone stack?

2012-10-01 Thread Klaus on-rev
Hi Andre, Am 30.09.2012 um 22:02 schrieb Andre Garzia an...@andregarzia.com: This works on the Mac: specialfolderpath(asup) - ~/Library/Application Support Klaus, specialfolderpath(asup) returns the system wide Application Support folder and not the users Application Support folder. If

Re: Storing location for a preferences file in a standalone stack?

2012-10-01 Thread Bob Sneidar
This is true, however, other processes can elevate their privileges by authenticating through a user/password dialog. Installers do this all the time. What he is really asking for is a way to invoke the authentication dialog built into the system, and then apply those privileges to his LC app.

Re: Storing location for a preferences file in a standalone stack?

2012-10-01 Thread Bob Sneidar
IMHO this is just kicking the security can down the road. If all developers are required to keep their global preferences here, then instead of all the app preferences being accessible from one now restricted location, they are all available in another. What has really changed? This is what I

Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Dr. Hawkins
I'm not ready to face the differences in where things go with mac windows, and dealing with the OS preferences settings. Is there a way that I can store and change a string in a standalone stack to find the preferences file, where I can then stuff the rest? Should this, perhaps, be a custom

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Dr. Hawkins
On Sun, Sep 30, 2012 at 9:27 AM, Dr. Hawkins doch...@gmail.com wrote: Is there a way that I can store and change a string in a standalone stack to find the preferences file, where I can then stuff the rest? I think I've answered this diddling around; the executable file can't be changed (which

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Andre Garzia
Richard, Check out the specialFolderPath() function. It will give you a location to write your preferences file. On Sun, Sep 30, 2012 at 2:21 PM, Dr. Hawkins doch...@gmail.com wrote: On Sun, Sep 30, 2012 at 9:27 AM, Dr. Hawkins doch...@gmail.com wrote: Is there a way that I can store and

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread J. Landman Gay
On 9/30/12 11:27 AM, Dr. Hawkins wrote: I'm not ready to face the differences in where things go with mac windows, and dealing with the OS preferences settings. Is there a way that I can store and change a string in a standalone stack to find the preferences file, where I can then stuff the

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Klaus on-rev
Hi Jaqueline, Am 30.09.2012 um 21:16 schrieb J. Landman Gay jac...@hyperactivesw.com: On 9/30/12 11:27 AM, Dr. Hawkins wrote: I'm not ready to face the differences in where things go with mac windows, and dealing with the OS preferences settings. Is there a way that I can store and change

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Dr. Hawkins
On Sun, Sep 30, 2012 at 12:48 PM, Klaus on-rev kl...@major.on-rev.com wrote: This works on the Mac: specialfolderpath(asup) - ~/Library/Application Support 4 chars less to type ;-) I could have used that two hours ago . . . But now I see a new headache coming . . . I need both per user *AND*

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Phil Jimmieson
On 30 Sep 2012, at 20:16, J. Landman Gay jac...@hyperactivesw.com wrote: There's been some discussion about whether Apple still wants prefs stored in Preferences in Mountain Lion (odd as that may seem.) To be safe on all versions of OS X, you may want to use this instead for Macs: put

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Richard Gaskin
Phil Jimmieson wrote: On 30 Sep 2012, at 20:16, J. Landman Gay wrote: There's been some discussion about whether Apple still wants prefs stored in Preferences in Mountain Lion (odd as that may seem.) To be safe on all versions of OS X, you may want to use this instead for Macs: put

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Andre Garzia
A post in the forums a while back suggested that Apple's localization affects only the display of such folder names, while the actual addressable folder name remains constant. I don't have enough experience with Apple's localization to say for sure, but it would be convenient if someone who

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Dr. Hawkins
On Sun, Sep 30, 2012 at 12:48 PM, Klaus on-rev kl...@major.on-rev.com wrote: This works on the Mac: specialfolderpath(asup) - ~/Library/Application Support However, running as a user, when trying to create a directory within it, can't create that directory Is there a way to trigger the

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Andre Garzia
Folks, Haven't you seen my email above? If running as a non-admin user you need to use: put ~ specialfolderpath(asup) into tPath. The return value from specialFolderPath(asup) is the system wide support folder which the normal user can't write to. You need the user folder which you will get

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Dr. Hawkins
On Sun, Sep 30, 2012 at 5:19 PM, Andre Garzia an...@andregarzia.com wrote: Haven't you seen my email above? Yes, but . . . If running as a non-admin user you need to use: put ~ specialfolderpath(asup) into tPath. But this puts it in ~. I'm after getting the system to request an admin

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Andre Garzia
If the assistant has its own user on the machine and that user has no priviledge outside its home folder than you will not be able to write to a system wide location no matter what you try. Unless the person on the keyboard has an administrator level access or password at hand, then you will not

Re: Storing location for a preferences file in a standalone stack?

2012-09-30 Thread Warren Samples
On 09/30/2012 10:35 PM, Andre Garzia wrote: Unless the person on the keyboard has an administrator level access or password at hand, then you will not be able to write anywhere outside that persons folder.Your unpriviledged user can't write to /Library or /System, only the super user can.