AppleScript Package Tracking

Is it possible for applescripts to track packages? Maybe use crontab to run the script every minute and if an update has occurred, have it speak the updated status of the package.

Any ideas?

Elijah

Hello

Maybe I could help you if you were a little bit more specific.

Best Regards

McUsr

Thanks!

What do you mean?

Hello

Well, from where do you get your package tracking info if you do it manually for instance?
Stuff like that; how do you do it manually?

So I have a pretty big ichat AppleScript. So basically I want to do something like this:

Send: track 74976326492 (tracking number)
Response: currently tracking 74976326492.

Send: current track
Response: sends back all packages being tracked

Then i want it to update me via email when the status changes.

Also, I want it to accept ups, usps, fedex, ect.

Thanks,
Elijah

Just cURL the tracking page and extract info.

Hello

Where is, and how do you get access to the various? tracking pages?

Best Regards

McUsr

Well, like Dylan said, we can curl the webpage and extract the info. I think you can do somthing like this:
www.ups.com/trackingnumber

then once that page loads, extract the info and print it out to thrBuddy in iChat. Then use cron to run it every minute and check for changes.

I’m not sure how it could check for changes so can someone help with that?

Thanks,
Elijah

I must think a little bit.

You have to somewhat supply a tracking number so that you have something to look for.

And there is some issues if there is a https: connection, which I believe it is.
You’d have to javascript the browser after opening the url to the page.

Save the source of the result to someplace on your disk.

Then find the contents you are looking for.

By the way, have you seen the UPS widget? It was free for download. Could that help you solve your problem?
Have you tried it? One could use the contents of the widget for making ones own tracker.

As I don’t have any packets sent with UPS, nor will in the foreseeable future, I’ll leave it up to you to find out what that
widget do.

Best Regards

McUser