--- Raul Miller wrote:
> On 10/1/07, Sherlock, Ric wrote:
> > --Raul Miller wrote:
> > > I wish I could hit Control-O and if the file name I type 
> in does not 
> > > exist I get an "are you sure?" prompt?  (Which would 
> either cancel 
> > > the operation or create the newly named file, depending on how I 
> > > answer.)
> >
> > What locations should the system look in to see if the file name I 
> > type already exists?
> 
> Only the directory currently selected in the Open File dialog.
> 
> > Assuming that the file isn't found and that the full path 
> hasn't been 
> > specified, where should the new file be created?
> 
> In that directory.
> 
> > Depending on how those issues can be dealt with, this may be nice 
> > although unconventional (IME) way of creating new files.
> 
> It's not that different from the normal New File dialog -- 
> but J doesn't have a dialog for that case.

Yes I now better understand what you are proposing and like the idea.
 
> > > I also wonder at the utility of the "Delete numbered file"
> > > popup which shows up at window close time but not at save as some 
> > > other file name time.  It seems to me that logically 
> speaking this 
> > > popup should appear at file abandonment time -- and Save As... 
> > > should be treated as one of those times if its new name 
> is different 
> > > from the old numeric name.
> >
> > I agree that this takes some getting used to. I understand 
> the logic 
> > behind trying to keep the temp files cleaned up, but think that on 
> > balance it might be better to stick with a "Save changes 
> to" dialog in 
> > all instances with "Yes" as the default action but perhaps have a 
> > "Delete" button available on the dialog for temp files.
> 
> I am not sure this would be very easy.  Currently, the file 
> dialogs I see J using under Windows are OS standard dialogs.
> Adding a "delete" [the old file before creating this new one] 
> button to one of these dialogs seems to me like a lot of work 
> -- I think you'd have to first build a replacement for the 
> dialog -- and this would probably have other implications as well.

What I was proposing (but I can see I wasn't very clear) was that when
you close a numbered file, the current popup that appears asking if you
want to delete the file could be changed to "Save numbered file".
Buttons on the popup could be "Yes","Delete","Cancel" and the default
would be "Yes".  Generally applications require a distinct action to
delete things and this would keep that consistency. Another alternative
is just to make the "No" rather than the "Yes" button the default on the
current "Delete numbered file" popup.

The "Save changes to" dialog that I was referring to in my previous post
is the one that pops up when you go to close a non-numbered file that
has been changed from the saved contents on disk. I don't think that
that is a Windows OS standard dialog.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to