Thanks for your suggestion. Sorry, I should have stated my environment: 4D v16.1hf2 Mac OS X 10.11.6
The problem is I want to use a “memorized path” as documented in the Select document command, which states that if you pass a number instead of a path as the first parameter, then 4D will use it to look up the path in a list of saved paths. These are paths that the user has chosen previously. However, if you pass a number as the first argument to Select document(), then you lose the ability to suggest a file name in the Save As field. As far as I can tell, there is no way to retrieve a memorized path from 4D’s list without calling Select document/folder(). If there were a way to get a memorized path (i.e. a command like “Get memorized path($pathNumber)”), then I could get the path, append the suggested file name, and pass the whole string to Select document() and all would be well in the world. > On Aug 22, 2017, at 1:01 AM, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi Steve, > > Which 4D version? > Mac or Windows? There should be no difference, but I tested it on Mac using > v15. > > $path:=“Macintosh HD:Users:myname:Dektop:filename.txt” > $path:=Select document($path;”text”;””;File name entry) > > The Save As dialog opens in this case the desktop and sets the file name as > expected. > > But the parent path must be pointing to an existing directory. If not, I get > the documents folder as default. > > HTH > Koen > >> Op 20 aug. 2017, om 03:00 heeft Steve Slanec via 4D_Tech >> <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> het volgende geschreven: >> >> Does anybody know if there is a way to present a Save As dialog using a >> memorized path and stuffing the Save As field with a suggested file name? >> >> It seems to me the Select document command lets you do one or the other, but >> not both. If I could retrieve a memorized path somehow, I could use Create >> document, but I don’t know how to get a memorized path. >> >> Thanks for any ideas > > > > -------------------- > Compass bvba > Koen Van Hooreweghe > Kloosterstraat 65 > 9910 Knesselare > Belgium > tel +32 495 511.653 > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html <http://lists.4d.com/faqnug.html> > Archive: http://lists.4d.com/archives.html > <http://lists.4d.com/archives.html> > Options: http://lists.4d.com/mailman/options/4d_tech > <http://lists.4d.com/mailman/options/4d_tech> > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > <mailto:4d_tech-unsubscr...@lists.4d.com> > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************