Easy way to script "go to date" in iCal ?
Easy way to script "go to date" in iCal ?
- Subject: Easy way to script "go to date" in iCal ?
- From: Jay Louvion <email@hidden>
- Date: Fri, 03 Feb 2006 13:18:33 +0100
Title: Easy way to script "go to date" in iCal ?
This is what I’ve ruffled up lately, but GUI scripting is so messy I’d really value some input from you guys.
tell application "FileMaker Pro"
set EventDate to cellValue of cell "start date" of current record of document 1
end tell
set EventDate to date EventDate
set TheDay to day of EventDate as integer
set TheMonth to month of EventDate as integer
set theYear to year of EventDate as integer
tell application "iCal"
activate
end tell
tell application "System Events"
tell process "iCal"
keystroke "t" using {command down, shift down}
delay 1
keystroke TheDay —doesn’t work, I also tried pasting the result from the clipboard, which also doesn’t work...
delay 1
keystroke tab
keystroke TheMonth
keystroke tab
delay 1
keystroke theYear
end tell
end tell
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden