Frontier file path problems
Emmanuel. M. Decarie
emm at scriptdigital.com
Tue Mar 19 16:52:38 PST 2002
>On Tue, 19 Mar 2002 19:47:23 +0000, Douglas Wagner wrote:
>>I can type "~/Documentation/DocServer" into an open file dialog in
>>OSX, but I can't use the same convention in Frontier.
>
>you could try playing with sys.unixShellCommand() to get this info.
>
>I know "echo ~/" returns "/Users/greg/" at my command-line -- there
>may be other useful Unix commands I'm not aware of to return
>standard directory paths.
You could use (and I think its more kosher):
string.popTrailing (sys.unixShellCommand("echo $HOME"), "\n")
-- /Users/mem
In AppleScript, you could do the following:
-- HOME FOLDER
path to "cusr" from user domain
-- alias "Mac OS X:Users:userName:"
Cheers
-Emmanuel
--
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Frontier - Perl - Javascript - XML <http://scriptdigital.com/>
More information about the Frontier-Users
mailing list