On 11/3/07, David Porter <[EMAIL PROTECTED]> wrote:
> I would like the end user to choose a directory for some output files.
> The wd command *mbopen title directory filename filterpairs [style...]
> *doesn't seem to allow the selection of a directory -only a file.  This
> has already proved confusing.  Is there an easy solution?

Blame windows for this one.

You know those annoying tree selectors you sometimes see being
used for directory selection?  That's the official, os-supported way of
doing it.  But I don't know how to make that happen in J.

Anyways, a quick and dirty approach might be:
   wd 'mbopen  "Choose Directory"  ""  "ignore file name"  "Choose
Directory -- ignore file name"'

You'll have to clean off the bogus file name from the result, but
this will at least let you get on to other things.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to