Mac User Folder

View: New views
1 Messages — Rating Filter:   Alert me  

Mac User Folder

by Daniel Müller-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

does anybody know a way to get the Mac User Folder in 4D´s path syntax  
(e.g. not as a posix path, so no "~/") regardless of the application  
type (stand alone, server, client) or version (2004 and v11) or system  
(10.4, 10.5 and 10.6)?

I tried GET 4D FOLDER and SYSTEM FOLDER, but you only get to the user  
folder from a client machine.
Using current machine owner is possible with 4D 2004 (returns  
something like danielmuller, which is the OS user shortname), but it  
returns "Daniel Müller" in v11, so this will not work.

At the moment, I use something like this:
$0:=util_volumeOfPath (System folder)+"Users:"+Current machine owner+":"

It would be great, if I could get the same code to work in 2004 and v11.

Viele Grüße
Daniel Müller

informatikberatung Renner
Lange Str. 172a
D-44581 Castrop-Rauxel

Durchwahl:   +49 (0) 23 05 - 4 40 87 - 2
Fax.:   +49 (0) 23 05 - 4 40 87 - 1
Web:     www.i-renner.de



**********************************************************************
Over 100 technical presentations at the 4D Summit 2009
Oct 6-9, Atlanta, GA  Register Today:  http://www.4d.com/summit.html


4D Internet Users Group (4D iNUG)
FAQ:  http://www.4D.com/support/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************