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

Scripting - Enable "On Paste Scripts" to modify the clip's metadata #718

Open
liny01-nbsa opened this issue Sep 16, 2024 · 0 comments
Open

Comments

@liny01-nbsa
Copy link

I tried to implement a script to move any pasted clips to a particular group. So when I use the delete clips, I can simply delete all non-grouped clips as they aren't used in any pastes.

However, this below script has no effect if used as a On Paste Script, it works fine when used as a On Copy Scripts

clip.SetParentId(61672);
return false;

From my reading, the On Paste Scripts can decide whether to do the paste or change what's pasted, but not modifying the clip itself.

Is it possible to implement the such an use case in Ditto's scripting? Maybe with the explicit call to clip.save() or similar to allow clip modification.

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