Skip to content

Instantly share code, notes, and snippets.

@tofias
tofias / getDate.scpt
Created September 17, 2014 22:51
Get date the easy way with AppleScript
-- Get date the easy way with AppleScript
set theDate to do shell script "date +'%Y-%m-%d'" as string
@tofias
tofias / applescript.py
Last active October 12, 2018 03:10
applescript.py
#!/usr/bin/python
# applescript.py v. 2014-09-18
# based on applescript.py by Dr. Drang
# http://www.leancrew.com/all-this/2013/03/combining-python-and-applescript
import subprocess
def asrun(ascript):