One card I have in a stack lists contact info. There is a phone #, web site, and icons for Facebook, LinkedIn, Twitter, and Google+. There is also an email address listed.
Using "launch URL" I have set up all the web site, social media sites, and phone number to all activate and launch their respective apps (web browser or phone).
My question is, is there a way to script a button to launch the Mail.app on an iPhone? And even better, a way to launch it, have a new message started, and the TO: address filled in with the address from the LiveCode app? I'm guessing there might not be as Apple probably doesn't want us controlling their apps.
Thanks!
Steve
Added after some testing:
1) If the FB app is on the iPhone the launch URL command launches the FB app and not the web browser. The FB app does not go to the "launched" FB page in the URL. I'd rather it launched with the web browser. Twitter and LinkedIn open with the browser and not the installed apps. Any fix for this?
2) After each "launch" it seems the LiveCode app is terminated so if you go back to it, it's closed. Is there a way to keep the LiveCode app running while using the "launch URL" command?
Sending an email on iOS using Mail.app
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Sending an email on iOS using Mail.app
OK - I found the mobileComposeMail command. When I use it on the iPhone, the LiveCode app exists and goes to the home screen - but nothing else happens.
The code in the button is:
where the email address above is not the real address for the purposes of posting in a public forum.
I also see online where revMail is an option?
UPDATED: Just tried revMail. It works and does exactly what I need! So scratch off that part of the help request!
The code in the button is:
Code: Select all
on mouseUp
mobileComposeMail "Test message", "email_address_here"
end mouseUp
I also see online where revMail is an option?
UPDATED: Just tried revMail. It works and does exactly what I need! So scratch off that part of the help request!