Getting a PDF selection link via AppleScript

Using this tip…

…this is another possibility:

encodeURIComponent("Just a test")

on encodeURIComponent(uri as text)
	run script "encodeURIComponent(" & (the quoted form of uri) & ");" in "JavaScript"
end encodeURIComponent
4 Likes