Skip to content

aconchillo/gas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gas

gas is a tool that allows writing Mac Scripting applications with GuileScript.

This project is in a very primitive state since it depends on GuileScript which is totally a work-in-progress. I actually started GuileScript in order to be able to create gas after seeing obb, a very cool ClojureScript project.

./gas.gif

Installation

You can clone the repo and run:

$ make install

But it’s probably better if you install it through Guile Homebrew:

$ brew install aconchillo/guile/gas

Examples

There’s only a couple of examples right now, you can try:

$ gas examples/choices.gs

Running things from the command line

It is also possible to evaluate simple code from the command line. For example, you can play and pause your Spotify app with this:

$ gas -e '(js-invoke (Application "Spotify") playpause)

Creating a macOS app

Another sweet thing you can do is create a macOS app:

$ gas -a Choices.app examples/choices.gs

./gas-app.gif