Skip to content

Latest commit

 

History

History
85 lines (72 loc) · 3.05 KB

File metadata and controls

85 lines (72 loc) · 3.05 KB
layout main
description Script your life with BushelScript

BushelScript

A macOS scripting language with unparalleled connective power


``` require app Mail tell Core to ask "Please enter a subject:" tell Mail to make new outgoing message with properties {subject: that} ```
``` require library Shell let 1 MiB be pow 2 to the 20 tell Shell to export 1 MiB to "size" #!bash mdfind -onlyin ~ "kMDItemPhysicalSize > $size" | wc -l | ruby -pe '$_.strip!' #! "Your home folder has " & that & " items at least 1 MiB in size." ```
``` require library Shell require app Music tell Shell to export (get name of every track of Music) to "track_names" #!ruby print ENV['track_names'] .split(ENV['BUSHEL_LIST_DELIMITER']) .filter {|item| item =~ /Love/i } .join("\n") ```
<script src="code-showcase.js"></script>

Script your life with

Native AppleEvent support: Never write another line of AppleScript.
Shell integration: Jump between different shells and interpreters at will.
Syntactic flexibility: Write your code in your native language. (Coming soon)
Continuous, open development: Striving for transparency and valuing feedback.


Design of BushelScript