2 Replies Latest reply on Jun 12, 2010 1:39 PM by areohbee

    "We can only wait from within a task" when calling LrTasks.execute?

    missamo80 Level 1

      I'm trying to write a plug-in that lives off the Library menu and calls out to an external application to do various activities based on the selected images in the library. I've got my dialog designed, am able to detect what images are selected, and am successfully building up the command line to the application I want to call.

       

      Unfortunately, my call to LrTasks.execute results in the following error when run:

       

      "We can only wait from within a task".

       

      All the samples I've found in the forum don't seem to be doing anything special, they just call LrTasks.execute(commandLine). Can someone help me understand what I'm missing here?

       

      Thanks!

       

      Neil