Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skratchdot/open-scala

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
https://github.com/skratchdot/open-scala

Last synced: about 1 month ago
JSON representation

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.

Awesome Lists containing this project

README

        

# open

## Description ##

Open a file, directory, or URI using the OS's default application for
that object type. Optionally, you can specify an application to use.

This is a proxy for the following commands:

OSX: "open"
Windows: "start"
Linux/Other: "xdg-open"

This is a scala port of the node.js module:
https://github.com/pwnall/node-open

## Import ##

import com.skratchdot.open

## Usage ##

### open google.com in the user's default browser:

open.start("https://google.com/")

### you can specify the program to use:

open.start("https://google.com/", "firefox")

## License ##

Copyright (c) 2013 skratchdot
Licensed under the MIT license.