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 > OmniWeb > OmniWeb Bug Reports
FAQ Members List Calendar Today's Posts

 
AppleScript broken in OmniWeb 5.5? Thread Tools Search this Thread Display Modes
I didn't see anything in the release notes about AppleScript support. I have a script that worked in OmniWeb 5.1 but doesn't seem to work at all in 5.5sp3. See:

http://www.omnigroup.com/mailman/arc...06/019846.html

Here's a movie to test with:

http://www.ijrr.org/contents/25_03/a...xtension2.mpeg

When I load the above movie in OW 5.5, then run the script, I get an NSInternalScriptError. This doesn't happen in OW 5.1. (It correctly launches QuickTime.)
 
Thanks for the clear repro steps! I saw the same behavior on my own machine and filed a bug with a few more details -- hopefully our engineers will figure it out soon.
 
Another AppleScript that is broken in 5.5 that used to work in 5.1.3 is this one:

http://homepage.mac.com/jtyzack/.Public/scpt.zip

(N.B. that link will download a zipped archive of the script). It is the "Open URL in another browser" script that someone posted to the mailing list a while ago. It should grab the URL of the front page in OmniWeb and present a dialogue to pick another browser to open it in (which, if it worked, would be really useful to aid testing of the sp versus other browsers!! ;) ). With 5.5 sp3 no dialogue ever appears.

Last edited by JKT; 2006-04-11 at 02:20 PM..
 
The "Open URL in another browser" applescript works for me in sp6.

But this does not. It's a script for Adium to insert the front URL from OW into chat; worked in 5.1.3. (Incidentally, one gets it to work with the Safari button by saving this as "Safari.scpt" and placing it into Adium.app/Contents/Resources.)

The part of the script that doesn't work is the "name of front browser".

Code:
on substitute()
	tell application "System Events"
		if ((application processes whose (name is equal to "OmniWeb")) count) is greater than 0 then
			using terms from application "OmniWeb"
				tell application "OmniWeb"
					if (count of browsers) is greater than 0 then
						set linkHTML to "<HTML><A HREF=\"" & (address of front browser) & "\">" & (name of front browser) & "</A></HTML>"
						return linkHTML
					else
						return ""
					end if
				end tell
			end using terms from
		else
			return ""
		end if
	end tell
end substitute
 
I have the same behavior with all my scripts each time they call the "front browser".

e.g. if I have a script with:

set mainBrowser to front browser

when I run it I get an error message saying that the variable mainBrowser is not defined.
 
Hmm.

I guess I wasn't that clear in my post. "front browser" works in the script (since it works in "address of front browser"), but it doesn't seem to have a "name".
 
Quote:
Originally Posted by afb
The "Open URL in another browser" applescript works for me in sp6.
Confirmed - it now works for me in sp7 (I missed sp6).
 
This is strange. It doesn't seem like anything has changed, but the "Count tabs" script (from here) that was working for me earlier (with sp7) no longer works.

"count (tabs of front browser)" brings up the error "NSOperationNotSupportedForKeyScriptError"
 
Hello,

I would like to know if anyone has an update on the status of this AppleScript bug, as it still doesn't work in SP14. Sorry to bother you if you were already working on it, but I was a little worried as it never made it to the known issues list.

Thanks
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Omniweb Applescript Question russophile OmniWeb General 4 2008-03-14 12:56 PM
Omniweb 5.5.1 rendering broken... omni developers please respond. Bruce OmniWeb Bug Reports 5 2006-12-05 06:49 AM
convert safari applescript to omniweb bryanl OmniWeb General 0 2006-11-28 04:18 AM
OmniWeb Applescript Support (for DevonThink) dougray OmniWeb General 8 2006-11-03 08:21 AM
Omniweb and Applescript steve OmniWeb General 3 2006-05-16 05:40 PM


All times are GMT -8. The time now is 11:14 AM.


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