From f5032c0d2b866bc05ae044ba3b6588b994a0e6fc Mon Sep 17 00:00:00 2001 From: Morgan Schweers Date: Mon, 18 Jul 2016 03:37:09 -0700 Subject: [PATCH] Fix the Finder activation so it works, and points to the snippets text file. --- app/app_delegate.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app_delegate.rb b/app/app_delegate.rb index 550250c..caa2953 100644 --- a/app/app_delegate.rb +++ b/app/app_delegate.rb @@ -57,6 +57,7 @@ def ask end def prep_log(file = File.join(@snippet_path, 'snippets.txt')) + @logfile = file @snippets ||= open(file, 'ab') log('[Starting up (rubymotion)]') end @@ -91,7 +92,7 @@ def buildWindow end def finderView - files = [@snippet_path] - NSWorkspace.sharedWorkspace.activateFileViewerSelectingURLs:files + files = [NSURL.fileURLWithPath(@logfile)] + NSWorkspace.sharedWorkspace.activateFileViewerSelectingURLs(files) end end