Comments on: Toggle Calendar Focus http://www.red-sweater.com/blog/2852/toggle-calendar-focus Mac & Technology Writings by Daniel Jalkut Sun, 16 Mar 2014 19:39:31 +0000 hourly 1 http://wordpress.org/?v=3.8.1 By: Daniel Jalkut http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276154 Mon, 21 Jan 2013 13:18:40 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276154 Hi Chris – interesting stuff. Yeah, it sounds like it would be a multi-phase scripting challenge. I’m guessing it could be done but would require some careful experimentation with how to script the various UI elements.

]]>
By: Chris http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276057 Sat, 19 Jan 2013 07:11:12 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276057 Daniel, There is a Calendars folder on older iPods. One can Export from Calendar.app to that folder (or anywhere for that matter). In Calendar, you select the calendar you want to export, then select File->Export->Export… Finally you get a standard Save dialog. I haven’t a clue how to use System Events to do all that.

]]>
By: Daniel Jalkut http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276051 Sat, 19 Jan 2013 05:18:40 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276051 Chris – Unfortunately I don’t know anything about the export to iPod features of iTunes or Calendar.

Sergesouszero – glad to hear it works well for you!

]]>
By: Sergesouszero http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276046 Sat, 19 Jan 2013 03:02:32 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276046 Works great ! Thanks Daniel !

]]>
By: Chris http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276042 Sat, 19 Jan 2013 00:29:49 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276042 Daniel, you’re a lot more adept at coaxing useful functionality out of System Events than I’ll ever be. I tried, and failed miserably at writing an AppleScript that could step through each of my calendars and export it to my 5G iPod nano. (Why? iTunes 11 removed that useful feature.)

Do you have any idea whether System Events can navigate through the overly complex Export command in Calendar, and whether that could be tied back to your Calendar focus script?

]]>
By: Rob http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276028 Fri, 18 Jan 2013 15:51:54 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276028 I tried running getAppInterface on iCal, but it doesn’t give me anything inside the Calendars button (i.e. the little drop-down window that appears below the button when clicked)… *sigh*

]]>
By: Daniel Jalkut http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276027 Fri, 18 Jan 2013 15:14:36 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276027 Hi Rob – unfortunately that must be it – I only tested the script myself on 10.8 with Calendar.app. I suspect it could be adjusted to work on 10.7, but I don’t have a handy test machine at the moment.

This is the weakness of the “fragile” GUI scripting solutions. They rely upon very specific structural organization of the UI. For this reason, the script will probably also stop working when and if Apple significally updates the UI of Calendar.app.

]]>
By: Rob http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276026 Fri, 18 Jan 2013 15:10:26 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276026 I tried editing “Calendar” to “iCal” and then got this error:

Error Number:System Events got an error: Can’t get scroll area 1 of splitter group 1 of splitter group 1 of splitter group 1 of window 1 of application process “iCal”. Invalid index.
-1719

I’ll look a bit more. Is the script 10.7.x compatible or is it only 10.8?

Rob

]]>
By: Rob http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276025 Fri, 18 Jan 2013 15:07:24 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276025 Whoops… Well, I tried it out and got this error:

Error Number:System Events got an error: Can’t get application process “Calendar”.
-1728

BTW, I have upwards of 50 calendars. About half are delegates from google. I collect these calendars in order to include them in a weekly event email that is automatically generated via a perl script which parses them. The calendars are regional, so there are a lot of them.

Your script promises to be very useful to me because I prefer the month view and now that iCal doesn’t show events in 2 columns for each date, I am frequently forced to leave the month view to view all of a day’s events, which I find rather jarring.

Rob

]]>
By: Rob http://www.red-sweater.com/blog/2852/toggle-calendar-focus/comment-page-1#comment-276024 Fri, 18 Jan 2013 15:02:06 +0000 http://www.red-sweater.com/blog/?p=2852#comment-276024 Awesome. I’m going to give this a try. I’ve been using FastScripts for awhile now BTW. Very nice.

]]>