dimanche 25 janvier 2015

Apple Script notification bubble - quick reply style prompt


I know that you can trigger a notification using Apple Script:



osascript -e 'display notification "Hello" with title "How are you feeling?"'


However, I also want to be able to prompt for certain values in the style of iMessages reply-from-notification-popup.


For example, I want to be able to do this from shell script:



ANS=$(osascript -e 'display notification "Hello" with title "How are you feeling?"' with prompt)
echo "User is feeling $ANS"


Is this possible at all?





Aucun commentaire:

Enregistrer un commentaire