Jump to content

Jono

Member
  • Posts

    178
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    Jono reacted to yuvi in Add any prefix string to the names of the selected files [action workflow]   
    My file management scheme requires me to add prefixes to the names of files, which are then picked up by Hazel and handled in various ways. My applescript skills are admittedly crude, but here is my workflow (driven by a file action) to prompt the user for a prefix string and then add that string to the names of all the selected files. Right now, the default prefix in the dialog box is "archive-" but that's easily changed from within the simple applescript.

    The workflow is here: http://d.pr/f/bDxq

    But if you just want a peek at my weak applescripting chops, here you go:
     
    on alfred_script(q) set prefixValue to display dialog "Enter prefix string: " default answer "archive-" set AppleScript's text item delimiters to tab set fileList to every text item of q repeat with theFilename in fileList set theFile to POSIX file theFilename tell application "Finder" set fileAlias to theFile as alias set fileName to name of fileAlias set newFilename to (text returned of prefixValue & fileName) set name of file theFile to newFilename end tell end repeat end alfred_script Enjoy!
  2. Like
    Jono reacted to Florian in Google translate workflow   
    Hey guys,
     
    here is a Google Translate workflow i made based on Anders Bech Mellson's work. Once again, I don't want to take credit for a work that isn't mine. I'm just feeding back to alfred the results of an already good extension.
     
    Press enter to copy to clipboard, FN to look up on the actual translate.google.com website. 
     
    It's really easy to add / remove / edit for your own set of languages, just look at the workflow.
     
    http://cl.ly/MAI3
  3. Like
    Jono reacted to epogue in Pinboard Search (beta?)   
    It's no problem. On line 30 in extension_utils.php, replace $c->addChild( $key, $b[$key] ); with
    $c->$key = $b[$key];  
     
    Then, in search.php, on lines 38 - 41, remove the methods (utf8_encode and htmlentities) wrapping the attribute calls. For instance, instead of 'uid' => utf8_encode ( htmlentities ( $bookmark->url ) ), it should read:
    'uid' => $bookmark->url,
  4. Like
    Jono reacted to ddjfreedom in Recent Downloads with Feedback   
    Fixed the default action issue. Now if 'install_action' is set to 'open', it should directly open the file. And now the script provides a unique uid every time it is invoked, so the results won't get reordered by Alfred. http://d.pr/f/lj1r also in AlfPT.
  5. Like
    Jono reacted to ddjfreedom in Recent Downloads with Feedback   
    It's now also in AlfPT
  6. Like
    Jono reacted to ClintonStrong in Recent Downloads with Feedback   
    Nice workflow. Just a quick tip: you can tell Alfred to make the icon match a file's icon. In the resulting XML, it'd look something like this:
     
    <icon type="fileicon">/path/to/file</icon>
  7. Like
    Jono reacted to ddjfreedom in Recent Downloads with Feedback   
    An Alfred workflow for opening or revealing the most recently downloaded items in “~/Downloads”.
      http://d.pr/f/yLXo   The items are sorted in decreasing order according to when they were added to the folder. Items are filtered by whether they contain the query as a subsequence. The result is displayed using the feedback functionality.   Github repo: https://github.com/ddjfreedom/recent-downloads-alfred-v2   Use config.yaml in ~/Library/Application Support/Alfred 2/Workflow Data/recentdownloads.ddjfreedom/ to control the new default behavior:  
     
    Updated: 1. added the option to delete files (holding 'ctrl') (by fmr) 2. result's icon matches file's icon 3. added the option to move files to trash (holding 'cmd') (by fmr) 4. changed the default behavior of certain files: if the item can be installed (an application, an dmg file, a zip file containing those files, etc), the workflow will prompt the user whether to install it. After the installation, if the item installed is an application, the workflow will prompt the user whether to launch it.
  8. Like
    Jono reacted to simonbs in Tweetbot workflow   
    The workflow is updated to only use a single keyword and autocompletion. This makes it way easier to control Tweetbot as well as remember the commands. Grab the new version here.
  9. Like
    Jono reacted to ehrlund in File System Navigation and Text Matching   
    I also noticed that worked. But it would be amazing to have a preference checkbox for searching in file navigation to always work like there was a "*" infront. I know it's a small thing, but for users coming from LaunchBar this would be lovely "glue" feature. 
  10. Like
    Jono reacted to aiyo in Navigate back from an alias or symlink?   
    I also think being able to go back from a symlinks would be a neat feature.
    Maybe using the arrow-up key, like in default mode, to access previous visited folders.
  11. Like
    Jono reacted to nielsk in Make the Preferences-window resizable   
    I am creating a workflow with a lot of searches. All get added one below each other. It would be really great if I could make that window bigger to be able to see all at once.
  12. Like
    Jono reacted to ClintonStrong in Workflow idea: Quickly navigate to recent folders   
    Thanks! Just remembered reading about file icons in your post on generating feedback, so I've updated my workflow to use the proper icons. Link: http://cl.ly/0V1G2x0B0I3Y
     
    Updated my original screenshot to reflect this.
  13. Like
    Jono reacted to jdfwarrior in Weather Workflow (with Conditions and Forecast)   
    Updated 3/18:
    NOTE: Set your location again so a default weather unit gets set initially, then change it.
    Removed saving to the Workflow Data folder and actually save IN the workflow folder now. Should fix issue a few users are seeing and also allows syncing weather location.
     
    Download
  14. Like
    Jono reacted to ClintonStrong in Workflow idea: Quickly navigate to recent folders   
    Sounded like an interesting idea, so I figured I'd give it a go.
     

     
    It uses the same list as the Go -> Recent Folders menu in Finder. I haven't thoroughly tested it yet, so let me know if you have any problems (or any other feeback).
     
    Download
  15. Like
    Jono reacted to Targoran in Manually Sortable Default Actions   
    It would be nice if I could sort the "Default Actions" (File Search -> Actions) manually.
    While "last used per file type" is a nice feature, I'd rather have a fixed order sorted by my priorities.
  16. Like
    Jono reacted to simonbs in Wikipedia Auto Complete Workflow (Python)   
    I have updated Peter Okmas Feedback class to set "valid" and "autocomplete" on the item. Read more about this here.
     
    You can download the updated class here, if you want it.
  17. Like
    Jono reacted to palobo in Spotlight Comments With Ease   
    Workflow Description
     
    With this little workflow, you can select a bunch of files, trigger the workflow (hotkey or keyword) and type in the comments you’d like to add. The extension allows for a default action when encountering existing spotlight comments, as well as interactive mode and parameter options (more on that later).
     
     
    Installation and Setup
     
    Download and import. As for setup, there isn’t much to it. Simply define what your desired default action should be when encountering existing comments. Change property defaultOverwrite : "append"  accordingly. Possible options are append, replace and interactive.
     
     
    Extension Usage
     
    Triggering the extension and entering text without any of the following parameters will default the the behaviour discussed above, with the exception of delete of course.
    -d — Will remove any spotlight comment from the selected files;
    -a — Will append to existing comments;
    -r — Will replace existing comments;
    -i — Will function interactively allowing you to decide on a file by file basis. It will display the existing comment to facilitate your decision too
    There is no need to leave any space after the parameter but you can do so if you prefer (it will be stripped from the begging)
     
  18. Like
    Jono reacted to Florian in Currency Converter   
    So I made a workflow with fed back results.
     
    But I made it a somewhat special way in that currencies are defined within the workflow. I really like how simple it makes it though.
     
    But it's easy to change for your own currencies (if like me you only ever use the same) or to combine with the one posted by theFeverDog (first post of this topic) to get something more dynamic.
     
    http://cl.ly/MBJ8
  19. Like
    Jono got a reaction from koiyu in Remember the last typed query for 5 mins [It's back!]   
    I like the idea of using the up arrow to access past searches, but still find myself missing the last search being there automatically when I re-activate Alfred. I hope the option to show it makes it's way back into the app before the app is finalised.
     
  20. Like
    Jono got a reaction from twinpeaks in Remember the last typed query for 5 mins [It's back!]   
    I like the idea of using the up arrow to access past searches, but still find myself missing the last search being there automatically when I re-activate Alfred. I hope the option to show it makes it's way back into the app before the app is finalised.
     
×
×
  • Create New...