The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   AppleScripting Omni Apps (http://forums.omnigroup.com/forumdisplay.php?f=46)
-   -   do script ? [OmniWeb] (http://forums.omnigroup.com/showthread.php?t=7500)

russophile 2008-03-14 11:09 AM

do script ? [OmniWeb]
 
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


All times are GMT -8. The time now is 08:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.