Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Messages calculated Applescript

Featured Replies

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?

 

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"

)

  • 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.

Avoid copying and pasting. Set variable and set field instead.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.