Jump to content

slyfox

Member
  • Content Count

    28
  • Joined

  • Last visited

  1. +1 That is the only things that TextExpander has going for it.
  2. Thank you for adding things.
  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 for a quick snippet editor
  5. slyfox

    Duplicate Snippets option

    +1 Please add CMD+D to duplicate a snippet in the snippet editor window.
  6. 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.
  7. 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.
  8. 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?
  9. 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.
  10. Hotkey -->> Run JS script That is all I have.
  11. 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, " ");
  12. 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, " ");
  13. 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?
  14. Can someone please help me solve this problem: When I finish writing a report, I need to replace XX with the last name of the client. So far, I manually have to do these steps: 1. Copy the last name of the client 2. CMD+Option+F 3. Type XX 4. Hit Tab 5. Paste the last name of the client (CMD +V) 6. Move the mouse cursor to All button. I use Ulysses for writing. Can this be done faster?
×