Modules

app.screens Screen querying module
app.Window An OpenGL Window.

Functions

clipboard([data]) Copy and paste data from the clipboard
openpanel(dir) Open an open file panel
openurl(url) Open a URL in the default web browser
quit() Call quit on the application
savepanel(dir) Open an save file panel

Functions

clipboard([data])

If a data argument is given, clipboard will paste it to the clipboard, otherwise, it will copy whatever data is on the clipboard and return it.

Parameters:

[data] Optional data to past

Return:

  • The data on the clipboard
openpanel(dir)

Open an open file panel

Parameters:

dir The directory to start from

Return:

  • The file or files selected (string or table) if any
openurl(url)

Open a URL in the default web browser

Parameters:

url The URL top open
quit()

Call quit on the application

savepanel(dir)

Open an save file panel

Parameters:

dir The directory to start from

Return:

  • The file saved if any