You might be able to use the perform applescript or send DDE execute script step to send commands like this.
or Send event as well:
Good God, not "DDE Execute"... that thing is so dead, has been for decades.
Send Event is an option when you create a VBscript, that one can do keystrokes. I showed how to do it about 10 years at one of the devcons. Do a search for "VBscript FileMaker" in Google and I'm sure one of my old demo files will show up.
haha, yeah,, I forgot to mention that.
I still think there are people with FM7 solutions and PBX systems from 2002 that might be using it.
Thanks for the suggestions guys. It seems like those may be good Windows suggestions, but I'm running on a Mac. I think you were on the right track Mike, with the AppleScript suggestion. I think AS can actually send keystrokes, no? If I could just send the Command-C-C sequence, I could have MyPhoneDesktop shoot the selected phone number right to my iPhone.
AppleScript is capable of sending keystrokes. Permissions have to be granted to allow for this feature, but once that is taken care of it is a fun technique to experiment with.
I'd suggest doing a search for something like "AppleScript send keystrokes Universal Access" and see what you come up with.
Having done such a search a minute ago, I got a hit for the following pages which look like they might get you started in the right direction:
HTH & best,
Thanks Steve, that did it.
In order to use the same script for multiple phone number fields, I needed to name each field, then send the name as a parameter to the script.
So for example, my Agencies form has a phone number field, and its portal to the Reps table also has a phone number field. So the Agency field I named "Agencies::Phone" and the phone field in the portal I named "Reps::Phone". I put a small phone icon next to each, and in button setup I called my script with the field name as a parameter.
In the script:
Go to Object (with parameter as named object)
Set Selection (1, 99)
Perform applescript Tell application "System Events" to keystroke "c" using command down (this statement twice to get the Command-C-C)
Pause / Resume script (.5)
Commit Records/Requests (this to un-select the field)
I appreciate the help...
Glad to hear it worked out!
Slightly off-topic …
[…] In order to use the same script for multiple phone number fields, […]
… you could use – instead of phone1, phone2 etc. (yawn …) – a generic Communications table related to any number of tables, with just enough meta-data to flag a comm field as containing a phone number (and exit if it's something else).
To do that, you need primary keys that are unique across the file, not just their own table. Think of other tables whose content is in heavy demand, like Notes, Adresses …just saying …