Script triggers for URLs?

I have the following script associated with a URL entry pointing to I want the choice of searching Wikipedia when I cilck on the Wikipedia URL entry in DTP – or hitting Cancel and then browsing via DTP. However, when I click on my URL-with-trigger, nothing happens.


on triggered(theRecord)
	display dialog "Search Wikipedia: " default answer ""
	set searchString to the text returned of the result
	if searchString is not "" then
		tell application "DEVONagent"
			search searchString using plugin "Wikipedia"
		end tell
		tell application "System Events"
			tell process "DEVONagent"
				tell button "Start" of window "DEVONagent: Wikipedia"
				end tell
			end tell
		end tell
	end if
end triggered

on run
	my triggered("")
end run

The script works fine over here but triggered scripts are only executed in split and three-pane views (or after opening the item in its own window).

Strange, I’m doing this in the 3-pane view (by which I mean the right-most of the 6 display buttons).

Oh well, I just made it a quick script for LaunchBar, which better suits my needs anyway.