[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] File Dialog Folder



At 03.38 -0400 1998.08.04, Jeff at MacTech wrote:
>In article <mac-perl.l03020900b1e394c6cfb1@[199.3.134.157]>, Robert Pyle
><rpyle@tiac.net> wrote:
>
>>As indicated in MPPE, p. 184, the folder in which the dialog box opens is
>>determined by the "General Controls" control panel.  If I set this to
>>"Folder that is set by the application", it is the folder in which the
>>input file resides, which is what I want in this case, but not for most of
>>my activities, where I prefer "Last folder used in the application".
>>
>>Is there any way I can force the file dialog to open a folder of my
>>choosing, independent of the control panel setting, or is this behavior
>>"hard-wired" too deep within the MacOS?
>
>I don't know how easy it is to do via perl, but in general I believe you
>need to use CustomGetFile rather than StandardGetFile and use a custom
>dialog filter which sends you to the desired starting folder.

The best way is to use Mac::Navigation and the Navigation extension; but
neither the extension must be downloaded specially (it WILL be in Mac OS
8.5) and the module is in beta.  But this stuff is very cool.  Much better
than StandardFile, which will not be in Carbon anyway.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch