Yes, you can go to Renoise->Help->Show the Preferences Folder
and it’ll, for instance, pump you to
/Users/esaruoho/Library/Preferences/Renoise/V2.7.0
, but can this “current Preferences folder” be read from the API?
I don’t know for sure, you should be able to reach your own tools folder because you shouold be able to read and write document related stuff to files, but i don’t know for sure if you have all access rights to parent folders.
With Windows 7, regarding access rights, this should pose no problems. Don’t know how this is on Macs though.
function get_config_folder()
local os = os.platform()
local log_filename = renoise.app().log_filename
local config_folder = ''
if (os == 'WINDOWS') then
config_folder = string.gsub(log_filename, '\\Log.txt', '\\')
elseif (os == 'MACINTOSH') then
config_folder = string.gsub(log_filename, '/Logs/Renoise.log', '/Preferences/Renoise/V' .. renoise.RENOISE_VERSION .. '/')
elseif (os == 'LINUX') then
config_folder = string.gsub(log_filename, '/Log.txt', '/')
end
return config_folder
end
function get_config_filename()
return get_config_folder() .. 'Config.xml'
end
function get_crashbackups_folder()
if (os.platform() == 'WINDOWS') then
return get_config_folder() .. 'CrashBackups\\'
else
return get_config_folder() .. 'CrashBackups/'
end
end
renoise.tool():add_keybinding {
name = "Global:Impulse:Open RenoiseLog, Config.xml and CrashBackups folder",
invoke = function()
renoise.app():open_path(renoise.app().log_filename)
renoise.app():open_path(get_crashbackups_folder())
renoise.app():open_path(get_config_filename())
end
}