Livecode and calendar support

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Opaquer
Posts: 247
Joined: Wed Aug 14, 2013 8:24 am

Livecode and calendar support

Post by Opaquer » Wed Sep 07, 2016 5:51 am

Hey all!

I'm working on a project at the moment, and one thing the user would like is to have is calendar support. They'd like to be able to make an event in the app that will link with a few other user's apps and their iCal account, and let them all see the calendar event. They also need to be able to change the details of the event if need be, such as if the job is completed yet. Unfortunately, I have no idea how to make Livecode talk to calendars :P. Also, they're looking to have a desktop version on Mac, and a mobile version on iOS, so ideally I'd be able to get something that would work with both desktop and mobile :)

Does anyone know of a way to make this happen? Or if there's an alternative instead of iCal (maybe if it's all done through the app with the calendar and details displaying there or something?)

Many thanks :)

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Livecode and calendar support

Post by MaxV » Wed Sep 07, 2016 1:29 pm

You can use applescript in livecode, for example:
########CODE#######
put "tell application "&quote&"Finder"&quote&cr& \
"open application file "&quote&"ical.app"&quote&" of folder "&quote&"Applications"&quote&" of startup disk"&cr& \
"tell application "&quote&"iCal"&quote&cr& \
"set theCalendarNames to title of every calendar"&cr& \
"end tell" &cr& \
"end tell" into tScript
do tScript as applescript
#####END OF CODE#####

Otherwise try to contact the creator of tCal, http://www.tcal.it/ , he knows how to deal with iCal and livecode.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Opaquer
Posts: 247
Joined: Wed Aug 14, 2013 8:24 am

Re: Livecode and calendar support

Post by Opaquer » Thu Sep 08, 2016 5:21 am

MaxV wrote:You can use applescript in livecode, for example:
########CODE#######
put "tell application "&quote&"Finder"&quote&cr& \
"open application file "&quote&"ical.app"&quote&" of folder "&quote&"Applications"&quote&" of startup disk"&cr& \
"tell application "&quote&"iCal"&quote&cr& \
"set theCalendarNames to title of every calendar"&cr& \
"end tell" &cr& \
"end tell" into tScript
do tScript as applescript
#####END OF CODE#####

Otherwise try to contact the creator of tCal, http://www.tcal.it/ , he knows how to deal with iCal and livecode.
Woah, that looks complicated! Would that work for iPhones and iPads too? Or just Macs?

I'll have a look into it though! Would Applescript let me also get information from the calendars, like job appointment times and all that?

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Livecode and calendar support

Post by MaxV » Thu Sep 08, 2016 8:33 am

On iOS applescrit is not supported, but you can use custom URL to send data to iCal.
Here is the guide, but at the present is not avaliable: http://lessons.livecode.com/m/4069/l/58 ... rl-schemes
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3999
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Livecode and calendar support

Post by bn » Thu Sep 08, 2016 8:51 am

Hi Opaquer,

have a look at what Bill Vlahos did:
http://forums.livecode.com/phpBB2/viewt ... 08&t=25046

Search the forum for "iCal"

For AppleScript I recomend

http://macscripter.net/index.php

Kind regards
Bernd

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Livecode and calendar support

Post by trevix » Sun Aug 12, 2018 11:07 am

Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”