I used a symlink to make a shortcut on the desktop to a file
ln -s "~/My Scripts/start.sh" "Go go gadget hammer"
But realised I can't set an icon on a symlink.
So I used this script to make an alias:
osascript -e 'tell application "Finder" to make new alias at (path to desktop folder) to (("~/My Scripts/start.sh") as POSIX file)'
But I get this error
Finder got an error: Can't make class alias. (-2710)
How can I make a shortcut on the desktop and also give it a custom icon eventually?