I have a simple workflow to generate a UNIX timestamp:
"ts" keyword -> to Run Script -> Post notification
Script is:
date +"%s" | xargs echo -n | pbcopy
Whenever I execute this workflow, a UNIX timestamp is properly copied to clipboard. However, whenever I'm in PhpStorm and I copy some code, then generate a timestamp, I see the notification but the clipboard content is not replaced with the timestamp, I still paste the copied code. If I run again the workflow, I finally get my timestamp.
- I copy code, generate, paste, I get the code
- I copy code, generate, switch to another app to paste, I get the timestamp, I go back to PhpStorm, paste, I get the timestamp
- I copy code, generate, paste, I get the code, switch to another app, I get the timestamp
- I copy code, generate, generate again, paste, I get the code
Seems related to PhpStorm though but wonder if you may have an idea how it is possible, moreover with the last behaviour when I invoke the workflow twice
Kind regards