On Sat, Nov 27, 2010 at 7:27 AM, Yves COPPE <[email protected]> wrote:
> Hello tjheSlug
>
>
> Very good and fantastic script
> works great
>
> Another question about that
>
> is it possible to have a script to force iCal to open at this date (a 
> variable date) in a weekly presentation ?
>
> thanks.

Hi Yves,

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


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to