Jump to content

liatmgat

Member
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by liatmgat

  1. Actually, in the escaping, tick the option to escape double quotes. Was the text you tested this with.. did it have any double quotes in it? This works just as you described in my testing.

    Thank you so much! It worked!

     

    My only last question is: is there a way to paste as Paste and Match Style (shift-opt-cmd-v) instead of just regular Paste? That is my goal for this workflow.

    I really appreciate your help!

  2. The easiest way to do this is to create a new workflow, with a hotkey trigger. With the hotkey trigger, set the hotkey and set the argument property to be "Selection is OS X". Save that and move on. Next, add a Run Script action. Set the language to osascript, uncheck the escaping options. You probably wouldn't need them. Then in the code area enter..

    tell application "TextEdit"
        activate
        make new document with properties {text:"{query}"}
    end tell
    

    Connect the hotkey and the action, and test it out.

     

    Hi David,

    Thank you so much for helping me.

    I did what you said but it doesn't seem to be working. Maybe I should clarify what I'm hoping to do.

     

    I want to select text anywhere, like in Safari or Pages or anywhere, and then have the hotkey open a new TextEdit document and paste the selected text into the new document using Paste and Match Style.

     

    When I did what you said, nothing happened.

    Here is what I have:

     

    Screen-Shot-2014-08-15-at-11.07.51-AM.pn

     

    Screen-Shot-2014-08-15-at-11.07.58-AM.pn

     

    Screen-Shot-2014-08-15-at-11.08.07-AM.pn

  3. Hello,

     

    I need help learning how to make the following simple workflow. I would like it to do this:

     

    Paste selected text without style into a new TextEdit document.

     

    I have made workflows before but only for opening files, apps, and URLs - never anything more complex than that. I don't know how to do Apple Scripts and such. Just so you know to dumb it down a little for me. :)

     

    Thank you so much!

×
×
  • Create New...