Adium
Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
CurrentLocation

CurrentLocation

Submitted By Evan Coleman (fiftyfour123)

Description

Thanks to Dean Carlson for fixing the script!

this script determines your current location based on your ip address. It outputs your city followed by the region (state or province) and country.

to use type %_mylocation

Changes

Bug fixes

Comments

You can reply to individual comments by clicking the "Reply" link next to each.

# by fish3k1 on 04/13/08 at 15:40:18

Might help if you included instructions on this page for how to use the script

# by fiftyfour123 on 04/13/08 at 15:43:59

oops, its there now, sorry about that

# by tombrunois on 04/14/08 at 19:18:46

cool

# by alatorre on 08/28/08 at 14:22:36

When I run the script it tells me " , "... (If I go directly to the page http://geotool.servehttp.com/ with my IP, it give's me my location), what would be wrong?

# by fiftyfour123 on 08/28/08 at 19:58:18

Yeah, i'm aware of the problem. I'v been really busy lately, but when i get around to it, i'll fix it. Just check back to see.

# by trevor.cortez on 09/06/08 at 21:05:30

I updated it to use a different server. Try this one http://www.box.net/shared/8e97pp16ks

# by alatorre on 09/09/08 at 16:54:10

Thanks, it works great!!!

# by alatorre on 09/10/08 at 13:06:14

Hello Trevor

Well, it worked great inside the AppleScript Editor, but when I try to run it on the messagewindow of Adium (or the status message) as %_mylocation, it goes blank and no answer at all, the Adium I'm using is X 1.3 and tried to figure it out how to fix it but no luck, do you have any hint?

# by trevor.cortez on 10/03/08 at 20:11:36

No I am having the same problem. It used to work for me though. I'm not really sure what's going on.
I'll look into it more when I get a chance and let you know.

# by fekaylius on 10/08/08 at 18:34:21

it looks like geotool.servehttp.com got tired of the curl requests, or maybe it was an accident, but simply spoofing an actual browser with curl fixes this addon.

the line will look like this
set theSite to paragraphs of (do shell script "curl -A 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)' 'http://geotool.servehttp.com/?ip=" & theIP & "'")
or whatever agent you want

if it's helpful, i could upload an updated copy??

# by fiftyfour123 on 10/08/08 at 19:02:24

yeah, that would be great. zip it and email it to me. My email is in my profile. And i'll be sure to give you credit in the description.

# by fekaylius on 10/08/08 at 19:15:09

ha, actually, it was working fine with that change in script editor, but (there is always a but) i can't make it work inside adium (in a conversation, or in the status), still fiddling around a little,

# by fiftyfour123 on 10/08/08 at 19:16:24

i have time tomorrow to work on it, so if you haven't found anything by then, i'll see what i can do.

# by bittin on 10/15/08 at 03:31:18

Can be great if i got lost somewhere :D

# by Wizardling on 01/15/09 at 20:43:52

Returns "Auckland, Auckland" for me which, aside from being the wrong city, is the same city repeated twice - odd. Clearly a script that needs some work, but would be cool if it worked.

# by daemons on 01/06/11 at 18:04:28

hi, well,actually this is a vwery interesting and sometimes usefull script, but can wy use this on personal messages? or can i somehow do it to show up in personal message my place,when aium starts up?

# by fiftyfour123 on 01/06/11 at 19:33:03

I'm not quite sure what you're asking. To use this, just type %_mylocation into a status message, conversation, or profile.

# by daemons on 01/06/11 at 19:40:10

oh, okay :), i thought, it will work only in conversation windows...anyway, it dont work in status message..i show just %_mylocation , what i type in...

# by fiftyfour123 on 01/06/11 at 19:45:54

I'm not quite sure why it doesn't work. Maybe it's a bug in Adium?

# by daemons on 01/06/11 at 19:46:12

okay, i found what was the problem, one space more..but anyway, show up like im 300 hundreed km away, not exactly what i looking for...but dig in deeper..

# by fiftyfour123 on 01/06/11 at 19:51:25

Unfortunately, there's nothing I can do about that. It gets your location from your IP address, which isn't always that accurate.

# by daemons on 01/06/11 at 20:52:42

of course, i know, it is a good plugin, i like, it ,just think how to improve detailed check..

# by dtcarls on 06/28/11 at 14:39:04

Updated version. Email with script sent to script maintainer but not updated on here yet. Shows City, State, Country.

Hosted here: http://deantcarlson.com/wp-content/up...cation2.zip

Also http://www.adiumxtras.com/index.php?a...tra_id=8045 once it is approved by the admins.

Post a New Comment

You must be logged in to post comments.

Install | Download
7.25kb (1140 downloads)

12345
3.60 / 17 votes
Current Version: 1.3
Last Updated: 07/25/11