12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/setec_astronomy/prompt.rb', line 12
def self._password_dialog_actionscript
<<-APPLESCRIPT.gsub(/^ */, '')
/usr/bin/osascript <<EOT
tell application "Finder"
activate
set output to text returned of ( \
display dialog "Enter your master password:" \
with title "KeePass Database Master Password" \
default answer "" \
with hidden answer \
with icon (path to "apps") as Unicode text & "Utilities:Keychain Access.app:Contents:Resources:Keychain.icns" as alias \
)
end tell
EOT
APPLESCRIPT
end
|