Skip to content

Commit 5a6b832

Browse files
authored
Evernote patch (raycast#546)
* adding Evernote integration * Adding assumption
1 parent 2f41c13 commit 5a6b832

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/osascript
2+
3+
# Assumption: Evernote running (launching and waiting not great UX)
4+
#
5+
# Required parameters:
6+
# @raycast.schemaVersion 1
7+
# @raycast.title Create Evernote Paste Clipboard
8+
# @raycast.mode silent
9+
#
10+
# Optional parameters:
11+
# @raycast.icon ./images/evernote.png
12+
# @raycast.packageName Evernote
13+
#
14+
# Documentation:
15+
# @raycast.description Creates a new Evernote, pastes in the contents of the clipboard, and positions the cursor in the title area.
16+
# @raycast.author Aaron Miller
17+
# @raycast.authorURL https://github.com/aaronhmiller
18+
19+
tell application "System Events"
20+
tell process "Evernote"
21+
set frontmost to true
22+
click menu item "New Note" of menu "File" of menu bar 1
23+
delay 2 --needed b/c Electron apps slow
24+
click menu item "Paste" of menu "Edit" of menu bar 1
25+
delay 1
26+
tell application "System Events" to key code 48 using shift down -- shift-tab (move cursor to Title area)
27+
end tell
28+
end tell
29+
do shell script "echo New Evernote created"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/osascript
2+
3+
# Assumption: Evernote running (launching and waiting not great UX)
4+
#
5+
# Required parameters:
6+
# @raycast.schemaVersion 1
7+
# @raycast.title Create Evernote
8+
# @raycast.mode silent
9+
#
10+
# Optional parameters:
11+
# @raycast.icon ./images/evernote.png
12+
# @raycast.packageName Evernote
13+
#
14+
# Documentation:
15+
# @raycast.description Creates a new Evernote.
16+
# @raycast.author Aaron Miller
17+
# @raycast.authorURL https://github.com/aaronhmiller
18+
19+
tell application "System Events"
20+
tell process "Evernote"
21+
set frontmost to true
22+
click menu item "New Note" of menu "File" of menu bar 1
23+
end tell
24+
end tell
25+
do shell script "echo New Evernote created"
5.96 KB
Loading

0 commit comments

Comments
 (0)