2025-01-12 04:36:52 +08:00

12 lines
353 B
AppleScript

#!/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