close app window
I am trying to launch Calendar and immediately close the window that opens: It opens
calendar but does not close window. If I run tell application "Calendar" to close every window by itself, it closes. What am I missing??
tell application "Finder"
activate
open application file "Calendar.app" of folder "Applications" of folder "System" of startup disk
tell application "Calendar" to close every window
end tell
thanks
iMac Line (2012 and Later)