Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Mixing Station track name import v1.0 #1293

Conversation

LostViking09
Copy link

No description provided.

end

-- Run the script
reaper.defer(main)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delay main until up to 30ms later? The entire contents of main could be probably extracted out of it and put directly in the script, no function or defer required.

-- Function to prompt the user for a file
function getUserFile()
local userFile = reaper.GetResourcePath()
local _, file = reaper.GetUserFileNameForRead(userFile, "Please load an MS Scene (Default: C:\\Users\\[user]\\MixingStaion\\Presets)", "json")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo? s/MixingStaion/MixingStation/

What's the default path on macOS and Linux? If this script is only meant for Windows, installation should be limited to it using the "Target platform" field.

Shouldn't the MixingStation Presets folder be given to GetUserFileNameForRead instead of REAPER's resource path?

By the way Lua has select for skipping unused leading values.

@cfillion cfillion closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants