Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Sherlock plug-in URL verification; AppleScript?

Sherlock plug-in URL verification; AppleScript?
Thread Tools
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Jan 5, 2002, 11:29 PM
Okay, so i'm getting tired of Sherlock's generalized "Network Error" dialog bitching about one of my many internet search site plug-ins failing. Sherlock doesn't tell you which plug-in failed (what's with that any way?... protecting the names of the innocent or something?) It's a pain in the rear to disable the plug-in's and, by a process of trial and error elimination, figure out which plug-in is no longer working. If there's a way to verify Sherlock plug-ins, i'd sure love to know about it.

But i'm thinking there isn't a way, so i decided to write an AppleScript to verify each plug-in. I've got the script scanning plug-ins and isolating the URL Sherlock is trying to connect to, but i'm having trouble verifying the URL. I can think of some inelegant ways to do so with app's like web browsers, Fetch, Anarchie, etc. But i'd like my script to run on any Macintosh without any third party app's or OSAXen.

So how to verify a URL? The best i can come up with is to use Apple's "URL Access Scripting" app to download the page at the other end of the URL, trash it, and move on. But i may not be able to detect "404 page not found" errors and the like as the server is likely to return something which looks like a file (even if it is dynamically generated). What i'd like to be able to do is capture error codes like a 404 error. Anyone with experience doing this from AppleScript, or any ideas on other approaches?

I'm going to try playing with scripting Sherlock a bit to see if i'm overlooking an obvious solution in that direction.

Thanks in advance for any helpful suggestions.

[ 01-05-2002: Message edited by: Rainy Day ]
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 04:11 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2