Can not properly display compiled scripts when opened

Issue #6 new
Ryan Jarvis created an issue

The attached script opens fine in script editor and a few text editors (Textmate, Textedit, TextWrangler). However when opened with the plugin it displays corrupted text and a warning about encodings. I am attaching a screenshot of that as well

Comments (6)

  1. Andrey repo owner

    Yep, this is the issue with all compiled OSA scripts. Script Editor decompiles it before displaying the text.

    Currently don't know how to fix it.

  2. Ryan Jarvis reporter

    Or

    #!/bin/bash
    
    [ -d src/ ] || mkdir src
    
    for x in *.scpt; do
        osadecompile "$x" > "src/${x/.scpt/}.applescript"
    done
    
  3. Log in to comment