The code below used to work (5.6 I think) to get the selection
in the active window. But in the latest sneaky peak it returns
nothing ? Does anybody know why this is so ?
tell application "OmniWeb"
set minTekst to do script "getSelection()" window browser 1
end tell
Now this here seems to work, but surely there must be an easier way ... or ?
set getSelection to "
x=escape(getSelection());
unescape(x);
"
tell application "OmniWeb"
set minTekst to do script getSelection window browser 1
end tell
in the active window. But in the latest sneaky peak it returns
nothing ? Does anybody know why this is so ?
tell application "OmniWeb"
set minTekst to do script "getSelection()" window browser 1
end tell
Now this here seems to work, but surely there must be an easier way ... or ?
set getSelection to "
x=escape(getSelection());
unescape(x);
"
tell application "OmniWeb"
set minTekst to do script getSelection window browser 1
end tell