File: mac-askpass

package info (click to toggle)
r-cran-openssl 1.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,136 kB
  • sloc: ansic: 2,033; sh: 19; makefile: 5
file content (11 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/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