How to send a string from an Apple script - applescript

I code in REALbasic.
Whenever I receive an IM via iChat, iChat runs an applescript and sends to it the last message received. I need to somehow forward this message as a string to the app I'm writing in REALbasic. REALbasic is able to respond to AppleEvents but I don't now how to implement this or if I'm even in the right ball park.
Any advice?

Unfortunately I haven´t used RB in ages, but maybe the following link (just a quick google) might be a starting point?
http://www.106automation.com/page2/RB/RB.html
(the link to download the example files is actually the title of the page, so click "REALBasic & Applescript")

Related

Link sms on chrome, edge or other on pc/windows

As we can see from this topic
How to pre-populate the sms body text via an html link
it is possible to generate sms links that work perfectly on smartphones.
But when I click on it on my browser while I'm on the pc running windows 10, nothing happens. The link is simply ignored even though it is totally abnormal.
Don't tell me that this is normal, NO! There is the application "My phone" which is installed and which makes it possible to send sms with the PC, to answer them, to see the notifications or even the photos of the smartphone. So the pc can send sms via this application which is from microsoft and I am on a microsoft system. I often use it to write my sms. But the browser (chrome for example, but also edge for example) does not work while they should transmit the request to the application "my phone".
My question is :
How can I add parameters to the system so that it works?
It seems like such an obvious question that I'm surprised I haven't seen similar ones on the internet despite long searches.
Thanks to those who will answer and especially to those who will give a solution.

Can i send sms with image(MMS) automatically in flutter

i know how to send automatically,
but i can't send message automatically with image.
help me.
how to send message with image.
Sending MMS with Flutter
I'm looking for a way to programmatically send text + image in SMS message using Flutter (so basically an MMS). Hope anyone could help me out here.( automatically)
Unfortunately there’s no easy way right now. It’s very frustrating. I want this as well for my app. The only way to do it right now is to write your own way of doing it from scratch. The contactsservice library does not have this feature and likely won’t for a long time (they don’t seem to work on it very much).

Xamarin voice command by car

I'm looking for the best approach to implement voice command in a Xamarin app.
Here are my requirements:
I don't need to launch my app by voice. Instead, my users will launch the app through touch (so, when the app is not running, no voice recognition is needed by my app)
My app is a client/server app and it will work always on (the backend will run on azure)
My app will be used primarily by car (so consider environment noise)
My app will work in many languages, such as Italian, Spanish, French and English
My app should be developed with xamarin (and eventually mvvmcross or similar)
In my app there will be two kinds of voice commands:
to select an item from a short list: app will show a list of items, such as "apple, kiwi, banana and strawberry" and user will have to say one of those words.
to change current view. Typically these voice commands will be something like "cancel", "confirm", "more" and stuff like these
The typical interaction between user, app and server should be this:
user says one of the available commands in current view/activity/page
suppose here that the user perfectly knows which commands he/she can use, it does no matter now how he/she knows these commands (he/she just knows them)
user could put before the commands some special words, such as "hey 'appname'", to have a command like "hey 'appname', confirm"
Note: the "hey 'appname'" part of the voice command has the only purpose to allow the app to know when the command starts. The app can be always in listening mode, but has to avoid to send the audio stream continuously to the server to recognize commands
best case is if app would recognize these commands locally, without involve the remote server, since the voice commands are predefined and well-known in each view. Anyway, app can send the audio wave to the server which will return a string (in this example the text returned will be "confirm", since the audio was "hey 'appname', confirm")
app will map the text recognized with the available commands, and will invoke the right one
user will receive a feedback by the app. The feedback could be:
voice feedback (text-to-speech)
visual feedback (something on the screen)
both above
I was looking for azure-cognitive-services, but in this case, as far as I've understood, there is no way to recognize the start of the command locally (everything works on server side through REST api or clients). So the user would have to press a button before every voice command, and I need to avoid this kind of interaction.
Since the app is running, my user has him/her hands on the steering wheel, and he/she can't touch everytime the display. Isn't it?
Moreover, I was looking for cortana-skills-kit and botframework, but:
It seems that Cortana Skills are available in English only
Actually, I don't need to involve Cortana to launch my app
I don't have experiences on these topics, so, hope that my question is clear and, generally speaking, that can be useful for other newbie users as well.
* UPDATE 1 *
The Speech Recognition with the Voice Command Definition (VCD) file is really close to what I'd need, because:
it has a way to activate the command through a command name shortcut
It works in foreground (and background as well, even if in my case I don't need the background)
Unfortunately, this service works only on Windows, since it uses the local API. Maybe the right approach could be based on the following considerations:
Every platform exposes a local speech recognition api (Cortana, Siri, Google Now)
Xamarin exposes Siri and Google Now apis and make them available through C#
It would be useful to create a facade component to expose the three different local speech api through a common interface
I'm wondering if there is something other solution to this. Cortana, as personal assistant, is available on Windows, iOS and Android. Since Cortana works both with local api and with remote service (Cortana Skills), is Cortana the right approach? Has Cortana the support for many languages (or, at least, has the support a road map)?
So, just some thoughts here. If you have some other ideas, or suggestions, please add here. Thanks

Reproducing Mac Mail / TextEdit interaction

TextEdit has this great treatment of messages dragged from the Mac Mail app — the subject line transfers as a hyperlink that when clicked opens the original message in Mail. Any thoughts how I could do the same in my app? Not having much luck with NSPasteboard; the data doesn't seem to transfer as NSURL's or NSString's. I don't think the data is totally obscure, though, as dragging a Mail message to Microsoft Word does transfer over a file URL, albeit one that doesn't open successfully.

Windows 7.1 SDK - Timing a call

I currently have a "dumbphone", but I'm trying to make an app that'll time and store the call duration of incoming calls for windows 7.1 ("7.5") phones, for the user scheduling purposes.
However, after extensive searching and googling, with topics like this one:
Windows Phone 7 - How to calculate call duration or termination
it seems that the Windows 7/7.1 SDK does not allow access to recognizing when a call is coming in. I've read about obscure and unobscure, but that this wouldn't be a good idea since it would start the timer anytime the UI hides the program, not just calls.
I've thought that maybe I could just pull the call duration or the start/end time from the call history, but windows 7 SDK doesn't support that either it seems.
So I decided to seek help. Is there a way to make this work? Is there some clever way to recognize when a call is incoming and stopped? Or some clever way to pull call times/durations? Or maybe a way to detect when the user presses that "accept incoming call" button? Or maybe a way to single out when a call is obscuring the UI?
Any help would be greatly appreciated. Thank you
Due to security reasons your application does not have any kind of accsess to call history ect. So you are in a sendbox and you don't know nothing about phone calls.
From the Windows Phone SDK, there is no way to achieve this!
The only thing I can think of is that when a call comes, the current app gets notified that is now Obscured because a new screen is now on top of it (the caller ID screen), and will get notified when it gets back to focus.
But the truth is that this happens even if a SMS message notification pops on the screen and the user taps to read it, or some app gets a notification pushed...

Resources