17.4 on Mac. I think I've solved my issue. I wasn't using a long enough delay. The delay is needed because I am using the Launch External Process command immediately after creating the file, to open the file. These system-level calls must be semi-asynchronous, because there NEEDS to be a delay between them to allow the dialog to finish closing.
I increased my delay, and actually moved the command to my wrapper method for Launch External Process, to ensure the dialog has a chance to close... // ---------------------------------------------------- // Method: SysDoc_SubLaunch // Author: dhall // Date and time: 07/20/05, 16:35:42 // Modified: 12/6/2016 : To use Launch External Process instead of (outdated) AP Sublaunch. // ---------------------------------------------------- // Called from: // Description: Launches a document with path $1 // // // Parameters // ---------------------------------------------------- *C_TEXT*(*$1*;$DocPath;$in;$out;$error;$mac_command) *If* (*$1*#"") $DocPath:=*Convert path system to POSIX*(*$1*) $mac_command:="/usr/bin/open "+*Char*(Double quote)+$DocPath+*Char*(Double quote) *DELAY PROCESS*(*Current process*;15) // In case a file dialog is trying to close. *LAUNCH EXTERNAL PROCESS*($mac_command;$in;$out;$error) *If* (OK=0) *Alert2* ("Error opening document '"+$DocPath+"'. Error: "+$error) *End if* *End if* On Tue, May 26, 2020 at 11:10 AM Chuck Miller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > What version of 4D and on Mac or windows > > I have not seen this behavior > > Stay safe and well > Chuck > > ------------------------------------------------------------------------------------------------ > Chuck Miller Voice: (617) 739-0306 > Informed Solutions, Inc. Fax: (617) 232-1064 > mailto:cjmiller<AT SIGN>informed-solutions.com > Brookline, MA 02446 USA Registered 4D Developer > Providers of 4D and Sybase connectivity > http://www.informed-solutions.com > > ------------------------------------------------------------------------------------------------ > This message and any attached documents contain information which may be > confidential, subject to privilege or exempt from disclosure under > applicable law. These materials are intended only for the use of the > intended recipient. If you are not the intended recipient of this > transmission, you are hereby notified that any distribution, disclosure, > printing, copying, storage, modification or the taking of any action in > reliance upon this transmission is strictly prohibited. Delivery of this > message to any person other than the intended recipient shall not > compromise or waive such confidentiality, privilege or exemption from > disclosure as to this communication. > > > On May 26, 2020, at 11:55 AM, Doug Hall via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > When executing this code from a remote connection, my "Select folder" > > dialog won't close. > > > > $saveFolder:=*Select folder*("Select destination folder";Documents > folder) > > > > *DELAY PROCESS*(*Current process*;5) > > > > > > I put in the delay process in case the dialog wasn't being processed > > synchronously. The code works fine when running it on my local database, > > but the dialog hangs around until I quit 4D, when on a remote connection. > > > > > > Ideas? Anyone else seen this? > > > > > > Doug > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > New Forum: https://discuss.4D.com > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************