From e390094b87080133bb2133f79b60b01e5095ef35 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Sat, 1 Mar 2025 10:56:23 +0545 Subject: [PATCH] feat: improve browser URL capture scripts - Add tab functionality to move focus from address bar - Reduce delays from 0.1s to 0.05s for faster interaction --- VoiceInk/Resources/firefoxURL.scpt | 9 +++++---- VoiceInk/Resources/zenURL.scpt | 8 +++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/VoiceInk/Resources/firefoxURL.scpt b/VoiceInk/Resources/firefoxURL.scpt index 7e20b4a..3716a71 100644 --- a/VoiceInk/Resources/firefoxURL.scpt +++ b/VoiceInk/Resources/firefoxURL.scpt @@ -1,12 +1,13 @@ tell application "Firefox" activate - delay 0.1 + delay 0.05 tell application "System Events" keystroke "l" using command down - delay 0.1 + delay 0.05 keystroke "c" using command down - + delay 0.05 + keystroke tab end tell - delay 0.1 + delay 0.05 return (the clipboard as text) end tell diff --git a/VoiceInk/Resources/zenURL.scpt b/VoiceInk/Resources/zenURL.scpt index 1f92c49..16b4ef8 100644 --- a/VoiceInk/Resources/zenURL.scpt +++ b/VoiceInk/Resources/zenURL.scpt @@ -1,11 +1,13 @@ tell application "Zen Browser" activate - delay 0.1 + delay 0.05 tell application "System Events" keystroke "l" using command down - delay 0.1 + delay 0.05 keystroke "c" using command down + delay 0.05 + keystroke tab end tell - delay 0.1 + delay 0.05 return (the clipboard as text) end tell