Skip to content

Instantly share code, notes, and snippets.

@Zettt
Last active March 11, 2023 10:11
Show Gist options
  • Select an option

  • Save Zettt/62163956ae9ae127a85fec88aa38837e to your computer and use it in GitHub Desktop.

Select an option

Save Zettt/62163956ae9ae127a85fec88aa38837e to your computer and use it in GitHub Desktop.

Revisions

  1. Zettt revised this gist Feb 20, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    If you are annoyed as much as I am by Binance inability to paste value into the order boxes via the clipboard, you're welcome (please do us all a favor and file a bug report!).
    If you are annoyed as much as I am by Binance inability to paste clipboard values into the order boxes, you're welcome. (Please do us all a favor and file a bug report too!)

    On a Mac you can simply use an AppleScript to type everything that is on the clipboard for you. The script is this:

  2. Zettt revised this gist Feb 20, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -23,9 +23,9 @@ end tell
    5. Now open System Preferences → Keyboard → Shortcuts.
    6. Under Services → General should be your new action. Double click the shortcut column next to it to assign a custom shortcut to this action.

    ![](https://p190.p3.n0.cdn.getcloudapp.com/items/P8uRg5WB/Screen+Shot+2020-02-20+at+06.49.07.png?v=5eab3e535ffa5d4046ec0993169a442e)

    ## Making it Faster

    It's a little slow, if you do it using macOS only. That's why I always always *always* recommend using [Keyboard Maestro](https://www.keyboardmaestro.com/main/). (Yes, I'm very biased. Check out my Keyboard Maestro [macros here](https://github.com/Zettt/km-macros), and my [Markdown macros here](https://github.com/Zettt/km-markdown-library).)

    ![](https://p190.p3.n0.cdn.getcloudapp.com/items/P8uRg5WB/Screen+Shot+2020-02-20+at+06.49.07.png?v=5eab3e535ffa5d4046ec0993169a442e)

  3. Zettt revised this gist Feb 20, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,9 @@ end tell
    5. Now open System Preferences → Keyboard → Shortcuts.
    6. Under Services → General should be your new action. Double click the shortcut column next to it to assign a custom shortcut to this action.

    ![](https://p190.p3.n0.cdn.getcloudapp.com/items/P8uRg5WB/Screen+Shot+2020-02-20+at+06.49.07.png?v=5eab3e535ffa5d4046ec0993169a442e)

    ## Making it Faster

    It's a little slow, if you do it using macOS only. That's why I always always *always* recommend using [Keyboard Maestro](https://www.keyboardmaestro.com/main/). (Yes, I'm very biased. Check out my Keyboard Maestro [macros here](https://github.com/Zettt/km-macros), and my [Markdown macros here](https://github.com/Zettt/km-markdown-library).)
    It's a little slow, if you do it using macOS only. That's why I always always *always* recommend using [Keyboard Maestro](https://www.keyboardmaestro.com/main/). (Yes, I'm very biased. Check out my Keyboard Maestro [macros here](https://github.com/Zettt/km-macros), and my [Markdown macros here](https://github.com/Zettt/km-markdown-library).)

  4. Zettt renamed this gist Feb 20, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. Zettt created this gist Feb 20, 2020.
    28 changes: 28 additions & 0 deletions readme.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    If you are annoyed as much as I am by Binance inability to paste value into the order boxes via the clipboard, you're welcome (please do us all a favor and file a bug report!).

    On a Mac you can simply use an AppleScript to type everything that is on the clipboard for you. The script is this:

    ```applescript
    try
    the clipboard as text
    on error
    set the clipboard to " "
    end try

    tell application "System Events"
    keystroke (the clipboard as text)
    end tell
    ```

    ## Setup:

    1. Create a new *Quick Action* in Automator.
    2. Input is "no input". Execute in "any application".
    3. Add a Run Applescript action, and paste the script above into it.
    4. Save the action, and remember its name.
    5. Now open System Preferences → Keyboard → Shortcuts.
    6. Under Services → General should be your new action. Double click the shortcut column next to it to assign a custom shortcut to this action.

    ## Making it Faster

    It's a little slow, if you do it using macOS only. That's why I always always *always* recommend using [Keyboard Maestro](https://www.keyboardmaestro.com/main/). (Yes, I'm very biased. Check out my Keyboard Maestro [macros here](https://github.com/Zettt/km-macros), and my [Markdown macros here](https://github.com/Zettt/km-markdown-library).)