• 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: Include "\" in do shell script command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include "\" in do shell script command


  • Subject: Re: Include "\" in do shell script command
  • From: "Timothy K. Wilkinson" <email@hidden>
  • Date: Fri, 18 Jul 2003 14:19:54 -0400

Appreciate you posting that on the list. I'll make sure to forward all the
spam I get to you. :-)


The problem is that using that syntax works just fine if you actually put
the id in there. It compiles and runs just fine as you so nicely
demonstrated. Now try it the way I actually posted it:


do shell script "whois -h whois.virginia.edu " & (ASCII character 92) & "!"
& the_id

Or like this:

Do shell script "whois -h whois.virginia.edu \\!" & the_id


Both return the same error telling me the record can't be found, yet I know
the record exists. If I look in the event log it shows the command being
issued in exactly the same way as when I actually enter an ID into the
string. It seems as if the variable is the weak link here. I tried running
the above and declaring the contents of the variable earlier in the script
and got the same error.


Any other ideas?


Tim

> From: John Delacour <email@hidden>
> Reply-To: email@hidden
> Date: Fri, 18 Jul 2003 18:57:51 +0100
> To: email@hidden
> Subject: Re: Include "\" in do shell script command
>
> At 1:04 pm -0400 18/7/03, Timothy K. Wilkinson wrote:
>
>> Anyone have any ideas on how I can put this character in my command string?
>>
>> Here's the offending line (beware of line wrapping)
>>
>> do shell script "whois -h whois.virginia.edu " & (ASCII character 92) & "!"
>> & the_id
>
> do shell script "whois -h whois.virginia.edu \\!tkw4u"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Include "\" in do shell script command
      • From: Mikael Byström <email@hidden>
    • Re: Include "\" in do shell script command
      • From: "Johnny AppleScript" <email@hidden>
    • Re: Include "\" in do shell script command
      • From: "Johnny AppleScript" <email@hidden>
    • Re: Include "\" in do shell script command
      • From: Rob Jorgensen <email@hidden>
    • Re: Include "\" in do shell script command
      • From: "Steven D. Majewski" <email@hidden>
References: 
 >Re: Include "\" in do shell script command (From: John Delacour <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #1831 - 1 msg
  • Next by Date: Re: applescript-users digest, Vol 3 #1828 - 7 msgs
  • Previous by thread: Re: Include "\" in do shell script command
  • Next by thread: Re: Include "\" in do shell script command
  • Index(es):
    • Date
    • Thread