The first line "#! /bin/sh" is telling the OS that you want to run /
bin/sh and give it the script file. Then when you have "#!/usr/bin/
osascript" it's just a comment so it gets ignored.
Try "#!/usr/bin/osascript -e"
No, that's clearly not going to work. The interpreter named on the #!
line is passed the file as an argument. osascript uses -e for an
expression passed on the command line.
steve$ cat bah
#!/usr/bin/osascript -e
tell application "Finder" to activate
steve$ ./bah
0:1: syntax error: A unknown token can’t go here. (-2740)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden
This email sent to email@hidden