I'm creating an Application in Mac Automator (MacOs Catalina) that creates a file in the same directory where the .app is.
To get the .app path I'm using:
- for apple script:
POSIX path of (path to me)
- for javascript:
app.pathTo(this).toString()
It is works great...
... until send the .app to someone in internet.
If the app was download from internet and run, it shows this error
/private/var/folders/.../.../...
read-only file system
How to solve this?