You're right. It works without the quotes. Thanks for straightening me out.
--------------------
On December 16, 2018 at 11:50:24 PM [-0800],
Steve Derosier wrote in an email entitled
"Re: Osascript/tcsh Question":
If I use your alias and just type
quit Microsoft Word
it works fine. Only if I include the quotes like you have it does it
fail with your error message. Perhaps you're over thinking it?
- Steve
On Sat, Dec 15, 2018 at 2:17 PM Rick Gordon<[email protected]> wrote:
Not specifically a BBEdit question, but I know that there are people on
the list here that can clarify this for me; please excuse the post if
it's not acceptable.
Running a tcsh shell, I'm trying to set up an alias that will send an
orderly Quit command to the application that is the argument of the command.
I want it to work like this:
quit "Microsoft Word"
I've tried this:
alias quit 'osascript -e '\''tell application "System Events" to quit
application "\!*"'\'
…and this:
alias quit 'osascript -e '\''tell application "System Events" to quit
application process "\!*"'\'
But I get the error: syntax error: A identifier can’t go after this “"”.
(-2740)
Can someone please clarify. Thank you.
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter:<https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit
Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.