Jump to content

rickthrivingnow

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by rickthrivingnow

  1. OH JEESH!

     

    So... when I changed the email address using the Alfred workflow editor, the leading " changed to a fancy quote:

     

    on alfred_script(q)
    tell application "System Events"
    -- Trigger reply
    keystroke "r"
    delay 0.5
     
    -- Focus cc: field, type email
    keystroke "c" using {command down, shift down}
    keystroke new-email@domain.com"
     
    -- Return, tab, tab
    key code 36
    key code 48
    key code 48
    end tell
    end alfred_script
     
    Which of course doesn't result in any VISIBLE error, just nothing happening with the entire script.
     
    How do I turn off the change from " to fancy quotes that happens there? Thanks for the help, guys!
     
    Rick
  2. It's not delays as far as I can tell...

     

    I simplified it down to this:

     

    on alfred_script(q)
    delay 2.5
        tell application "System Events"
    keystroke “reply@thrivingnow.com"
    end tell
    end alfred_script
     
    I tried this in Chrome anyplace, and also in TextWrangler. There is no reaction at all from the system. No pop-up, nothing. 
     
    I am wondering whether my new machine has some security issue blocking things. I read this article:
     
     
    And I went to Security and allowed AppleScript Editor, Applescript Utility -- they had been off. This made no difference in behavior, alas.
     
    Dragged and dropped Alfred 2.app -- activated that there, and also no change in behavior.
     
    Changed around hotkeys again, and still... nothing anywhere.
     
    Hmmm.... any other clues or things I might test?
     
    Thanks so much...
     
    Rick
  3. All three steps above, yes. I even remapped to your hotkey. Conversation selected. Press hotkey and nothing. 

     

    So weird...

     

    I hadn't run any other workflows so I created one from the example to use a hotkey to open a URL in the default browser. Worked perfectly.

     

    I wonder whether there is an nsapplescript issue where it just isn't getting run. Admittedly, I am poking in the dark. 

     

    Rick

  4. The script makes total sense to me, and fit along the lines I was experimenting with. AND, I cannot get it to trigger.

     

    Workflow has line connected. Tried all kinds of different trigger keys, f7, Command-F7, Ctrl-Shift-C, whatever. Nothing occurs.

     

    I can use snippets fine... Just doesn't seem to send keystrokes.

     

    This is a Mavericks machine. New. Not sure if there are any settings somewhere I need to tweak to allow the applescript to send keystrokes?

     

    Thank you so much for the draft. At least I know it isn't just my code <smile>

     

    Rick

  5. Hi! I admit I am new to Mac and Alfred. 

     

    Rather than using something like Keyboard Maestro, I've already bought Alfred and just need this:

     

    I'd like to press a hotkey (so hotkey initiated workflow I believe) and have it:

     

    Send r to gmail to reply to the message

    Delay for the reply window to appear

    Press Command-Shift-c to go to the cc: field

    Enter example-email@domain.com in that field

    Enter, Tab Tab to return to the editing window

     

    I've looked at some of the other applescript workflows here, and I just can't get anything to activate. Running Maverick on new Macbook pro 13 retina

     

    Thanks for any tips that you can offer!

     

    Rick

×
×
  • Create New...