Jump to content

slyfox

Member
  • Content Count

    28
  • Joined

  • Last visited

  1. How do you import 1.4.2 into Alfred? Changing extension in the info does not work. While waiting for a reply, a simple solution is to add a file filer workflow with search scope limited to "~/Library/Metadata/com.devon-technologies.think3"
  2. +1 That is the only things that TextExpander has going for it.
  3. How do I create a workflow that will pass multiple commands to the terminal with a pause in between? I am trying to simulate the following: Open terminal ssh nuc@192.168.1.3 Insert password Press return to submit password I tried the following workflow: keywords to open a terminal and enter ssh nuc@192.168.1.3 && sleep 2 && password && yes Alfred ends up entering everything as a single line
  4. +1 Please add CMD+D to duplicate a snippet in the snippet editor window.
  5. Is there a way to achieve "March 28" rather than "March 28, 2017" date snippet? I just need the full name of the month without the year.
  6. All of the scripts assume that I need to find a file before doing something to it. What I need is to tell Alfred to simply duplicate a specific file. I do not need to search for it as it is the same file every time. Scenario: I need to write a report. 1. Trigger Alfred 2. type: "newreport" 3. Alfred Duplicates my "Report Template" pages document and reveals it in Finder. 4. I give the report a name and open the report.
  7. This script adds an Alfred menu when browsing files. Is there anyway to add a specific keyword to manipulate a specific file rather than navigate folders to find the file via Alfred?
  8. Can someone please help me create a workflow: 1. Duplicate specific finder file (Pages document - no need to search) 2. Open or reveal the copy of the file I can't figure this out. Alfred has file filters or opening a specific file but not manipulating specific file.
  9. Hotkey -->> Run JS script That is all I have.
  10. Set a Hotkey with /usr/bin/osascript (JS) and nothing happens when I copy specific text to clipboard in text editor. var app = Application('System Events'); app.includeStandardAdditions = true; var result = app.theClipboard(); // Replace double .. result = result.replace(/\".."/g,". "); // Replace duplicate words result = result.replace(/\b(\w+)\s+\1\b /g, "$1 ");; // Replace double spaces result = result.replace(/ /g, " ");
  11. Do I sue keyword to script? Do I use regular bin/bash language or choose JS in Alfred? var app = Application('System Events'); app.includeStandardAdditions = true; var result = app.theClipboard(); // Replace double .. result = result.replace(/\".."/g,". "); // Replace duplicate words result = result.replace(/\b(\w+)\s+\1\b /g, "$1 ");; // Replace double spaces result = result.replace(/ /g, " ");
  12. Please excuse my lack of knowledge about java as I am just a regular user. I use TextExpander and found a JavaScript that can help me edit my reports. This is what I use in TextExpander // Start with the clipboard content var result = TextExpander.pasteboardText; // Replace double .. result = result.replace(/\".."/g,". "); // Replace duplicate words result = result.replace(/\b(\w+)\s+\1\b /g, "$1 ");; // Replace double spaces result = result.replace(/ /g, " "); Is there any way to make Alfred to the same? I know I can create a javascript workflow that can be triggers using a keyboard shortcut but how do I make it work with clipboard content?
×
×
  • Create New...