aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/askForPass.sh
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
committerstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
commitfab9a6506cd04ec8f840c98772a80c44a79c74a7 (patch)
tree3cd483487bef381c934717f10df71d306c7eaf97 /Resources/askForPass.sh
parent4c3b208fad0572d8d1a79bba1bd1b8147fd0f8a6 (diff)
downloadsequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.gz
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.bz2
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.zip
MERGED r262:266 from branches/stuart02 to trunk to include new project structure.
Diffstat (limited to 'Resources/askForPass.sh')
-rwxr-xr-xResources/askForPass.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/Resources/askForPass.sh b/Resources/askForPass.sh
new file mode 100755
index 00000000..9dc68933
--- /dev/null
+++ b/Resources/askForPass.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+PF=$*
+UUID=`uuidgen`
+mkfifo /tmp/$UUID
+SCRIPT=`echo tell application \"Sequel Pro\" to authenticate tunnel \"$TUNNEL_NAME\" query phrase \"$PF\" fifo \"/tmp/$UUID\"`
+echo $SCRIPT > /tmp/test
+#PASS=`osascript -e "$SCRIPT"`;
+osascript -e "$SCRIPT" > /dev/null 2>&1
+#echo $PASS;
+PASS=`cat /tmp/$UUID`
+echo $PASS
+rm -f /tmp/$UUID \ No newline at end of file