Skip to content

Commit

Permalink
modified: README.md
Browse files Browse the repository at this point in the history
	modified:   TodayScripts.h
	modified:   TodayScripts.m
  • Loading branch information
SamRothCA committed Oct 29, 2014
1 parent 304966b commit a4996bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#Today Scripts

A widget for running scripts in the Today View in OS X Yosemite's Notification Center.

##Features

* [Colorized Output](http://i.imgur.com/Yvj2ePG.png). Today Scripts supports colorized terminal output from your scripts, as well as bold and underline.
* [Custom Labels](http://i.imgur.com/WJPWQN7.png). Today Scripts has a form for setting up scripts, which gives you the option of picking a label to display instead of the script itself.
* Custom Interpreters: When setting up a script, you may specify any program to run in place of your shell. This means you can directly run scripts in Python, Perl, AppleScript, etcetera, simply by specifying their associated interpreter.
* Manually Run Scripts: Scripts may be run on command by clicking on their label. You may also specify that scripts not be run automatically when Notification Center is opened.
* Output text selection: You may highlight the output of your scripts, allowing you to copy it to the clipboard or drag it where you please.

##Usage

After building, simply copy "Today Scripts.app" wherever you'd like to store it, then open it. In Notification Center, you will see "1 New" appear on the edit button, and you may use that to add Today Scripts to your Tdoay View in order to begin using it.

To begin editing your list of scripts, click the "Info" symbol in the title of the widget.

To run a script on command, click its label in your list.

To edit an existing script, click the "action" button to the right of its label.

##Technical Details

* An interpreter can be speficied using a path to any valid executable (it need not be an "interpreter" at all). The provided script is piped to the interpreter via its standard input.
* Today Scripts emulates a 40-column terminal. When running a script, a pseudo-TTY is opened for it, and the standard output and standard error of it is set to that. The `COLUMNS` environment variable for scripts is set to `40`, and `PAGER` is set to `/bin/cat`.
* Today Scripts supports all ANSI color sequences; both standard and bright, as well as both foreground and background. The `TERM` environment variable for scripts is set to `ansi`.
4 changes: 2 additions & 2 deletions TodayScripts.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// XPCHelper.h
// xpc
// TodayScripts.m
// Today Scripts
//
// Created by Sam Rothenberg on 8/10/14.
// Copyright (c) 2014 Sam Rothenberg. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion TodayScripts.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ScriptsArray.m
// TodayScripts.m
// Today Scripts
//
// Created by Sam Rothenberg on 8/14/14.
Expand Down

0 comments on commit a4996bd

Please sign in to comment.