• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iCal & AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: iCal & AppleScript (From: "Monee C. Kidd" <email@hidden>)

  • Prev by Date: Re: Workaround for terminology conflicts
  • Next by Date: Re: checking for characters
  • Previous by thread: Re: iCal & AppleScript
  • Next by thread: Re: iCal & AppleScript
  • Index(es):
    • Date
    • Thread