Hi guys. Is there a way (see subject)?
I’m on OSX and I tried with AppleScript. osascript works decently
from within plugins, however the following
def move_window():
os.system('osascript -e ‘tell app “System Events” to tell application process “Sublime Text 2”’ -e 'set position of window 1 to ’ + ‘{20,20}’ + ’ ’ -e ‘end tell’ ')
gives me a spinning beachball for a second or so and then nothing.
Anyone knows why this script does not work?
Anyone has an alternative solution?
Thanks
Piero