Quick painkiller for AppleScript,

If you write a little AppleScript command to launch a terminal softwares over the graphical interface. For example like that:

set cmd to “/usr/bin/some_script.sh”
do shell script cmd

Don’t forget to write the complete absolute path to your software !


Quickly made gui for C*mus-remote on OSX

There’s some sample of AppleScript code that summon cmus-remote to make a working gui interface to control cmus.

— Toggle pause/play:

set cmuscmd to "/usr/local/bin/cmus-remote "
do shell script cmuscmd & "--pause"

Continue reading