Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

aeonsgy

macrumors newbie
Original poster
Nov 13, 2009
5
0
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?
 
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?
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.