click on Safari Internet link to trigger Applescript

Ludwig

Registered
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
 
This can't be done with mere AppleScript. You would need to write a Safari extension or SIMBL plugin or something like that with XCode.

The best you could do with AppleScript would be to have it periodically check the URLs you have open and then operate on them. It wouldn't be able to intercept anything, though, just passively view it, and do something with it after the fact.
 
Back
Top