dysong3 Posted January 17, 2013 Posted January 17, 2013 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?
Opotoc Posted January 23, 2013 Posted January 23, 2013 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" )
dysong3 Posted January 23, 2013 Author Posted January 23, 2013 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.
Rick Whitelaw Posted January 24, 2013 Posted January 24, 2013 Avoid copying and pasting. Set variable and set field instead.
Recommended Posts
This topic is 4320 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now