<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thomas<br>
<br>
<span id="result_box" class="short_text" lang="en"><span class="">I
think "AssureFileExtension" should be</span> <span class="">after</span>
</span>"Execute"<br>
<br>
------------------------------<br>
local dialog = finale.FCFileSaveAsDialog(finenv.UI())<br>
<br>
local filter = finale.FCString()<br>
filter.LuaString = "*.txt"<br>
local description = finale.FCString()<br>
description.LuaString = "text files (*.txt)"<br>
dialog:AddFilter(filter,description)<br>
<br>
dialog:Execute()<br>
<br>
dialog:AssureFileExtension(".txt")<br>
local fileName = finale.FCString()<br>
dialog:GetFileName(fileName)<br>
print(fileName.LuaString)<br>
------------------------------<br>
<br>
Best regards<br>
<br>
Chris<br>
</body>
</html>