Skip to content

Commit

Permalink
Add support to Fantastical v3 and drop support to Fantastical v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xilopaint committed Apr 12, 2022
1 parent b02de90 commit ac32c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config.json
Expand Up @@ -44,7 +44,7 @@
"description": "Set default calendar software",
"list": [
["BusyCal", "busycal"],
["Fantastical 2", "fantastical"],
["Fantastical", "fantastical"],
["Google Calendar", "google"],
["OS X Calendar", "calendar"]
],
Expand Down
6 changes: 3 additions & 3 deletions src/osascript/open_fantastical.scpt
@@ -1,11 +1,11 @@
on run argv
tell application "Fantastical 2"
set locationUrl to "x-fantastical2://show/calendar/" & (item 1 of argv)
tell application "Fantastical"
set locationUrl to "x-fantastical://show/calendar/" & (item 1 of argv)
activate
open location locationUrl
end tell
tell application "System Events"
tell process "Fantastical 2"
tell process "Fantastical"
tell menu bar 1
tell menu bar item "View"
tell menu "View"
Expand Down

0 comments on commit ac32c70

Please sign in to comment.