Skip to content
Discussion options

You must be logged in to vote

if you need something more granular you can base your code upon this one :


myMethod = function(mod, value, source)
    local me = File.getSpecialLocation(File.currentApplicationFile)
    local ext = me:getFileExtension():lower() -- Convert to lowercase just in case
    
    console("Running as: " .. tostring(ext))

    -- Map extensions to categories
    local formatMap = {
        [".vst3"] = "Plugin",
        [".vst"] = "Plugin",
        [".dll"]  = "Plugin",
        [".vst"]  = "Plugin",
        [".component"] = "Plugin", -- AudioUnit on macOS
        [".auv3"] = "Plugin", -- AudioUnit V3 on macOS
        [".aaxplugin"] = "Plugin",
        [".exe"]  = "Standalone",
        [".app"]  =…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@damiensellier
Comment options

Comment options

You must be logged in to vote
3 replies
@damiensellier
Comment options

Answer selected by dobo365
@damiensellier
Comment options

@dobo365
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants