Can not properly display compiled scripts when opened
Issue #6
new
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)
-
reporter -
reporter - attached idea.log
-
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.
-
repo owner - changed title to Can not properly display compiled scripts when opened
-
assigned issue to
-
reporter Here is the code that Textmate uses to decompile these scripts and display them.
https://github.com/textmate/textmate/tree/master/Applications/decompile_as -
reporter Or
#!/bin/bash [ -d src/ ] || mkdir src for x in *.scpt; do osadecompile "$x" > "src/${x/.scpt/}.applescript" done
- Log in to comment
Screenshot of issue