1.2.0 • Published 8 years ago

node-apple-script v1.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

#Node Apple Script

Node Apple Script is what it says it is, nothing less. It lets you execute Apple commands, using Javascript functions.

NPM #Installation

npm install --save node-apple-script

#Usage

OptionDescription
lightsUpIncrement Brightness
lightsDownDecrement Brightness
highlightPreviousEquivalent to ⌘ + arrow up
densityDownDecrement Screen Density
densityUpIncrement Screen Density
launchPadRedirects you to launchPad
splitScreenShows active sessions
spreadScreenSpreads active sessions
closeWindowCloses the current window
closeEverythingClose the current program
newTabCreates a new tab in terminal
newWindowCreates a new window in terminal
splitTabsSplits terminal window into smaller ones
searchSearch for something in the terminal
clearclear current terminal text
pastePaste current text into terminal
hideHides terminal session
zoomMakes terminal window bigger
configDisplays the current settings
minimizeMakes terminal window smaller
shutDownShuts down the computer
screenshotTakes a screenshot
muteMutes volume
volumeUpSets the volume up

#Example

const lightsUp = require('node-apple-script').lightsUp

lightsUp()

#License

The MIT License (MIT) Copyright (c) 2016 Even Stensberg @ev1stensberg

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.