Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
LrTasks.execute is a blocking call, so it must be used only within LrTasks.startAsyncTask or LrTasks.startAsyncTaskWithoutErrorHandler (LR3 only)
Copy link to clipboard
Copied
There's been some changes under the hood - I've had to wrap a couple things in a task that didn't used to require it. I'm guessing this is one of those kinds of things.
Rob
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more