• 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
Easy way to script "go to date" in iCal ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Easy way to script "go to date" in iCal ?
      • From: Serge Ségu <email@hidden>
  • Prev by Date: Re: Q: GraphicsConverter Paste At (format for position?)
  • Next by Date: Older Version of Mail
  • Previous by thread: Re: Scripting Addition to automate mouse clicks in Mac OS X 3.9
  • Next by thread: Re: Easy way to script "go to date" in iCal ?
  • Index(es):
    • Date
    • Thread