Author Topic: [Lua] help with execute command on Windows  (Read 3127 times)

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
[Lua] help with execute command on Windows
« on: March 17, 2014, 08:29:40 PM »
Hi everybody,

I'm learning Lua coding, especially Lightroom Lua.

I've made a command which works on mac, but doesn't work on windows.

Code: [Select]
--pluginPath = path of the plugin like ~/plugin.lrplugin/
-- filePath = path of the image like ~/image.cr2
-- filePath = path of output command like ~/image.txt

local binExe = 'start ' .. pluginPath .. '\\bin\\convert.exe'
if MAC_ENV then
-- exec path for Mac (& force language to english; seem to be unnecessary LANG=C LC_ALL=C LANGUAGE=en)
binExe = 'exec "' .. pluginPath .. '/bin/convert" '
end
command = binExe .. '"' .. filePath .. '" > "' .. output .. '"'

result = LrTasks.execute(command)


Does anyone have the solution for fix that ?

When you or me will solve this problem, be sure you'll happy :)
Enjoy
Tof

dmilligan

  • Developer
  • Hero Member
  • *****
  • Posts: 3218
  • 60Da / 1100D / EOSM

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
Re: [Lua] help with execute command on Windows
« Reply #2 on: March 17, 2014, 10:13:09 PM »
thanks dmilligan, I don't think to report it on adobe!

To follow http://forums.adobe.com/message/6217975