From 6345be78a7c9a2552414fbb7322f4689c2540c58 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 16 May 2024 16:10:02 +0000 Subject: [PATCH] Focus finder on details open --- .../xpipe/ext/base/browser/OpenNativeFileDetailsAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/base/src/main/java/io/xpipe/ext/base/browser/OpenNativeFileDetailsAction.java b/ext/base/src/main/java/io/xpipe/ext/base/browser/OpenNativeFileDetailsAction.java index 002ecdf01..222bc0d57 100644 --- a/ext/base/src/main/java/io/xpipe/ext/base/browser/OpenNativeFileDetailsAction.java +++ b/ext/base/src/main/java/io/xpipe/ext/base/browser/OpenNativeFileDetailsAction.java @@ -56,7 +56,10 @@ public class OpenNativeFileDetailsAction implements LeafAction { sc.osascriptCommand(String.format( """ set fileEntry to (POSIX file "%s") as text - tell application "Finder" to open information window of alias fileEntry + tell application "Finder" + activate + open information window of alias fileEntry + end tell """, localFile)) .execute();