• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem Escaping osascript Command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Problem Escaping osascript Command
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Problem Escaping osascript Command (From: Rick Gordon <email@hidden>)
 >Re: Problem Escaping osascript Command (From: Skeeve <email@hidden>)
 >Re: Problem Escaping osascript Command (From: Skeeve <email@hidden>)
 >Re: Problem Escaping osascript Command (From: Rick Gordon <email@hidden>)

  • Prev by Date: Re: Problem Escaping osascript Command
  • Next by Date: Re: How to parse CSV
  • Previous by thread: Re: Problem Escaping osascript Command
  • Next by thread: Re: Problem Escaping osascript Command
  • Index(es):
    • Date
    • Thread