Re: tk_getopenfile -initialdir in MacOS 10.6
Zbigniew Diaczyszyn <[email protected]> Sun, 24 Jan 2010 22:07:56 +0100
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
Pat Thoyts schrieb: > Yes - for both Windows and MacOSX. The native dialog has no > understanding of the tcl virtual filesytem and so cannot browse > withing the vfs. You can test for the filesystem at a given path using > [file system $path]. For vfs the [lindex [file system $path] 0] will > yield tclvfs or 'native' for a native filesystem. > > Pat Thoyts > Thank you. I was not quite conscious about the fact that the working directory in a starkit is just the one from which the starkit is called. The finder on a Mac is starting his search for the applications from the root directory. So the best solution is not to call "pwd" but to set the absolute path directly, for example: set dir "~/Documents" set filename [tk_getopenfile -initialdir $dir] This is working. -- You received this message because you are subscribed to the "starkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/starkit?hl=en