12 lines
353 B
Plaintext
Raw Normal View History

2025-01-12 00:52:51 +08:00
#!/usr/bin/env osascript
# This only works on MacOS!
on run argv
set args to argv as text
set frontmost_application to name of (info for (path to frontmost application))
tell application frontmost_application
display dialog args with icon note default button "OK" default answer "" with hidden answer
return result's text returned
end tell
end run