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

View Question

 [1/3] from: mattsmac::hotmail::com at: 24-Oct-2003 11:50


Ok, stupid question, but I can't seem to get it to work. I want to have the user select a file save location for a file transfer and I want to be able to specify the default filename. Here is my code as of now. filepath: request-file/save/only/file filenames/:i where filenames/:i is the default filename This works fine except that it never inserts the default filename so the user always needs to type it in. Any ideas? Matt

 [2/3] from: carl:cybercraft at: 24-Dec-2003 22:42


On 25-Oct-03, Matt MacDonald wrote:
> Ok, stupid question, but I can't seem to get it to work. > I want to have the user select a file save location for a file
<<quoted lines omitted: 4>>
> This works fine except that it never inserts the default filename so > the user always needs to type it in. Any ideas?
It works for me, though I note there's no /save refinement with my request-file, so you must be using a later version (than I'm using on this box, which is View 1.2.1.) I used the following values to test it...
>> i: 2
== 2
>> filenames: [%a %b %c]
== [%a %b %c]
>> filenames/:i
== %b and see that "none" is put in the requester if i is trying to reference outside the block. If filenames/:i returns a file-name for you, then maybe your request-file is bugged. I'd test it on a new console first before reporting it as a bug though, just to be sure it's not been corrupted by whatever else you've been running. -- Carl Read

 [3/3] from: antonr:iinet:au at: 26-Oct-2003 16:10


The latest view beta's request-file uses local-request-file. He's probably on windows and so sees the os native requester. I get the same behaviour and didn't see a way yet to set the filename (and actually see it in the requester). Perhaps make a way in your program to easily copy the filename so the user can paste it in the filename field. I expect that behaviour will be fixed eventually, though. Anton.

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