Actions


Action Types

  1. Application Actions
    • Open - Open in default application
      • Text and Image - Saves the clipping to a file in the temporary folder and opens this file in the default application.
      • Link - Opens link in default browser.
      • File - Opens file/folder if exists and has permission to open.
      • Files - Opens first file/folder if exists and if have permission for open.
    • Save to File
      • Text and Image - Saves the clipping to the selected file.
      • Link, File and Files - Not supported.
    • Search with Google (action removed in version 1.4.2, you can add as AppleScript Action)
      • Text and Link - Search the clipping text with Google.
      • Image, File and Files - Not supported.
  2. AppleScript Actions - User Defined Actions using AppleScript
    • Before the AppleScript is executed, the clipping is inserted into the clipboard.
  3. Workflow Actions - User Defined Actions using Automator Workflow
    • Before the Automator Workflow is executed, the clipping is inserted into the clipboard.

How Add AppleScript or Workflow Action

  1. Create AppleScript or Workflow file in Script Directory (~/Library/Application Scripts/cz.jv.ClipboardAction)
    • The easiest way is use some applescript examples from this website below.
  2. Load All Script Actions in Clipboard Action (Press Add Actions -> Load All Script Actions)
    • AppleScript file must have suffix 'applescript' or 'scpt' (e.g. 'Paste.applescript' or 'Paste.scpt').
    • Automator Workflow file must have suffix 'workflow' (e.g. 'Paste.workflow').

AppleScript Examples

Basic

Name AppleScript
Paste
tell application "System Events" to keystroke "v" using command down
Paste as Plain Text
tell application "System Events" to keystroke "v" using {command down, shift down, option down}

Search

Name AppleScript
Search with Google
tell application "Safari" to open location "https://www.google.com/#q=" & (the clipboard as text)
activate application "Safari"
Search with YouTube
tell application "Safari" to open location "https://www.youtube.com/results?search_query=" & (the clipboard as text)
activate application "Safari"
Search with Wikipedia
tell application "Safari" to open location "https://en.wikipedia.org/wiki/" & (the clipboard as text)
activate application "Safari"
Search with IMDb
tell application "Safari" to open location "https://www.imdb.com/find?q=" & (the clipboard as text)
activate application "Safari"
Search with ebay
tell application "Safari" to open location "https://www.ebay.com/sch/i.html?_nkw=" & (the clipboard as text)
activate application "Safari"
Search with Amazon
tell application "Safari" to open location "https://www.amazon.com/s?field-keywords=" & (the clipboard as text)
activate application "Safari"

Others

Name AppleScript
Translate with Google
tell application "Safari" to open location "https://translate.google.com/#auto/en/" & (the clipboard as text)
activate application "Safari"