[JW Lua] AddFilter() in file dialogs

Thomas Weber thomas.weber at notengrafik.com
Fri Aug 5 05:38:56 CEST 2016


Ah, got it.  While the docs list an FCString constructor that takes an initializing string as argument, that doesn't work with Lua.

http://www.finaletips.nu/frameworkref/class_f_c_string.html#a5d436186efd53ff23b67021dc2e17592


Am 04.08.2016 um 20:03 schrieb Thomas Weber:
> I tried the following code:
>
>   local dialog = finale.FCFileOpenDialog(finenv.UI())
>   dialog:AddFilter(finale.FCString"*.txt", finale.FCString"test")
>   dialog:Execute()
>
> I'd expect that with AddFilter(), I'd find a respective entry in the file type dropdown menu of the dialog, but I don't.  Am I doing it wrong or is this a bug?
>
> Thomas
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>




More information about the JWLua mailing list