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

This commit is contained in:
Beingpax 2025-03-01 10:56:23 +05:45
parent b4bae15bf0
commit e390094b87
2 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -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