January 17, 201312 yr Could someone give me some pointers for getting an Applescript to run from within FM to open Messages and address a new message to a phone number (or an email address) extracted from my database. I have tried this tell application "Messages" activate set myid to get id of first service set theBuddy to buddy "téléphone::no_de_telephone" of service id myid end tell Could the same person or another also tell me how to modify a native Applescript for it to run as a Calculated Applescript?
January 23, 201312 yr Try this as calculated script: List( "tell application " & quote ( "Messages") ;"activate" ; "set myid to get id of first service" ; "set theBuddy to buddy " & Quote ( "téléphone::no_de_telephone" ) & "of service id myid" ;"end tell" )
January 23, 201312 yr Author Thanks so much for that. It still needs a little tweaking as it does not yet prepare a new message for the recipient, but it does open Messages and the recipients phone no. is copied ready to be pasted. And it shows me how to make a calculated Applescript in FM.
Create an account or sign in to comment