I was able to solve the problem by changing the line;

tell application "AppleScript Utility" to set hookedWebsites to every bookmark whose address contains "http"

to

tell application "Hookmark" to set hookedWebsites to every bookmark whose address contains "http"

Best regards,
Franklin