Jump to content

franzheidl

Member
  • Posts

    53
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by franzheidl

  1. Just released an Open with Visual Studio Code workflow to work with Microsoft's shiny new editor.

     

    Use keyword vscode to open the current Finder files/selection in Visual Studio Code or enter a path like vscode ~/Documents/myfile.txt to open myfile.txt ('~' will be expanded). You can also search for files and folder using vscode* [searchterm]. Also works as a file/folder action.

     

    vscode.png

     

    Github: https://github.com/franzheidl/alfred-workflows

     

    Download: http://cl.ly/apWC

     

     

  2. Just pushed an Open With Atom Workflow to be used with Github's new text editor (currently in beta):


     


    Use keyword atom to open the current Finder files/selection in Atom or enter a path like atom ~/Documents/myfile.txt to open myfile.txt ('~' will be expanded). Also works as a file/folder action.


     


    You can also search for files to open with atom* [filename].


     


    atom.png


     


    Github: https://github.com/franzheidl/alfred-workflows


     


    Download: http://cl.ly/U8wv


     


  3. Thanks to a Pull Request by github user MarchLiu there's now also an Open With Emacs workflow in my github repository at https://github.com/franzheidl/alfred-workflows.

     

    Use keyword emacs to open the current Finder files/selection in Emacs or enter a path like emacs ~/Documents/myfile.txt to open myfile.txt ('~' will be expanded). Also works as a file/folder action.

     

    You can also search for files to open with emacs* [filename].

     

    emacs.png

     

    github: https://github.com/franzheidl/alfred-workflows

     

    download: Open With Emacs

  4. @Januz,

     

    much appreciated.

     

    So what you're after is 

     

    1.) Copy path(s) –– by default POSIX

     

    and then

     

    2.) Paste the path and optionally have it converted just before pasting it in?

     

    That should be possible, although to me that sounds a bit like an edge/corner case, I usually copy paths for a purpose and already know what format I need them to be.

     

    Anyway, the problem is that you either can simply use Cmd-V to paste – then you'd need an additional intermediate step to modify the contents of the clipboard, OR you'd need to use an additional keyword for converting and pasting.

     

    The first option doesn't sound too sensible to me, the second should be possible but is a bit of the reverse of what I wanted the workflow to be. To make that possible regardless of what application you want to paste in you'd need Applescript GUI scripting (à la "keystroke "V" using {command down}").

  5. copypaths_paths.png
     
     
    Workflow for Alfred 2 to copy the paths of your current files and Documents to the clipboard in a variety of formats: 
     
    * POSIX or HFS paths 
    * '~/'-shortened POSIX paths
    * quoted paths
    * comma- or newline-separated.
     
    Works as a scriptfilter that gives you feedback how your paths would be copied:
     
    copypaths_s_q_n.png
     
    All options (except newline-separation) are available as File Actions also:
     
    copypaths_actions.png
     
    More details in the README on github.
     
    Download: http://cl.ly/YX1Q

     

     

    Github: https://github.com/franzheidl/copy-paths-to-clipboard

  6. New Tab should be fairly easy to do, if you're not afraid of (or generally opposed to) GUI scripting with AppleScript that is  :)

     

    tell application "Terminal"
    	activate
    	tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    end tell
    

     

     

    Should work identically for iTerm as it uses the same shortcut for new Tab.

    I don't think there's another way since neither Terminal.app nor iTerm directly expose Tabs to AppleScript AFAIK.

  7. Just updated my Open With Sublime Text 2 Workflow (that was long hidden away here) by merging in a pull request from dbingham that improved stability and handling of multiple files.

     

    The workflow works either by keyword ("subl") on your currently selected Finder items or as a file/folder action.

     

    Download: http://cl.ly/PW75

     

     

    Github: https://github.com/franzheidl/alfred-workflows

×
×
  • Create New...