Skip to content

Instantly share code, notes, and snippets.

View jonahgraham's full-sized avatar
💭
Away until 25 March

Jonah Graham jonahgraham

💭
Away until 25 March
View GitHub Profile
@jonahgraham
jonahgraham / autosave.py
Last active February 22, 2016 16:44 — forked from tracymiranda/autosave.py
This script runs with Eclipse EASE Jython engine.It autosaves the current editor every 30 seconds or when the editor is deactivated.
# Before running this script you will need to turn on the 'Allow Scripts to run code in UI thread'
# setting by checking the box under Window>Preferences>Scripting.
# To run you can right click on the file and select Run As>EASE Script.
# A save message is printed out in the Console view every time an editor is saved.
# To turn off the autosave just stop the script for example, by pressing the
# 'Terminate' red square button in the Eclipse Console view.
import time
loadModule("/System/Platform")
loadModule("/System/UI")