With PyMouse this would never have happened. Don't risk your date, get PyMouse right now at its GitHub page!
All that it takes to wiggle your pointer with PyMouse is this:
from pymouse import PyMouse
from time import sleep
from random import randint
m = PyMouse()
w, h = m.screen_size()
while True:
try:
m.move(randint(0, w), randint(0, h))
sleep(20)
except KeyboardInterrupt:
print "Goodby!"
break
As a web developer I have like 5 browsers installed which I use regularly. That is, not on daily basis, but for occasional testing and browsing.
What annoys me most about this is that when I click a link in another application, no matter what browser I'm currently running, it opens a fresh Safari window.
The ideal solution would be to open any urls with the browser I'm using at that moment, no mater which browser that is and which one is set as the default browser.
I have written a piece of Applescript that will do just this, you might need to edit this for the browsers which you are using though.
Below you'll find a zip file containing the app bundle, and all the scripts needed to generate it yourself.
Copy this file to the Applescript editor and hit Save, before you save, choose to save as an app bundle and make sure to check the "Stay Open" box.
Now we need to modify the app bundle to make it eligible for url opening. To do this, right-click on the app and select "Show Package Contents", go to "Contents" and open "Info.plist".
Edit "Info.plist" to contain this xml code within the outer dict element. For an example, download the app bundle above.




