Automator Help, Trying to Automate Mac from Twitter

Discussion in 'macOS' started by aeonsgy, Dec 20, 2009.

  1. aeonsgy macrumors newbie

    Joined:
    Nov 13, 2009
    #1
    I don't mean to plug URLs but this is what got me started on trying to automate my Mac through twitter. Here What I want to do is when I send a tweet (d iGod_like_iPod mac \retrieve contact "Aaron") Mail picks it up sees \retrieve contact based on a rule starts a given automator app which turns around and emails my phone that particular contact.

    What I am having trouble with is after mail initiates the rule based on \retrieve contact I have no clue how to copy "Aaron" from the twitter message in mail to pass that on to Automator. Any thoughts?
     
  2. trainguy77 macrumors 68040

    Joined:
    Nov 13, 2003
    #2
    wouldn't it be easier to sync your contacts with google. So if you edit your address book it syncs up with google so you can just go to gmail for your contacts?
     
  3. aeonsgy thread starter macrumors newbie

    Joined:
    Nov 13, 2009
    #3
    Yes, but that's not the point. I'm planning for the bigger picture. Say I'm away and want to run software update. Or start my webcam and put it up on camfrog so I can see what is going on. I just want to know how to pull text from a page.

    Found a way to extract the person I am looking for with
    Code:
    on run {input, parameters}
    	
    	set MasTxt to (the clipboard as text)
    	set FindName to text ((offset of "%&" in MasTxt) + 2) thru -1 of MasTxt
    	set input to FindName
    	
    	return input
    end run
    Now just need a way to pass that name on through to a search query in address book and extract the data that is given. Any thoughts?
     

Share This Page