The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > AppleScripting Omni Apps
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
do script ? [OmniWeb] Thread Tools Search this Thread Display Modes
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
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nasty script at HuffPost is beachballing OmniWeb Ward OmniWeb Bug Reports 0 2013-03-10 05:07 PM
setting project + context via script (modifying a DEVONthink script) bernd OmniFocus Extras 2 2012-09-08 01:10 PM
Archive script jbkendrick OmniFocus 1 for Mac 3 2009-10-31 10:41 PM
Script Help cjlemonier OmniOutliner 3 for Mac 0 2009-09-16 09:45 AM
Script Help gcrump OmniOutliner 3 for Mac 4 2007-06-21 04:42 PM


All times are GMT -8. The time now is 05:17 PM.


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