Add selected text to current TextEdit document

Hi hi dear Mr. Nick,

Is it possible to add selected text to the specific Mac TextEdit?
if the existing text file end like「I love Popclip」,
and I selected “and Nick” form somewhere else,
it auto become to「I love Popclip and Nick」?

thank uuu <3

1 Like

Something like:

name: TextEdit Append
icon: a
after: show-status
applescript: |
  tell application "TextEdit"
    set theDocument to first document
    set text of theDocument to (text of theDocument & " {popclip text}")
  end tell

Wow you are the God of Popclip!

but it seems need to open the file to do that.

You’ll need to have the file you want to append to open, yes.