Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block script execution until previous action has returned #1097

Open
eugenesvk opened this issue Nov 23, 2024 · 0 comments
Open

Block script execution until previous action has returned #1097

eugenesvk opened this issue Nov 23, 2024 · 0 comments

Comments

@eugenesvk
Copy link

One thought I had about how to add cut&paste commands from #321 was to use core.clipboard.paste command within a plugin using runaction, and then the only part left would be to delete the files in the clipboard to complete the "cut" part.

But then execution immediately returns after launching core.clipboard.paste from within the script, so I don't actually know whether the user is still waiting on the "file already exists" dialog or whether he's aborted the previous command, so I can't really delete anything until the paste is complete

Is there a way to block script execution, get the return status of the previous paste command and only delete files if paste was completed successfully? Ideally I'd also need a list of skipped files from the previou command so that they aren't deleted in the next step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant