Open ics even in particular calendar?

Is it possible (maybe with AppleScript) to open the ICS finder selection in Calendar, set to my "Work" calendar?

What do you mean?

I use Shortcuts to get information from selected calendar (limited additionally to current date), get needed elements and return to KM variable.

As far as I know you can't programmatically import an ics file. I suppose you could parse out the event(s) it contained then create each event -- but that seems to be a lot of work!

Easier to drive Calendar's "Import..." function with KM actions -- select the "Import..." menu item, keystroke โ‡งโŒ˜G, paste in the file path, hit the button, open the pop-up and select your desired calendar, then "OK"s to completion.

2 Likes

I mean open the .ics file that's selected in finder

Ok thanks! In that case, it's probably easier just to open the file directly from Finder since that will automatically import it to Calendar.

Yes -- unless you want to import the ICS into the something other than the currently-selected calendar. I was assuming that was what you wanted -- always import into "Work", regardless of what calendar is actually selected in the UI.

1 Like