7 Replies Latest reply on Apr 1, 2016 12:33 AM by erolst

    Clear clip board

    applelakshan1

      Title

      Clear clip board

      Post

      Hi guys

      i am developing fmp database. I was using Copy command for lot Scripts . But the Problem is when it get copied to clip board it doesent clear it. so every time i have to log of other wise it keeps copy item in clip board and it paste to some wrong filelds even Non related Apps Also 

       

       

      can we clear the clip board from FMP ????

       

      Thanks in Advance ////

        • 1. Re: Clear clip board
          applelakshan1

          Found the Method

           

           

          call to the Apple Script and

           

          Tell Application Finder

          set the clipboard to ""

           

          end tell

           

           

          simple task ......

          • 2. Re: Clear clip board
            philmodjunk

            "I was using Copy command for lot Scripts"

            For most scripts, the copy command is not a good option. It only works if the field being copied is present on the current layout and your users get irritated when data they copied to the clipboard is replaced by data your script copied to the clipboard.

             

            Unless you are copying data to the clipboard so it can be pasted into another application or you are using copy All records, set field and/or Set Variable can be used in place of copy, paste script steps. They don't require that the referenced field be present on the current layout and they leave your clipboard unmodified.

            • 3. Re: Clear clip board
              bkamlin_1

              a simpler clipboard clear method:

              Create a global field with a space " " in it.

              Place a copy script step in front of the Copy script step you plan to use.

              If your copy script step's field is null or not available it could place the previous fields data in that field .

              • 4. Re: Clear clip board
                rwg4th

                How do I do this EXACTLY? when I try a global field of " " in the auto data box I get " " in all my fields.

                • 5. Re: Clear clip board
                  rwg4th

                  I'm sorry but IU don't see how to do this:

                  call to the Apple Script and

                   

                  Tell Application Finder

                  set the clipboard to ""

                   

                  end tell

                   

                   

                  I don't see application finder in script maker. There is no set clipboard command either. please explain step by step.

                  I see it's an applescript, can you please show me exactly what to do to set it up in the script. I tried copy paste yours but I get an error "the variable finder is not defined"

                  • 6. Re: Clear clip board
                    user19752

                    You need quote it

                    Tell Application "Finder"

                     

                    Anyway avoid using clipboard is the preferred.

                    • 7. Re: Clear clip board
                      erolst

                      user19752 wrote:

                      You need quote it

                      Tell Application "Finder"

                       

                      I think the problem is that rwg4th doesn't know where to put the AppleScript code in the first place …

                       

                      Write a FileMaker script with the step

                       

                      Perform AppleScript [ calculated:

                      "Tell Application " & Quote ( "Finder" ) &

                        "set the clipboard to " & Quote ( "" ) &

                      "End tell"

                      ]

                       

                      user19752 wrote:

                      Anyway avoid using clipboard is the preferred.

                       

                      Can't repeat this often enough; use e.g. Set Variable [] / Set Field [] instead.