[JW Lua] Reading the path/filename of the current plugin

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sat Jan 31 17:36:29 CET 2015


Jan,

Great suggestion, I'll add such a feature! Would methods like 
FCString::SetRunningLuaFolderPath() and 
FCString::SetRunningLuaFilePath() suit your purposes?

Best regards,

Jari Williamsson


On 2015-01-31 14:57, Jan Angermüller wrote:
> Jari,
>
> it's possible to read the general Finale plug-in path with FCString.
> But is it also possible to read the plug-in path of the current JW Lua
> script ?
> And maybe even its filename ?
> I.e.
> c:\program files\Finale 2012\Plug-ins    (general Finale plug-in path)
> compared to
> c:\program files\Finale 2012\Plug-ins\jw lua scripts\ (lua script path)
> c:\program files\Finale 2012\Plug-ins\jw lua scripts\copylayers.lua (lua
> script)
>
> I am asking because I want to read/save ini-files for the plug-ins.
> And - if possible - those should be found in the same directory as the
> plug-in script.
>
> Best regards,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list