Commit Graph

14 Commits

Author SHA1 Message Date
Bill Ferguson
f550822943 Added require "official/yield" to scripts that use dt.control.execute() so that they work correctly if you haven't required official/yield somewhere else. 2016-10-21 13:25:40 -04:00
Bill Ferguson
549e9ccd0b Changed fileMove per discussion to use os.rename first, os.execute(mv... second, and a lua solution third. The lua solution includes fileCopy with attempts os.execute(cp... first, then does a pure lua copy if that doesn't succeed 2016-08-31 20:18:29 -04:00
Bill Ferguson
21f31b403b Recoded fileMove to use os.execute and the system mv command. Removed fileCopy as it was no longer needed. 2016-08-25 22:49:59 -04:00
Bill Ferguson
95e15fc40c Changed poorly translated message to that suggested by supertobi, and took care of spacing issue. 2016-08-23 21:13:11 -04:00
Bill Ferguson
74e546c2ce Added fileCopy and fileMove functions to replace os.rename which doesn't work across filesystems. Added an error message if the move isn't accomplished so that the user knows what happened. Updated translations to reflect changes. 2016-08-23 00:09:27 -04:00
Jérémy Rosen
783194e253 update to newest API change in master 2016-04-17 20:46:32 +02:00
Bill Ferguson
457731700c gimp doesn't like filenames with spaces in them, so added sanitize_filename to escape them. Updated gimp.po to reflect the changed line numbers. 2016-04-16 21:44:24 -04:00
Bill Ferguson
3dcb08cca3 Replaced checkIfFileExists with supertobi's fix and capitalized GIMP in gimp.po where I missed it. 2016-04-16 21:10:58 -04:00
Bill Ferguson
623b506691 Added check to see if the export would overwrite an existing file. If it would, the filename was incremented with _XX where XX was an increment starting at 01 and ending at 99. gimp.po line numbers adjusted to reflect the changes in code. 2016-04-15 23:58:33 -04:00
Bill Ferguson
6e5dbc0b83 Incorporated supertobi's suggestions. Replaced file and path splitting code with a regular expression (thanks Tobias Jakobs) to ensure filenames were handled correctly. Used the image data in the image table pairs instead of darktable.gui.action_images to ensure there were no mismatches as well as clean up the code nicely. Updated gimp.po to reflect the line number changes due to code refactoring. 2016-04-15 00:38:00 -04:00
Bill Ferguson
9693b017c4 Changed back to string.format in show_status but coded it correctly this time. 2016-04-10 16:27:49 -04:00
Bill Ferguson
8224913b01 replaced string.format in show_status with the string and concatenation since string.format was having problems with the arguments. 2016-04-09 01:37:54 -04:00
Bill Ferguson
4556c9a055 Incorporated comments from supertobi, marking string for translation on line 128 and expanding variable names for lines 157-165 2016-04-07 11:59:41 -04:00
Bill Ferguson
679ce8b6ab Created gimp.lua to export an image to gimp for editing, then return the result and group it with the original image 2016-04-06 22:21:13 -04:00