I have this in a bash script which when I try to run it it gives a permission denied. I am trying to create a mac finder shortcut from one location to anther.
#!/bin/bash
`osascript -e 'tell application "Finder" to make alias file to POSIX folder` `"/Users/tcokimac/Desktop/GSuits Setup" at POSIX folder "/Users/tcokimac/Desktop/Copy To"'`
Running it fails as follows:
tcokimac@Teens-iMac-Pro ~ % /Users/tcokimac/Documents/shell\ scripts/createproject2.sh
zsh: permission denied: /Users/tcokimac/Documents/shell scripts/createproject2.sh