LrTasks.execute problem on windows

Hi everybody,
I wrote a script to convert image after export. It works very well on Mac, but I can't run the same function on Windows.
This is the part of the wrong code:
-- pluginPath = path of the plugin like ~/plugin.lrplugin/
-- filePath = path of the image like ~/image.cr2
-- output = path of output command like ~/image.txt
local binExe = 'start ' .. pluginPath .. '\\bin\\convert.exe' -- not working
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)
I tried a lot of combination with simple or double quote but nothing!
I hope you can help me to solve it!
Many thanks
Tof

Hi Rob,
I encountered some problem on my v2. It's seem come with the require of my custom functions.
Could you test it please ?
https://bitbucket.org/kichetof/lr_cr2hdr/downloads/cr2hdr.2.0.zip
On my mac it works right!
Okay require fail... I put the function into the main file and a change basename with LeafName
this is the new version of the file https://bitbucket.org/kichetof/lr_cr2hdr/raw/c58124667af3989f1811cf48e50f6c4b2f2bedbf/MLEx portServiceProvider.lua
The v2.0.2 works now on windows   https://bitbucket.org/kichetof/lr_cr2hdr/downloads/cr2hdr.2.0.2.zip

Similar Messages

  • Request for Test on Mac: Wrapper function for LrTask.execute

    Hi,
    I've written some basic wrapper functions for LrTasks.execute to handle spaces. I've tested that stuff with windows xp and exiftool and would like to ask you to test it for mac os and perhaps win 7 with whatever command. Is that possible?
    http://www.daten-transport.de/?id=sZM3EuEEpwx7
    In the zip file you will find the basic classes and some description but no info.lua or a special test script (sry for that). You can call it like:
         local args = {"-@", inputFileName, imageFileName}
         local redirect = {}
         redirect.stdout = LrPathUtils.getStandardFilePath('temp') .. "exiftool.stdout"
         redirect.stderr = LrPathUtils.getStandardFilePath('temp') .. "exiftool.stderr"
         local result = LZA_System.execute(pathToExiftool, args, redirect)
         logger:info("result.formatedCmd: " .. tostring(result.formatedCmd))
         logger:info("result.returnCode: " .. tostring(result.returnCode))
         logger:info("result.success: " .. tostring(result.success))
         logger:info("result.stdout: " .. tostring(result.stdout))
         logger:info("result.stderr: " .. tostring(result.stderr))
    Example is not runable!
    Kind regards
    LZA

    Link did not work for me: http://www.daten-transport.de/?id=sZM3EuEEpwx7 - not sure the problem since i dont speak the language.
    But, I can tell you that you need an extra pair of quotes around the thing for windows that must be omitted on Mac.
    reference link - known to work on all versions of windows, plus mac - Although it has survived a few different executables so far, I had some issues executing dos batch files with it.
    PS - I plan to update the executeCommand method to separate stdout & stderr when appropriate - thanks for the idea.
    Rob

  • SHARING COMPATIBILITY PROBLEM IN WINDOWS 7

    HI
    we have an accounting software very old 2003 model, we use it only to review old database , this software use a share folder (company file folder) (we mapped to Z drive in all machine) it was located in windows server 2003, and every machine will pull the
    information for Z drive 
    I transferred this share folder from the windows server 2003 to windows 7 pro , and sharing exactly the same, with all permission given (everyone full control) and sharing permission as well, and the we face the following problems : 
    every windows xp client runs the application work perfectly without any problems.
    when you open that application for windows 7 machine, even the Z drive is accessible it will tell you the folder location cannot be found, but if you go to the Z drive, and you open that company folder exactly like if you are looking at the folder contents
    and keep windows file explorer open, then you open the client application at the same time will work perfectly ,
    if I close that folder window, I can keep using that software until I close it then cannot open again..
    so the application will only open when a specific folder is open
    if I map the Z drive on the same machine contain the file, it will work
    when I called someone knows about the software, he told they were doing something in windows registry to solve this but he don't remember what
     anyone can help ?

    Hi,
    Can you run the application without any problems in Safe Mode with networking? If it works, I suspect that the issue is caused by your security programs or firewall.
    You may also try running this program with compatibility mode by the steps below:
    1. Right click the program's shortcut or the executive file and then click Properties.
    2. On the Compatibility tab, check "Run this program in compatibility mode for".
    3. Select the Windows xp in the pull down list.
    In addition, you may take a look at the following article:
    Mapped Drive Connection to Network Share May Be Lost
    http://support.microsoft.com/kb/297684
    However, if the issue persists, please contact the application vendor and confirm whether there is any update for their product.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • AutoInstall problems in Windows XP SP3 + IE8

    I'm trying to autoinstall the JVM from a cab file using an OBJECT tag, but I have problems when I try in Windows XP SP3 + IE8.
    My code is the following:
    <OBJECT id="appletComprobarSoftware"
         classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA"
         codebase="http://java.sun.com/update/1.6.0/jinstall-6u15-windows-i586.cab">
    </OBJECT>
    If Java is already installed in the machine, the JVM installs correctly in the browser but, if it is not installed and it is downloaded, when the installation finishes, the browser turns into "no response" state and I must close it.
    So if I try to execute an applet, using the code below, and java is downloaded because it is not installed in the machine, the applet will never execute since after java installation the browser must be closed.
    <OBJECT id="appletComprobarSoftware"
              classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA"
              codebase="https://java.sun.com/update/1.6.0/jinstall-6u13-windows-i586.cab">
              <PARAM name="code" value="es.spee.arq.pub.firmadigital.DummyApplet.class">
              <PARAM name="archive" value="DummyApplet.jar">
    </OBJECT>
    I have tried with several java versions and the results are always the same, but the same code in Windows Vista or Windows 7 + IE8 works perfectly.
    Do you know what is the problem and how to solve it??
    Thank you very much.

    Problems with Windows XP SP3 in Boot Camp
    Boot Camp forums are here: http://discussions.apple.com/category.jspa?categoryID=237

  • LrTasks.execute not getting correct return code

    Hi all,
    I'm writing an Export Filter Provider that, in the postProcessRenderedPhotos function, calls an external Python script like this:
                exitStatus = LrTasks.execute(command)
                log:debug("Task returned, exit status is " .. exitStatus)
                if exitStatus ~= 0 then
    At the end of my Python script, I use
    sys.exit(0)
    and have verified that running of the script indeed returns 0 by running it in the shell and then checking the return code
    echo $?
    returns 0
    Whenever I run this script from my Export Plugin, I always get an exitStatus of 256.  Any ideas on what I'm doing wrong?  Thanks!

    I would first assure that in the Lightroom case as well, the script is executing up to the sys.exit statement as well - I suspect it is not (but don't really know...).
    I have called python scripts from plugins both successfully and unsuccessfully, although I can't be certain I've checked the actual return code from the sys.exit command.
    Consider trying an ultra-short script which writes to a file and exists with a code - make sure you can read the file in your plugin before assessing the return code.
    If still a problem, report as bug on Adobe feedback site of course:
    http://feedback.photoshop.com/photoshop_family/topics/new
    Rob

  • Installation problem on windows server 2008 r2 datacenter edition 64bit

    hi
    today, i tried to install the current maxdb 7.8 release on my virtual server with a windows server 2008 r2 datacenter 64bit edition os. at the first installation, i got an error message something with "rte runtime error". at this point, the installation stopped.
    because of this error, i tried to uninstall the failed installation. this was not possible, in the uninstaller, i didn't see any components, so i can't uninstall.
    so i tried to delete the files manually: the entries in the start menu, and the application's path under "program files"... first, i need to kill a process named "serv.exe", that creates a tcp daemon under port 7200... after killing it, the deletion of the dir in program files was successful.
    this is very very weird, now my server is "contaminated" with an uncomplete uninstallation of maxdb...
    why maxdb 7.8 has problems on windows server 2008 r2 datacenter 64bit edition???
    thanks for feedbacks!
    regards, jan

    > no, because i canceled this virtual server - another method to solve this problem. (i have really no time for things like that..!)
    If you take the time to give exact error messages then someone will be certainly able to help
    > on windows server 2003, there are NO problems.
    Windows 2003 != Windows 2008 - they use a different kernel, a different security system (UAC) and other features that may prevent a succesfull installation in the first place.
    I installed a MaxDB 7.8 just today on Windows 2008 R2 and it worked fine.
    Markus

  • Oracle database 11g release 2 installation problem on windows 7 (64-bit)

    First of all my windows is not genuine, but on my friend's desktop oracle download and installation  worked fine, he chose "create and configure database" options, and it works very well on his desktop, though his windows is also illegitimate. In my case, when I select "Create and configure database" option and pressed 'next",
    (Go to my blog to see it with snapshots: Computer Science: Oracle database 11g release 2 installation problem on windows 7 (64-bit))
    it asks to select class, I select "Desktop class" and pressed "next". The moment I pressed "next", the whole setup thing disappeared like it was never started. I searched for all possible reasons for why its not getting installed on my laptop, I used registry cleaner s/w,  deleted 25 GB of data to create free space if it were the problem, increased the virtual memory to increase the space for RAM, I did almost everything to get this setup working, but I found no success with the "Create and Configure database" option
    and
    then
    I chose a "database software only" option and chose to store in a folder w/o spaces. This way, I got database s/w only and then later I found "Database configuration Assistant (DBCA)"  from windows START button and clicked to create and configure database manually. The steps are pretty much interactive and doesn't involve much brainstorming.
    The values I filled for
    1) Global Database Name :  orcl
    2) System Identifier : orcl
    3) I chose common password for both SYS and SYSTEM
    4) while on Enterprise Manager Configuration step, It asked me to create and configure listener in oracle home, so for that too, I typed "netca" in windows START menu and clicked it. There I added a listener.
    5) I chose a Storage area which was the Oracle-home itself i.e. where our installation files goes , in my case it is : C:\oracle_base\product\11.2.0\dbhome_1\oradata
    6) Then after few more nitty-gritty clicks, we are set to go !
    Finally to write SQL code and to create your first TABLE , type "sqlplus" in windows "START" menu and click it when it appears. A command-prompt like window appears , which will ask you for username and password, so here they are :
    Username : sys/ as sysdba
    Password : (its the one you created in step 3 stated above )
    After this you are ready to write your first SQL command.

    Is this your solution to your original post at Oracle database 11g release 2 installation on windows 7 (64-bit) ?
    Pl be aware that you should not create any custom objects in SYS or SYSTEM schema - you should create any such objects in a separate custom schema.
    About Database Administrator Security and Privileges

  • Lightroom 3.2 Installation Problem on Windows 7 64-bit

    Lightroom 3.2 Installation Problem on Windows 7 64-bit
    I can't install Lightroom 3.2 (German) on my computer (Windows 7 Professional 64-bit).
    While copying the extracted program files the following error message appears:
    An error occurred during the installation of assembly component {6435B7C0-E0C8-3EA2-91AE-7640034EAFCE}. HRESULT: 0x80070002.
    I found out that other users had the same problem, and couldn't find a solution.
    Perhaps it is a Microsoft .NET Framework related problem. But after installing .NET Framework 4 nothing changed.
    Thanks for ideas to solve the problem.

    Thanks for your advice, Mr. McLion.
    I downloaded the 3.4.1 version and started the installation as administrator. Unfortunately the same error message occured again.
    Then I tried to install the 32-bit version (although I prefer a 64-bit program on a 64-bit operating system). A similar error message appeared at the same point of installation progress, but with another combination of numbers and letters in brackets.

  • Problem on Windows 7 Home Premium cant open program for using codes like visual studio 2012

    I have problem my windows 7 Home Premium because of visual studio 2012..I can't open even in several times, I don't know what happen, and sometime it is so low to process whenksn it to open my laptop..Why is that pleas do reply..ASAP! tha

    Hi,
    According to your description, it seems like VS itself problem, you can try to repair this program through Control Panel for test. If no use, it would be better to post your question at VS forum for further assistance.
    Contact VS forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Roger Lu
    TechNet Community Support

  • TS3918 I am experiencing this problem on Windows 7 64 bit.  Any suggestions would be appreciated.

    I am experiencing aniTunes reinstall problem on Windows 7 64 bit.    I have uninstalled the iTunes product and reinstalled 11.02 for windows 7 64 bit but can't get iTunes going again.  The first error message I get is: "The file "iTunes Libirary.itl" cannot be read because it was created by a newer version of iTunes".  The next error message I get is:  "There is a problem sending the command to the program."  Any suggestions on what to do next would be appreciated. ( I would have posted this in Windows area had I been given a choice.)

    I believe that message can sometimes be a sign of a corrupt library file, unless of course you've tried to downgrade to an older build of iTunes. Restore it as described in this post.
    tt2

  • CPU Overheating problem on Windows 8.1 Pro (installed with BootCamp)

    There is a really important overheating problem on windows 8.1 (installed with bootcamp) even i do nothing Cpu is 50-60-70 Celcius degrees. This is really annoying problem. Most of users necessarily need windows OS for using third part programs that doesnt exist on OS X platform. I think this problem is important and has to be fixed as soon as possible.
    My brand new Mac:
    MacBook Pro (Retina, 15-inch, Mid 2014)
    2,5 GHz Intel Core i7
    16 GB 1600 MHz DDR3

    I have the same problem on macbook pro retina 15 late 2013 - top configuration

  • Problem with windows and my monitor in after effects

    HI . before any thing excuse me for speeking english.
    i have a problem with windows in after effect in my monitor
    my monitor is 15.6 and resolution is 1366*768
    for example when i open interpret footage window i can't see that complete and amount of size window dont visible.
    Thanks.

    Your system doesn't meet the requirements and that is that. AE has required 900 pixel height ever since CS4. Other than changing your screen res or shuffling around windows there is nothing you can do.
    Mylenium

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

  • Problems with Windows XP SP3 in Boot Camp

    Hi,
    I have recently received a 21.5" iMac; it is the higher-end of the 21.5" standard configurations. The problems I am having, I believe, specifically relate to drivers.
    Firstly, I get no sound whatsoever in Windows XP SP3 (boot camp); I have tried removing and reinstalling the drivers from the Snow Leopard install disc, but no success. I have no yellow question marks in the device manager window, but the absence of audio still persists.
    Secondly, I cannot gain access to the special functions of the Apple wireless keyboard in Windows XP SP3 via Boot Camp. Again, I have tried reinstalling the drivers, but no success. I have read an Apple support document which states that the keys are only supported on late 2009 Macs; I own one of these Macs, so that cannot be the problem.

    Problems with Windows XP SP3 in Boot Camp
    Boot Camp forums are here: http://discussions.apple.com/category.jspa?categoryID=237

  • I am having a problem with Windows Fusion installed on a MacBook.

    I am having a problem with Windows Fusion installed on a MacBook OS 10.  When attempting to use a Browser, (either IE, or Chrome), under Windows Fusion, I cannot browse to ANY page except Gmail.com.
    I checked all security settings, and found no problem. Neither browser will allow me to do ANYTHING other than go to Gmail.com!!!
    I am not sure if I have some virus on my Windows side, because Google and Safari both work perfectly on my Apple side, just not when running Windows Fusion.
    Is there some setting I am missing, or do you think I have malware/virus issues?? My Internet connection is DEFINITELY working fine - I can send, receive, open, and close all my email on Gmail only, and can navigate freely on Gmail, but cannot get to any other site even hyperlinked to Gmail.
    Any help would be greatly appreciated.
    Thank you very much.

    HartEJ wrote:
    ...Neither browser will allow me to do ANYTHING other than go to Gmail.com!!!...
    If you've already tried my previous suggestions, it may be that something has tampered with the DNS settings in your Windows VM, which might bypass the settings your Mac uses. Assuming you're using Windows 8, these instructions explain how to check and change the DNS settings. There's also a link in those instructions listing a variety of suggested DNS settings. If you do try changing the settings, record what the settings currently are in case you want to return to them.

Maybe you are looking for

  • How do I add metadata to a PDF to specify the document's natural language?

    I have a PDF which isn't in US English. Can I add metadata to the document to say what language it is in? Is there a standard way of doing this? I see I can add Name:Value pairs to Custom Properties in Reader. Is that the right way of going about it?

  • Extending Expert Query VO but Query doesn't display in standard VO

    I need to add a new attribute to an export query VO (oracle.apps.icx.por.reqmgmt.server.GroupReqsPublicVO), but when I edit the standard VO in JDeveloper the existing query doesn't display (query is blank and no attributes are listed). I can get the

  • Iphoto will not quit without a force quit. Help!

    Iphoto will not shut down without doing a force quit everytime.  It also won't connect to my camera to get some new photos. Any suggestions?

  • Can't find phone1 in OCRD

    Hi experts, I want to put customer's contact Tel in sales order document layout, but when I put a database field and selecedt OCRD table, there is no phone1 and phone2 fields. I can't specify customer's TEL in sales order document layout. please help

  • Update to Raw Camera 5.7 in PSE 8

    I downloaded the update for raw camera 5.7 and followed all the instructions to a tee. Still whenever I edit a raw data image it still displays raw camera 5.5 in the upper left hand corner of the display. Is this correct or is something amiss here/ A