Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Request File

 [1/8] from: mattsmac:ho:tmail at: 17-Nov-2003 13:56


Does anyone know why this statement only works some of the time? filepath: request-file/save/only/file filename filename is the name of the file I want to save. Sometimes the save dialog will have the filename filled in, other times it won't. It seems to be at random times. I am using REBOL/COMMAND. It always launches the save dialog and it always saves properly, it's just that sometimes it doesn't fill the name in. Matt _________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com

 [2/8] from: moliad:aei:ca at: 23-Nov-2003 12:20


I think this went unanswered... any one know anything about this? -MAx

 [3/8] from: antonr:iinet:au at: 24-Nov-2003 12:33


Well, I haven't got Command, but I have never seen request-file (that uses local-request-file) fill in the filename on rebol/view. What version of Command do you have, Matt? Did you notice a pattern in which filenames are filled in successfully and which aren't? Is it that a particular filename is always filled in ok? Or will a filename works sometimes and sometimes not? Anton.

 [4/8] from: mattsmac:hotmai:l at: 24-Nov-2003 16:59


It seems to be totally random as to when it decides to fill in the file name, but it doesn't fill it in more often than it does. REBOL Internet Protocols 1.59.2.15 14-Feb-2003/1:45:14 ODBC Access 1.2.2.2 24-Mar-2002/20:13:57 Dynamic Library Access 1.4.2.1 24-Mar-2002/20:13:53 Oracle Access 1.2.2.2 24-Mar-2002/20:13:57 MySQL Access 1.1.2.2 24-Mar-2002/20:13:57 Command Shell Access 1.5.2.5 11-Dec-2002/0:37:05 Graphics 1.1.2.5 23-Jul-2003/21:32:34 View and VID 1.155.2.6 23-Jul-2003/21:36:38 View Desktop 1.26.2.10 26-Jun-2003/6:00:34 Sound 1.2.2.2 24-Mar-2002/20:13:58 Encryption 1.3.2.2 24-Mar-2002/20:13:52 Big Numbers 1.2.2.2 24-Mar-2002/20:13:52 DH/DSA Encryption 1.2.2.2 24-Mar-2002/20:13:52 RSA Encryption 1.3.2.2 24-Mar-2002/20:13:58 FastCGI 1.2.2.3 24-Nov-2002/17:05:54 System Port 1.1.2.5 30-Nov-2002/17:24:03 Encryption Level 2 1.1.2.3 24-Jan-2002/19:54:44 Secure Socket Layer 1.3.2.2 24-Mar-2002/20:13:58 Matt -------------------------------------------------------------------- Well, I haven't got Command, but I have never seen request-file (that uses local-request-file) fill in the filename on rebol/view. What version of Command do you have, Matt? Did you notice a pattern in which filenames are filled in successfully and which aren't? Is it that a particular filename is always filled in ok? Or will a filename works sometimes and sometimes not? Anton.
>I think this went unanswered... >any one know anything about this?
<<quoted lines omitted: 9>>
> > > name in. > > > Matt
_________________________________________________________________ online games and music with a high-speed Internet connection! Prices start at less than $1 a day average. https://broadband.msn.com (Prices may vary by service area.)

 [5/8] from: sqlab:gmx at: 25-Nov-2003 10:38


Hi Matt I observed, that it keeps the file name, when this file exists in your directory. Maybe you should change the source of request-file, if you like a different behaviour. AR
> It seems to be totally random as to when it decides to fill in the file > name, but it doesn't fill it in more often than it does.
<<quoted lines omitted: 28>>
> > > > Matt > _________________________________________________________________
-- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++

 [6/8] from: mattsmac:hotm:ail at: 20-Jan-2004 17:07


I'm having a problem with the Request File Function. I have a timer as an event in the feel of a form. One of the buttons on the form launches the request file dialog box. The problem is that while that dialog box is up, my timer event is paused. I'm using the timer to check for inactive users, so the timer needs to be going at all times. Anybody have any suggestions? Here is the code for the timer: ; Probe time hold the timer interval, in my case it is usually 30 seconds main-form/rate: probe-int main-form/feel: make main-form/feel [ engage: func [face action event] [ if (event/type = 'time) [probe-messages probe-type] ] ] Thanks everyone, Matt _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee.

 [7/8] from: carl:cybercraft at: 24-Jan-2004 11:51


On 21-Jan-04, Matt MacDonald wrote:
> I'm having a problem with the Request File Function. I have a timer > as an event in the feel of a form. One of the buttons on the form
<<quoted lines omitted: 11>>
> ] > ]
I'm not quite sure how your program works, but the timer in the following keeps going while the file-requester is open... view layout [ button "Request" [x: request-file] time: field to-string now/time rate 1 feel [ engage: func [face action event][ if event/type = 'time [ time/text: to-string now/time show time ] ] ] ] -- Carl Read

 [8/8] from: antonr:iinet:au at: 21-Jan-2004 15:00


Request-file in Rebol/View 1.2.1.3.1 uses a rebol window whereas betas since then are using the windows native file requester. On WinXP this window is modal and blocks events to the main window, including, it seems, time events. That's an interesting issue. (meaning, I don't have an answer) I will bring it up in rebol-view world, where we are working on rebol/view 1.3 Actually, it might be worth looking how request-file is implemented in View 1.2.1. You most likely can just copy the source to the request-file function into your code and use that in the newer beta I assume you are using. At least it will work. Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted