Post

Replies

Boosts

Views

Activity

osacompile: no such component "AppleScript"
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. 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?
7
0
2.8k
Jun ’20