Livecode and calendar support
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Livecode and calendar support
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 . 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
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 . 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
Re: Livecode and calendar support
You can use applescript in livecode, for example:
########CODE#######
put "tell application ""e&"Finder""e&cr& \
"open application file ""e&"ical.app""e&" of folder ""e&"Applications""e&" of startup disk"&cr& \
"tell application ""e&"iCal""e&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.
########CODE#######
put "tell application ""e&"Finder""e&cr& \
"open application file ""e&"ical.app""e&" of folder ""e&"Applications""e&" of startup disk"&cr& \
"tell application ""e&"iCal""e&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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Livecode and calendar support
Woah, that looks complicated! Would that work for iPhones and iPads too? Or just Macs?MaxV wrote:You can use applescript in livecode, for example:
########CODE#######
put "tell application ""e&"Finder""e&cr& \
"open application file ""e&"ical.app""e&" of folder ""e&"Applications""e&" of startup disk"&cr& \
"tell application ""e&"iCal""e&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.
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?
Re: Livecode and calendar support
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
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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 3999
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Livecode and calendar support
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
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
Re: Livecode and calendar support
See my last post on viewtopic.php?f=8&t=25062&p=170099#p170099
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>