$msfile » History » Version 5
Per Amundsen, 02/23/2023 05:17 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$msfile(dir,[title],[oktext])* |
||
4 | |||
5 | Displays the multiple select file dialog and returns the number of selected files. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 5 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | dir | Starting folder in the file dialog. | |
||
12 | | [title] | Dialog title text. (optional) | |
||
13 | | [oktext] | *TODO* (optional) | |
||
14 | 1 | Per Amundsen | |
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | ; Select some files and print the number of selected files. |
||
19 | //echo -ag Number of selected files is $msfile($adiircdir, Select Files) |
||
20 | </pre> |
||
21 | |||
22 | ----------------------------------------------------------------------------- |
||
23 | |||
24 | 4 | Per Amundsen | *$msfile(N)* |
25 | 1 | Per Amundsen | |
26 | Returns the Nth file from the last [[$msfile]] selection. |
||
27 | |||
28 | *Parameters* |
||
29 | |||
30 | 5 | Per Amundsen | table(ktable). |
31 | |*Parameter*|*Description*| |
||
32 | | N | If N = 0, number of selected files, otherwise the Nth selected file. | |
||
33 | 1 | Per Amundsen | |
34 | *Example* |
||
35 | |||
36 | <pre> |
||
37 | ; Select some files. |
||
38 | //noop $msfile($adiircdir, Select Files) |
||
39 | |||
40 | ; Print the first selected file. |
||
41 | 3 | Per Amundsen | //echo -ag First selected file was $msfile(1) |
42 | 1 | Per Amundsen | </pre> |