I've got the following AppleScript that displays a notification once a download has been added:
set yourpath to (the clipboard) as POSIX file set a to do shell script "basename " & quoted form of POSIX path of yourpath display notification a with title "Added Download"
It works pretty well, except when the url being downloaded has a filename with html entities. Here's an example of a URL:
So with my AppleScript I get the following inside the notification:
I'm trying to get:
[EBOOKS]Ebook Title - Ebook Author Name.pdf