You can use the cal command. Here’s an example that should get you going:
set the_month to month of (current date) as integer
set the_year to year of (current date) as integer
set the_cal to (my get_cal(the_month, the_year)) --return my get_cal("", the_year) --leave month empty for full year
set the_days to word -1 of the_cal
return {the_month:the_month, the_year:the_year, the_days:the_days, the_cal:the_cal}
on get_cal(the_month, the_year)
return (do shell script "cal " & the_month & " " & the_year)
end get_cal
Thanks guys. Will try both of these when I get time.
Jon
Where can I get some info on shell scripts?
Been using Macs for years but the Unix side is still a bit new to me. I understand the basic concepts but not sure what is available and what can be done. I guess I could write my own?? Err maybe one day!!