Skip to content

Commit f1c0a0b

Browse files
authored
Add script to delete line at current cursor position (raycast#903)
* delete line * add packageName * New floating sticky
1 parent 62a9e84 commit f1c0a0b

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
5.94 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title New Floating Sticky Note
6+
# @raycast.mode silent
7+
# @raycast.packageName Stickies
8+
9+
# Optional parameters:
10+
# @raycast.icon images/stickies.png
11+
12+
# Documentation:
13+
# @raycast.description This script creates a new floating note in the Apple Stickies application
14+
# @raycast.author Annie Ma
15+
# @raycast.authorURL http://www.anniema.co/
16+
17+
tell application "Stickies"
18+
activate
19+
tell application "System Events"
20+
keystroke "n" using command down
21+
keystroke "f" using command down & option down
22+
end tell
23+
end tell
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Delete Current Line
6+
# @raycast.mode silent
7+
# @raycast.packageName Developer Utilities
8+
9+
# Optional parameters:
10+
# @raycast.icon ⌨️
11+
12+
# Documentation:
13+
# @raycast.description This script deletes the line at cursor position.
14+
# @raycast.author Annie Ma
15+
# @raycast.authorURL http://www.anniema.co/
16+
17+
tell application "System Events"
18+
keystroke "k" using control down
19+
keystroke (ASCII character 8) using command down
20+
end tell

0 commit comments

Comments
 (0)