Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FindFolder() functionality on OS X

10 views
Skip to first unread message

andrew...@gmail.com

unread,
Jun 7, 2006, 1:29:57 PM6/7/06
to
I'm trying to locate the ~/Library/Application Support directory from
within tcl on OS X. In other languages (e.g. perl) , this would be
done via something like this:

$appsupportdir = FindFolder(kUserDomain(),
kApplicationSupportFolderType());


This very-ancient FAQ entry seems to address my question:

http://www6.uniovi.es/tcl/faq/macFAQ.html#Q4.3

Alas, that seems to be no longer true on OS X:

$ tclsh
% $env(DESK_FOLDER)
can't read "env(DESK_FOLDER)": no such variable

Is there a modern way to learn about system paths on OS X? Or, is the
above FAQ still correct, and I'm missing something?

Thanks!

-Andrew

walto...@gmail.com

unread,
Jun 9, 2006, 7:49:58 AM6/9/06
to
I get this:

% parray env
env(HOME) = /Users/paul
env(PATH) = /usr/bin:/bin:/usr/sbin:/sbin
env(SECURITYSESSIONID) = 505220
env(SHELL) = /bin/bash
env(USER) = paul
env(VU_LIBRARY) = /Library/Tcl/vu2.2
env(__CF_USER_TEXT_ENCODING) = 0x1F5:0:0


Maybe you can do it with applescript? I believe there's an extension
that will let you use applescript, but I don't recall it's name at the
moment. TclAE?

Cameron Laird

unread,
Jun 9, 2006, 8:54:19 AM6/9/06
to
In article <1149853798.2...@u72g2000cwu.googlegroups.com>,
<walto...@gmail.com> wrote:
.
.
.

>Maybe you can do it with applescript? I believe there's an extension
>that will let you use applescript, but I don't recall it's name at the
>moment. TclAE?
.
.
.
<URL: http://wiki.tcl.tk/TclAE >
0 new messages