Can you set code to fire when a text message is received? - iphone

I'm still very new to the iOS SDK. Is it possible to hook into a received text message event? For instance, to display an image whenever a text message is received.
Not having been able to find it in the docs, so I'm assuming no, but wanted to double check before I crossed this off my list.

It's not possible. Not much more to say.

Related

Jira mail handler that chooses issue-type based on tag in title

I need to enhance a customer's mail handler, so that it changes the default issue-type based on whether it has a [CR], [INC] or [SR] written in the title. Any ideas? So far the documentation I've checked here doesn't seem to be able to help me out.
You could use the JEMH add-on to do that

Flash AS3 interactive iPhone

For a university project I am trying to produce a semi-interactive iphone.
I am stuck on the messaging app though, using AS3 does anyone know how I would be able to enable the user to send a message, and this message then appear in the sent box? Basically the message needs to be stored and then shown again in sent messages with the contact name and the message? I think it has something to do with the storage variable but not entirely sure!
Any help would be really appreciated!!
Thank you :)
You could use xml to store it, and to get it back.
To write it onto the box an input text or a dynamic text could help you.
The easiest way to do it is using SharedObjects.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html

Using applescript to edit a server variable

I do not know if I am asking this correctly (but none of my searches anywhere yielded an answer).
I'll try my best to explain;
I've created an Applescript that is used in a mail client (Mac Mail and MS Outlook).
Basically when an email is recieved, it checks the subject, if the subject contains "whatever" then the script executes.
This script asks if you'd like to send an auto-response. If you click no, nothing happens. If you click yes, one is sent. Simple enough right?
Well, the problem I ran into is 20 people all said yes at the same time, sending 20 auto-generated emails.
I am attempting to find SOMEWAY to have "it" check to see if someone has already clicked yes. Does anyone have any insight? Am I going too far outside the scope of Applescript? If so, any alternatives would be greatly appreciated.
You need some centralized way to keep track when a yes is clicked. So a simple text file on the server may do the job. What I'm thinking is that when someone clicks yes to send the auto-responce then the first thing the script does is check the central file to see if anyone else has already clicked yes. If the file does have a yes then a new dialog pops up and lets the user know the email was already responded to and of course that yes does not respond. If the file does not have a yes then the script writes a yes for that email to the file, then sends the response.
You would need some way to distinguish between the emails that come in at different times so you would check the central file for this unique email property... something that is unique to each email but the same for everyone that receives it. If there is not a unique property then maybe a time based check would work. For example you could write the time-of-day to the file, and you don't send a response if the file contains a time within 30 minutes or some other suitable time period.
I hope that gives you some ideas. Good luck.

Xcode iPhone - How To Attach A Signature To A Text Message Automatically?

What I am trying to figure out how to do is, when I send a regular text message through my iPhone's built in text messaging app, how can I hard-code a text message (signature) to be displayed after my text message I write to someone?
Example:
I launch my text messaging app, and I want to send a text to someone named John.
I then type the following to John in the text field: "Hello John, how are you?"
After I press the send button, I see the standard bubble, but below my text I sent to John is my hard coded signature.
So it sent my original text as well as my hard coded signature to John. So what exactly do I need to do "code wise" in order to accomplish this? Example code would be great if possible.
Thanks
It's not a perfect solution—iOS doesn't allow you to automate the sending of text messages (to prevent spamming and/or junk messages). However, you can present an interface through MFMessageComposeViewController.
In this class there is a body property. By setting an NSString to that property, you can present existing text. Of course the user would still work around that, and could delete it—that is something you have no control over, for UX reasons.

create hyperlink in sms in iPhone

Is it possible to create a hyperlink in an sms in an iPhone?
For example, if I want the word 'foo' hyperlinked in HTML then I'll write foo in a normal situation.
If I want to have a certain word in my sms to be hyperlinked to something, is there any way I can do this? Like "I have a surprise for you" and the receiver taps on the hyperlinked word 'surprise' which will take the user to the destined page.
Any suggestions as to how this can be done? Examples and samples welcome!
Thanks in advance :)
No, you cannot use html tags in sms / text messages. All you can do is insert the URL without the tag. It then depends on the receivers device whether the URL is presented to the user as link or as plain text.
I experimented with exactly this just yesterday. It seems you can't include a nicely formatted hyperlink, unfortunately. I hope to be proven wrong by somebody else, though :-)
However, as you've probably seen yourself, iPhone is able to recognize an URL and you can tap on it to open the URL in Safari (or tap the disclosure button next the message to get more options on what to do with the URL). As far as I can tell the only thing you can do is format your SMS accordingly: "I have a surprise for you: http://foo.com" even though that might spoil the surprise ;-)
No, you can't do this due to privacy issues. Apple thinks that giving you this ability would allow you to link users to malware and such. Sorry!
i don't think it's possible to create hyperlinks in SMS.
The only way is to send an URL, and the iPhone will convert it to a link...
Use a tiny url from tinyurl.
It doesn't allow you to do exactly what you are wanting but it at least can be used to cover up the long link.
This is the closest thing I figure out to do. I was wanting to use the "
No, you can not do this. However you could use tinyurl and format it like this
http://whateverYouWantToSay#tinyurl.com
Web browsers usually ignore anything before an # therefore you could effectively hide the actual site being linked to, as long as your friend does not know that.
What actually happens is the data before the # is submitted to the web site in the form username:password. However it must be a site that requires authentication to access, or the site will normally just ignore it.
If this helps, I've noticed that a custom hyperlink is possible on the OS X Messages app, but they have to be copied and pasted. To replicate this right click on a hyperlink in your browser and hit copy link. Then paste into Messages.
Uhhh this is possible here is a screenshot of an example - I copied a link from email and pasted in a new SMS - though it appears you cannot type html to create a link....