Skip to content

Commit

Permalink
Click paste as plain text command (raycast#705)
Browse files Browse the repository at this point in the history
* Add a paste as plain text command

Coming from Alfred, this was one of the things I was missing. This is a simple
script that can be invoked to paste a string without any formatting.

* Updating script to click paste menu item

* Converted to applescript
  • Loading branch information
iloveitaly authored Mar 31, 2022
1 parent 49c4c46 commit c625193
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions commands/conversions/paste-as-plain-text.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/osascript

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Paste and Match Style
# @raycast.mode silent

# Optional parameters:
# @raycast.icon 📋
# @raycast.packageName Conversions
# @raycast.description A script to click the "Paste and Match Style" menu item, even if it's disabled

# Documentation:
# @raycast.author Michael Bianco
# @raycast.authorURL https://github.com/iloveitaly

tell application "System Events"
tell process 1 where frontmost is true
click menu item "Paste and Match Style" of menu "Edit" of menu bar 1
end tell
end tell

0 comments on commit c625193

Please sign in to comment.