• 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: Escape URL characters for shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escape URL characters for shell


  • Subject: Re: Escape URL characters for shell
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 01 Mar 2004 07:19:13 -0700

Entity Walter Ian Kaye spoke thus:

>> What's the easiest way to escape URL's before assembling a shell command?
>> "quoted form of" seems like a good idea but doesn't do a thing for me. Is
>> there another trick?
>
> Funny, it works fine for me...
>
> Any particular URL it's failing on?
Example:

set aURL to
"http://www.allmusic.com/cg/amg.dll?p=amg&uid=UIDMISS70402281058012766&sql=A
pe2m96ho3ep1"

quoted form of aURL

I'm sure I have seen this construct return an escaped URL, but not done like
this.

I'm saying this:
do shell script "sed -e '/^<th/{N;s/\\(<th.*\\n<tr>\\)/\\1" & thisSong & "
<tr>/;};P;D' " & filePathPOSIX

where variable thisSong may contain a URL, but a URL contains "/".

-- Gnarlie
_______________________________________________
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: Escape URL characters for shell
      • From: Christopher Nebel <email@hidden>
    • Re: Escape URL characters for shell
      • From: Matthew Leingang <email@hidden>
References: 
 >Re: Escape URL characters for shell (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Sending events to another user space
  • Next by Date: Photoshop IPTC file
  • Previous by thread: Re: Escape URL characters for shell
  • Next by thread: Re: Escape URL characters for shell
  • Index(es):
    • Date
    • Thread