[JW Lua] AddFilter() in file dialogs

Chris marcel.denio at gmail.com
Fri Aug 5 18:50:05 CEST 2016


Thomas

I think "AssureFileExtension" should be after "Execute"

------------------------------
local dialog = finale.FCFileSaveAsDialog(finenv.UI())

local filter = finale.FCString()
filter.LuaString = "*.txt"
local description = finale.FCString()
description.LuaString = "text files (*.txt)"
dialog:AddFilter(filter,description)

dialog:Execute()

dialog:AssureFileExtension(".txt")
local fileName = finale.FCString()
dialog:GetFileName(fileName)
print(fileName.LuaString)
------------------------------

Best regards

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20160805/601256b8/attachment.htm>


More information about the JWLua mailing list