Re: iCal & AppleScript
Re: iCal & AppleScript
- Subject: Re: iCal & AppleScript
- From: Marcus Rodrigues <email@hidden>
- Date: Wed, 10 Sep 2003 13:18:12 -0300
I figured out this:
set _date to (current date)
set ls to words of "ja f mar ap ma jun j a s o n d"
set d to text -2 through -1 of ("0" & day of _date)
set m to "" & month of _date
repeat with i from 1 to 12
if m begins with item i of ls then
set m to text -2 through -1 of ("0" & i)
exit repeat
end if
end repeat
set y to text -2 through -1 of ("" & year of _date)
set curDate to (m & "/" & d & "/" & y) as string
tell application "iCal"
activate
set everyEvent to (the events of calendar 1 whose the start date starts
with date curDate)
repeat with i in everyEvent
set tuf to (get summary of i) as text
display dialog tuf
end repeat
end tell
I am having trouble in getting only the current day events. Anyone can
complement this script with this part??
Thx =-D
On Wednesday, September 10, 2003, at 03:51 AM, Monee C. Kidd wrote:
>
OK so I see it can be done, but I'm not smart enough to decipher the
>
library to figure out how to recreate it. What are the commands I > need?
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.