MacOS – coreFoundationUnknownErr when creating an application with osacompile from an applescript

applescriptmacos

I have the following applescript Spyder3.applescript :

on run
 do shell script "/usr/local/miniconda3/bin/spyder3"
end run

I want to compile it to an Application, so I type this command :

$ sudo osacompile -o /Application/Spyder3.app Spyder3.applescript

but I get this an coreFoundationUnknownErr error :

osacompile: couldn't write to file /Application/Spyder3.app: coreFoundationUnknownErr (-4960).

Can you help me ?

Best Answer

I was mistaken about the Applications directory name.

I wrote /Application/Spyder3.app instead of /Applications/Spyder3.app

I'm sorry