Maus Zeiger in AppleScript via Python bewegen
by hubi on 18/09/2009 Von hinten durch AppleScript, via Python in das Cocoa-Framework ;-) Eine alltagstaugliche Alternative findest Du hier.
Code zum markieren einmal anklicken oder Code im Skript-Editor öffnen
do shell script "python -c \"import objc;bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework');objc.loadBundleFunctions(bndl, globals(), [('CGWarpMouseCursorPosition', 'v{CGPoint=ff}')]);CGWarpMouseCursorPosition((0, 0));\""
There are 8 comments in this article: