Skip to content

Commit 98dbc05

Browse files
fix(open-dialog): use template variables
1 parent 8433289 commit 98dbc05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

open-dialog/osascript.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ mp.add_key_binding('Ctrl+F', 'open-url', OSAScript {
8686
template = [[
8787
try
8888
return text returned of ( ¬
89-
display dialog "Enter the URL to open:" ¬
90-
with title "Open URL" default answer "" ¬
91-
buttons {"Cancel", "OK"} default button 2)
89+
display dialog %q ¬
90+
with title %q default answer "" ¬
91+
buttons {"Cancel", "OK"} default button 2)
9292
on error number -128
9393
return ""
9494
end try

0 commit comments

Comments
 (0)