You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#MenuTitle: Save & Export# -*- coding: utf-8 -*-#https://github.com/cenkdominic/glyphsapp-save-and-exportimport GlyphsAppfrom subprocess import Popen, PIPEdef runAppleScript(scpt, args=[]): p = Popen(['osascript', '-'] + args, stdin=PIPE, stdout=PIPE, stderr=PIPE) stdout, stderr = p.communicate(scpt) if stderr: print "AppleScript Error:" print stderr.decode('utf-8') return stdoutsaveexport = """tell application "System Events" keystroke "s" using {command down} keystroke "e" using {command down} keystroke return #uncomment this next line to switch to the last used Application after exporting. It does this by simulating command-tab #key code 48 using {command down}end tell"""save = runAppleScript( saveexport )