beforeRunningCommand saveActiveFile command #!/usr/bin/env ruby18 file = ENV["TM_FILEPATH"] target = file.sub(/\.less$/, ".css") system("lessc \"#{file}\" \"#{target}\"") puts "Compiled CSS to '#{target}'" input document inputFormat text keyEquivalent @b name Save to CSS outputCaret afterOutput outputFormat text outputLocation toolTip requiredCommands command lessc locations /opt/local/bin/lessc /usr/local/bin/lessc scope source.css.less uuid 78788223-5E5E-434E-98BE-17BCDF600611 version 2