Following up from yesterday's discussion on the "speaker" script
disabling all annoyances, I was able to build a recording with
Automator, and I was also able to find a script going about it the
clickety-way:
-----------------
Open this Scriplet in your Editor:
tell application "iCal" to activate
tell application "System Events" to tell process "iCal"
--click menu item "Preferences…" of menu 1 of menu bar item
"iCal" of menu bar 1
click menu item 3 of menu 1 of menu bar item 2 of menu bar 1
--click button " Advanced " of tool bar 1 of window 1
click button 3 of tool bar 1 of window 1
--click checkbox "Turn off all alarms" of window 1
click checkbox 1 of window 1
--click menu item "Close" of menu 1 of menu bar item "File" of
menu bar 1
click menu item 10 of menu 1 of menu bar item 3 of menu bar 1
end tell
tell application "iCal" to quit
-----------------
BUT, the really interesting bit I was able to get to is the _actual_
reason why "disabling alarms" is not in the Dictionary for iCal: it is
in the application defaults, which i was not aware of even existed!
The defaults are programmatically accessible from the shell "default"
command, for example:
$ defaults read com.apple.iCal
and the one I was after turns put to be simply:
$ #check box -- 0 for uncheck
$ defaults write com.apple.iCal 'Disable all alarms' 1
Best -Federico
--
_________________________________________
-- "'Problem' is a bleak word for challenge" - Richard Fish
(Federico L. Lucifredi) - [email protected] - GnuPG 0x4A73884C
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm