How to pass AppleScripts display dialog to Growl or growlnotify?
Posted
by
pattulus
on Super User
See other posts from Super User
or by pattulus
Published on 2012-05-30T17:07:33Z
Indexed on
2012/05/31
10:44 UTC
Read the original article
Hit count: 273
I have this simple AppleScript which takes the text in the clipboard and outputs the amount of words and characters used.
What I'm trying to do is passing "display dialog" to Growl or growlnotify. I know how to use growlnotify in the shell - it's great and highly customizable (stick note, assign app icon or an image, etc) - but the point is: I don't know how to do it in AppleScript. I google a bit but now time has passed and I decided to post my question here.
So, here's the script:
set myCount to count (the clipboard)
set myWords to count words of (the clipboard)
set myParas to count paragraphs of (the clipboard)
display dialog "Characters: " & myCount & "
Words: " & myWords & "
Paragraphs: " & myParas
Thanks.
© Super User or respective owner