Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4320 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

 

Posted

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"

)

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.