I created an app that uses AppleScript to automatically convert .numbers files to .csv by opening it in Numbers and using the Export function.
After one of the recent updates¹, in Xcode 11.5 (macOS 10.15.5) this no longer works. It shows the error:
osacompile: no such component "AppleScript".
I get the same error when I manually run the osacompile command in Terminal.
¹The last time I successfully compiled it was on 15 October 2019, so I was already running Catalina, but I don't know which of the updates since then broke it.
Even without a valid test.applescript file, this is an easy way to reproduce it:
/usr/bin/osacompile -l AppleScript -d -o test.scpt test.applescript
This command gives me the same error.
A simple way to reproduce it in Xcode is to create a new project and make it an AppleScript App.
It can also be reproduced by using this project:
https://github.com/hhas/Swift-AppleScriptObjC
It's impossible to compile now.
Can anyone confirm if this is a bug in macOS / Xcode or just on my system?
After one of the recent updates¹, in Xcode 11.5 (macOS 10.15.5) this no longer works. It shows the error:
osacompile: no such component "AppleScript".
I get the same error when I manually run the osacompile command in Terminal.
¹The last time I successfully compiled it was on 15 October 2019, so I was already running Catalina, but I don't know which of the updates since then broke it.
How to reproduce
Even without a valid test.applescript file, this is an easy way to reproduce it:
/usr/bin/osacompile -l AppleScript -d -o test.scpt test.applescript
This command gives me the same error.
A simple way to reproduce it in Xcode is to create a new project and make it an AppleScript App.
It can also be reproduced by using this project:
https://github.com/hhas/Swift-AppleScriptObjC
It's impossible to compile now.
Can anyone confirm if this is a bug in macOS / Xcode or just on my system?
It worked! Thank you so much!
Using fs_usage with grep and bbedit I found out that one of the files it accessed was ~/Library/Components/Script Debugger.component from the app Script Debugger.
After deleting the component, the error was gone.
Just for fun, I opened Script Debugger again and it recreated the component file, but the error didn't come back. May have been a bug in an old version of the Script Debugger component that has since been fixed.
Using fs_usage with grep and bbedit I found out that one of the files it accessed was ~/Library/Components/Script Debugger.component from the app Script Debugger.
After deleting the component, the error was gone.
Just for fun, I opened Script Debugger again and it recreated the component file, but the error didn't come back. May have been a bug in an old version of the Script Debugger component that has since been fixed.