Forgive me if this has already been covered, I can't find if it has. I want to be able to take an image I'm working on, copy it, then switch to a tab where I've got a template open and paste the image over that.
I've got the copy and paste working fine, but cannot fathom how to switch tabs. This is what I have so far, with the lines that just give me error messages commented out:
tell application "Pixelmator Pro"
copy front document
-- open window "000 lead TEMPLATE test"
-- paste
end tell
That copies the image I want, then if I manually switch to the specific tab, I can paste.
Should I try opening my template as a new document and then just closing it when I'm done? I can't seem to get the open command working either.
Thanks for any help, it will be so appreciated: I do this template thing at least half a dozen times a day,
William
AppleScript (or anything) to switch to a specific Pixelmator Pro tab
2023-08-17 09:19:21
2023-08-18 09:22:27
Update: I can get almost what I want by opening a new copy of the template file every time. Then have to keep closing it, but it's already sped up some work.
tell application "Pixelmator Pro"
copy front document
open "/Users/...."
paste front document
end tell
tell application "Pixelmator Pro"
copy front document
open "/Users/...."
paste front document
end tell