tell application "Finder"
set jobnum to "12345"
set imageVersion to "3"
set curlURL to "curl [url=http://www.mysite.com/changestatus.taf?j=]http://www.mysite.com/changestatus.taf?j="[/url] & jobnum & "&v=" & imageVersion
do shell script curlURL
Seems to work fine, except that the imageVersion argument is not being passed to my web server.
I’m having this issue at the moment as well. There seems to be a problem with curl escaping the amperstand (&).
WIth it (&), script editor hangs while calling curl. with the quoted form, it just gets the wrong page. any other idea s of how to escape “&” in a constructed URL without using quoted form of?
property tmbase : "http://www.ticketmaster.com/find_area?area="
property tmsuff : "&Submit=Go"
property acity : "new+york"
set theURL to (tmbase & acity & tmsuff)
-- above will cause curl to hang script editor
set the_quoted_URL to quoted form of (tmbase & acity & tmsuff)
-- above will get the wrong page
set thesearch to "summary=\"Hot Tickets\""
-- resulting page (r) should contain < summary="Hot Tickets" >
set r to do shell script ("curl " & the_quoted_URL)
if r contains thesearch then
open location theURL -- this is correct page
Yes, the URL is resolved to the Ticketmaster home page. But at least for me the page contents properly shows the information for “new york”. Try any other area (city with + instead of space) and it should work too. for example: