dergachev / copy-public-url

A Folder Action Script that copies to clipboard the public URL of any newly created file inside of a public folder in Dropbox or Google Drive
26 stars 3 forks source link

Clickable Growl notifications #5

Open dergachev opened 11 years ago

dergachev commented 11 years ago

It would be nice if clicking on the Growl notification showed the file in Finder, or maybe open it in Preview.app for annotations.

It's not clear if growl supports applescript-driven clickable notifications, but worth looking into.

Relevant: http://growl.info/documentation/applescript-support.php

dergachev commented 11 years ago

It doesn't seem that growl supports Apple Script click handling: https://groups.google.com/forum/?fromgroups=#!topic/growldiscuss/kYFqJ1xIrME

Maybe the new version (1.4??) of growl comes with a grownotify that can give feedback, but that's unlikely.

Hopefully another method exists. Perhaps some way to work with GNTP from Apple Scripts? http://growl.info/documentation/developer/gntp.php#urlcallbacks

Also consider that mountain lion features the growl-killing Notification Center. For info on integration: http://apple.stackexchange.com/questions/57412/how-can-i-trigger-a-notification-center-notification-from-an-applescript-or-shel

dergachev commented 11 years ago

As per #7, the terminal-notifier app supports all kinds of click handling. Should really move to that.

E.g.:

~/Downloads/terminal-notifier_1.4.2$ ./terminal-notifier.app/Contents/MacOS/terminal-notifier \ 
-message "Hello, this is my message" \
-title "Message Title" \
-execute "open -a Preview.app ~/Dropbox/Public/screenshots/AJPWJD-Screen_Shot_2012.12.10-16.18.45.png"