Hi
I have been working some code to open an import dialog box so I can choose a file to be imported. Then i want the title of the imported file to be written to the field importname.
This is the latest version of my code but it does not save the filename to the field.
\procedure getname()
<$set name="open" value="[[">
<$set name="close" value="]]">
{{{ [[$:/Import]get[text]split<open>split<close>nth[2]] }}}
</$set>
</$set>
\end
<$messagecatcher tm-import-tiddlers=<<getname>>>
<$action-setfield importname=<<getname>>/>
<$browse/>
</$messagecatcher>
Help would be appreciated.
Cheers, Rob