Re: Problem Escaping osascript Command
Re: Problem Escaping osascript Command
- Subject: Re: Problem Escaping osascript Command
- From: Skeeve <email@hidden>
- Date: Wed, 23 Jan 2008 10:30:20 +0100
Rick Gordon wrote:
I don't understand how it can start with an unescaped apostrophe but end with an escaped one. There's something here that I haven't learned (and need to). Thanks.
I never used that before too, but AppleScript teached me to. Test what
quoted form of "-'-" gives you...
But to answer your question (monospaced font required to see the explanation):
'osascript -e '\''tell application "Finder" to reveal POSIX file "\!*"'\'
| |||| |||
\---string 1--/||\--------------------string 3------------------------/||
\\<- escaped quote 2 ||
another escaped quote 4 ->//
Shells usually "glue together" everything that's not seperated by a blank, so this gives, as the alias' value:
osascript -e 'tell application "Finder" to reveal POSIX file "\!*"'
| ||| ||
| 1 |2| 3 ยก4
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden