I've done this before and it doesn't lend itself to googling the terms.
I'm trying to run an applescript without specifying osascript in the begining so that it's executable (i know you could do an alias), but I'm stubborn and need to figure out how I did this the first time.
$ head -2 original.scpt
#!/usr/bin/osascript
l�������i����.10����
$
$ head -2 new.scpt
l������������.10����
i
As you can see, the original script has the shebang to osascript
I tried prepending new.scpt with the same, but it did not work.
anyone know what this is called? does osacompile
need a flag to generate this type of file that can be run by itself (assuming chmod +x) ?
thanks