Permalink
Browse files

Fixes Safari 5.1 bug detailed here: https://discussions.apple.com/thr…

  • Loading branch information...
1 parent 8e7179c commit ae7d856b2e506b8c15c714d4440e8870d65a822f @claviclaws committed Sep 21, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 orgQSLib/getItemMetadata.applescript
  2. BIN orgQSLib/getItemMetadata.scpt
@@ -138,7 +138,10 @@ on linkSafari(theProtocol, theApp)
set theURL to do JavaScript "document.URL" in document 1
set theShortTitle to (do JavaScript "document.title" in document 1)
set theTitle to theShortTitle & ":" & theApp
- set theContent to do JavaScript "window.getSelection()" in document 1
+ set theContent to (do JavaScript "var x = ''+document.getSelection();x" in document 1)
+ (*
+ Fixes bug detailed https://discussions.apple.com/thread/3197130?start=0&tstart=0
+*)
end tell
set escURL to encodeURIComponent(theURL)
Binary file not shown.

0 comments on commit ae7d856

Please sign in to comment.