dBlue solved all of it!.
I’ve now got a shortcut which opens up three File browsers:
- one with Renoise.log highlighted
- one with Config.xml highlighted
- one with CrashBackups folder.
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
}