click on Safari Internet link to trigger AppleScript

Hi,

I am new to this forum and new to Applescript.

I would like to write a script that is triggered every time I click on an Internet link in Safari. The script would then analyze the link and store it, if certain criteria were met. The script should give back to Safari afterwards, which would execute the link.

However, my problem right now is to implement the trigger mechanism. How can I have Safari call the Applescript?

Any help would be highly appreciated.

Best regards

Ludwig

Well I’m sorry to bring you the sad news but it isn’t possible (yet) in Applescript to build your own event listeners inside another application.

Have a look:

http://applescript.tv/linktrigger/

Peter B.


Dear all,

thank you very much for the thoughts. Peter, your link is great. That might help me to find a solution. I will need some days for experimenting…

regards

Ludwig