Skip to content

Instantly share code, notes, and snippets.

@SKaplanOfficial
Last active November 12, 2022 08:11
Show Gist options
  • Save SKaplanOfficial/d6930256b9c128ac714d13969effad30 to your computer and use it in GitHub Desktop.
Save SKaplanOfficial/d6930256b9c128ac714d13969effad30 to your computer and use it in GitHub Desktop.
Save all currently open TextEdit documents with PyXA
# Tested with PyXA 0.1.0
import PyXA
app = PyXA.Application("TextEdit")
for doc in app.documents():
doc.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment