Accessing FileMaker's clipboard with AppleScript

Video created by frudens on Mar 17, 2018

    I'm running Script from this repository from ShellScript.

    I am running ShellScript from VimScript.

     

    Repository

    GitHub - DonovanChan/Filemaker.tmbundle: TextMate support for FileMaker Pro

     

    ---

    This AppleScript is required.

    Filemaker.tmbundle/Support/lib/GetSnippet.applescript

    Filemaker.tmbundle/Support/lib/PasteSnippet.applescript

    ---

     

    fmclipget.sh

     

    RESULT=$(osascript ~/xxx/GetSnippet.applescript)

    if [ "${RESULT:0:1}" != "<" ] ; then

      echo "Unrecognized clipboard format"

    fi

    echo "$RESULT" | pbcopy

     

    ---

     

    fmclipset.sh

     

    TEXT=`pbpaste`

    RESULT=$(osascript ~/xxx/PasteSnippet.applescript "$TEXT")

     

    ---

     

    Teruhiro Komaki