Skip to content

Instantly share code, notes, and snippets.

@erkkap
Created January 25, 2014 12:17
Show Gist options
  • Save erkkap/8615482 to your computer and use it in GitHub Desktop.
Save erkkap/8615482 to your computer and use it in GitHub Desktop.
This AppleScript converts the clipboard contents to plain text and shows a notification
-- This AppleScript converts the clipboard contents to plain text
set the clipboard to (get the clipboard as text)
-- Show notification with a preview
display notification (the clipboard) with title ("PlainTexted!")
-- Add a small delay so the notification has the time to launch
delay 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment