Date from LiveCode to Applescript

Yves COPPE yvescoppe at skynet.be
Sat Nov 27 07:10:23 EST 2010


Le 27 nov. 2010 à 12:09, zryip theSlug a écrit :

> Try this:
> 
> on mouseUp
>   local tFinalDate,theCal,theEvent,tScriptToDo
> 
>   put "11/25/2010" into tFinalDate -- Your date in your own format
>   put "MyCalendar" into theCal
>   put "MyEvent" into theEvent
> 
>   put "tell application "&quote&"iCal"&quote&cr& \
>          "switch view to week view"&cr& \
>          "tell calendar "&quote&theCal&quote&cr& \
>          "set theDate to date("&quote&tFinalDate&quote&")"&cr& \
>          "view calendar at theDate"&cr&\
>   "end tell"&cr&\
>   "end tell" into tScriptToDo
>   do tScriptToDo as applescript
> end mouseUp



re,

thaaaaanks !!!!


Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the Use-livecode mailing list