luadocs/content/lua.scripts.manual/scripts/examples/multi_os.md
Bill Ferguson b69d752221 [lua scripts] created manual from script comments
[lua scripts api] created manual from embedded library documentation

[lua api] created stub to contain lua api manual
2020-12-12 15:14:19 -05:00

1.3 KiB

title id weight draft author
name name 70 false people

Name

multi_os.lua - an example script that runs on linux, MacOS, and Windows.

Description

multi_os is an example of how to write a script that will run on different operating systems. It uses the lua-scripts libraries to lessen the amount of code that needs to be written, as well as gaining access to tested cross-platform routines. This script also performs a function that some may find useful. It creates a button in the lighttable selected images module that extracts the embedded jpeg image from a raw file, then imports it and groups it with the raw file. A keyboard shortcut is also created. A key combination can be assigned to the shortcut in the lua preferences and then the action can be invoked by hovering over the image and pressing the key combination.

Usage

  • require this script from your main lua file
  • start darktable, open prefreences, go to lua options and update the executable location if you are running Windows or MacOS, then restart darktable.
  • select an image or images
  • click the button to extract the jpeg

Additional Software Required

Limitations

Author

Bill Ferguson - wpferguson@gmail.com

Change Log