Hi micro04,
well...
Code: Select all
...
ask file "Save to" with type "text files|TXT"
put ".txt" after it
## Since you put something after IT, IT is of course never empty, so this:
if it is empty then
## does not make sense!
## break
## BREAK will exit a SWITCH structure, but you need to exit this handler.
## so BREAK will not work here
end if
...
You should get used to the shorter URL syntax, do like this:
Code: Select all
...
ask file "Save to" with type "text files|TXT"
if IT = empty then
exit mouseup ## if this is inside a mouseup handler!
end if
## IT may change when you least exspect IT,
## so better put IT into another var immediately!
put it into tFileName
put ".txt" after tFileName
## Now the URL one-liner :-)
put field "Field1" into url("file:" & tFileName)
...
That should do the trick.
Best
Klaus