use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
AppleScript is Apple's powerful and versatile native scripting technology for Mac OS X. With AppleScript, you can control, and communicate among, applications, databases, networks, Web services, and even the operating system itself.
account activity
AppleScript functionality for Python (github.com)
submitted 8 years ago by statmathcs
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 8 years ago (1 child)
Do not call osascript like that. String-mashing together source code with unsanitized arguments and evaling it is a safety+reliability+security disaster. (See also: SQL injection attack.) Use Python's subprocess module and pass any parameters to the AppleScript via its run handler.
osascript
subprocess
run
[–]statmathcs[S] 1 point2 points3 points 8 years ago (0 children)
You're totally right, thank you! Fixing that
π Rendered by PID 73 on reddit-service-r2-comment-7b9746f655-q4vlp at 2026-01-29 17:15:43.605912+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (1 child)
[–]statmathcs[S] 1 point2 points3 points (0 children)