Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 're: %-encoding characters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
re: %-encoding characters
Authored by: koncept on Dec 20, '04 12:47:50PM
I altered your last handler to the following to account for spaces:

on perform action for thePerson with fone
  set od to AppleScript's text item delimiters
  set newDelim to space
  set theURL to "http://www.google.com/search?q=" & name of thePerson
  set AppleScript's text item delimiters to newDelim
  set ti to text items of theURL
  set AppleScript's text item delimiters to "%20"
  set urlEncoded to ti as string
  set AppleScript's text item delimiters to od
  do shell script ("open" & space & quoted form of urlEncoded)
  return true
end perform action


[ Reply to This | # ]