Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Latest commit

 

History

History
24 lines (20 loc) · 668 Bytes

File metadata and controls

24 lines (20 loc) · 668 Bytes

A pair of AppleScript actions wrapping PHP's urlencode()/urldecode() functions, for quickly unescaping URLs (%20->space, %26->&, etc) in query strings, or escaping a URL so you can paste it into a query string.

Encode URL

using terms from application "Quicksilver"
    on process text theurl
        return do shell script "php -r 'echo urlencode(\"" & theurl & "\");'"
    end process text
end using terms from

Decode URL

using terms from application "Quicksilver"
    on process text theurl
        return do shell script "php -r 'echo urldecode(\"" & theurl & "\");'"
    end process text
end using terms from