Hi, It might help to add `(require 'org)' before the code block, since the code in org-mac-iCal depends on some functions that are part of Org mode.
You should also make sure that calling org-mac-iCal (in the last line of the code block) is really what you want, since this would be called every time you start up Emacs. According to the documentation it overwrites the diary file. If you don't want this, you can type "M-x org-mac-iCal" instead. Cheers, Charles