How to find the project that contains a sample (Ableton Live)

Discussion in 'Live' started by Demloc, Apr 28, 2026.

  1. Demloc

    Demloc Rock Star

    Joined:
    Mar 10, 2020
    Messages:
    440
    Likes Received:
    405
    Today I learned that if you open a powershell/Terminal and paste this


    $sample = "YOUR SAMPLE.EXTENSION"
    $ruta = "FULL DIRECTION OF PROJECTS FOLDER "

    Get-ChildItem -Path $ruta -Filter *.als -Recurse | ForEach-Object {
    $als = $_.FullName
    try {
    $fs = [System.IO.File]::OpenRead($als)
    $gz = New-Object System.IO.Compression.GzipStream($fs, [System.IO.Compression.CompressionMode]::Decompress)
    $sr = New-Object System.IO.StreamReader($gz)
    $xml = $sr.ReadToEnd()
    $sr.Close(); $gz.Close(); $fs.Close()
    if ($xml -match [regex]::Escape($sample)) { Write-Host $als }
    } catch { }
    }


    It will find you all the .als projects that uses that sample.
    Very useful if you are like a chaotic person like me and you have just a fucking folder for hundreds of projects all sharing the same samples/recorded/processed/cropped XD.


    Cheers!
     
    • Interesting Interesting x 1
    • Love it! Love it! x 1
    • List
  2.  
Loading...
Loading...