RE: Easy way to script "go to date" in iCal ?
RE: Easy way to script "go to date" in iCal ?
- Subject: RE: Easy way to script "go to date" in iCal ?
- From: Jay Louvion <email@hidden>
- Date: Fri, 03 Feb 2006 16:55:08 +0100
Title: RE: Easy way to script "go to date" in iCal ?
Found out how to do that: the only complicated bit was getting the search running, since the “return” button didn’t respond. The “Dead K” (key next to the left arrow on Pbook’s, ascii character 3) did the trick. Here’s the result for anyone who might actualy have read my original post.
tell application "FileMaker Pro" to set EventDate to cellValue of cell "start date" of current record of document 1
if EventDate is "" then
display dialog "No date is specified." & return & return with icon 2
else
set EventDate to date EventDate
set TheDay to day of EventDate as text
set TheMonth to month of EventDate as integer as text
set theYear to year of EventDate as text
tell application "iCal" to activate
tell application "System Events"
tell process "iCal"
keystroke "t" using {command down, shift down}
keystroke TheDay
keystroke tab
keystroke TheMonth
keystroke tab
keystroke theYear
keystroke (ASCII character 3)
end tell
end tell
end if
Have a great week-end guys.
J.
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