We have been experimenting with this function and discovered there was a neat little trick that might be useful for others to be aware of. In most cases, a recipient's telephone number is not known when SMS is called from within the App. Therefore, on iOS 7 using
Code: Select all
mobileComposeTextMessage "","Message..."
opens the SMS pane but automatically includes "Buddy Name," as the first recipient (see snapshot). Not very friendly|
However, using
Code: Select all
mobileComposeTextMessage "?","Message..."
ensures recipient list is empty with the text insertion point when SMS is called. This also has the advantage of forcing the text insertion point into the recipient field instead of after the body text on a device running iOS 6. You can then type a recipient name as usual. We have tested this with a few other non-alphanumeric characters with the same effect.
Please note this can only be tested on a device, not in the simulator. As yet this is not documented in the dictionary.
Dave