mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-13 22:29:48 +08:00
0b3b7d13b5
When posting articles via browser automation, the HTML preview tab needs to be active before copying content, and the editor tab needs to be active before pasting. Without explicit Target.activateTarget calls, AppleScript Cmd+C/Cmd+V would act on the wrong tab, causing the editor body to remain empty after paste. This fix adds Target.activateTarget before both copy and paste operations, ensuring the correct tab is in focus for system-level clipboard operations.