CurrentLocation |
|
Submitted By Evan Coleman (fiftyfour123) |
DescriptionThanks 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 ChangesBug fixesCommentsYou can reply to individual comments by clicking the "Reply" link next to each. # by alatorre on 08/28/08 at 17:22:36When 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 22:58:18Yeah, 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/07/08 at 00:05:30I updated it to use a different server. Try this one http://www.box.net/shared/8e97pp16ks
# by alatorre on 09/10/08 at 16:06:14Hello 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 23:11:36No 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 21:34:21it 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 22:02:24yeah, 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 22:15:09ha, 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 22:16:24i have time tomorrow to work on it, so if you haven't found anything by then, i'll see what i can do.
# by Wizardling on 01/16/09 at 00:43:52Returns "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 22:04:28hi, 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 23:33:03I'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 23:40:10oh, 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 23:45:54I'm not quite sure why it doesn't work. Maybe it's a bug in Adium?
# by daemons on 01/06/11 at 23:46:12okay, 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 23:51:25Unfortunately, there's nothing I can do about that. It gets your location from your IP address, which isn't always that accurate.
# by dtcarls on 06/28/11 at 17:39:04Updated 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 CommentYou must be logged in to post comments. |
# by fish3k1 on 04/13/08 at 18:40:18
# by fiftyfour123 on 04/13/08 at 18:43:59