From cd035a5e13b85813b6a91f8faf776ba5765e6c64 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 12 Feb 2009 22:43:11 -0500 Subject: Treat 'appleevent_odoc' event as a 'uri_dropped' event; core/events.lua --- core/events.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/events.lua b/core/events.lua index 23ce1ae3..a1e32dc8 100644 --- a/core/events.lua +++ b/core/events.lua @@ -466,8 +466,9 @@ add_handler('quit', end) if MAC then - function appleevent_odoc(uri) return handle('appleevent_odoc', uri) end - add_handler('appleevent_odoc', function(uri) textadept.io.open(uri) end) + function appleevent_odoc(uri) + return handle('uri_dropped', 'file://'..uri) + end end --- -- cgit v1.2.3