Jump to content

iEnno

Member
  • Content Count

    34
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by iEnno

  1. On 14.4.2017 at 0:39 AM, david.heberling said:

    Is there a way you can statically add a location to the script.

     

    It's actually quite easy. Open the workflow and double click the action that says "open URL" (the upper right one).

    In the URL field (which currently says "busycalevent://new/{query}") you just append the keyword "in" and your location. Be aware that you have to URL-encode some characters, i.e. spaces become "%20". A list of those characters can be found here.

     

    An example: if your location was "my sweet home", the URL field should be changed to "busycalevent://new/{query}%20in%20my%20sweet%20home".

    Hope this helps.

     

    On 24.4.2017 at 0:46 AM, MacWorks said:

    Is there any way to modify this workflow to work with Daylite instead?

     

    I'm sorry. I don't know Daylite. BusyCal works with URL schemes, so you may try to look for URL scheme support in Daylite and build something like this yourself.

  2. When I press Ctrl+T it writes "open -a 'Path Finder' ./" in iTerm and hit enter.  

    If I knew Path Finder was also an option I would have just sugested using the keyword ip. It will open the current iTerm directory in Path Finder thanks to a user contribution on github. I will update the initial post to state this clear.

    Nevertheless Keyboard Maestro seems like a good fit for this. You could also use TextExpander which I use for common terminal commands. There are many ways to achieve your goal, so I'm glaf you found yours :)

  3. @politicus: ForKlift is a hard one, because neither does it support AppleScript nor does it work with the standard "open" command in terminal. I found this and managed to get it work by triggering the following AppleScript:

    on alfred_script(q)
    	tell application "iTerm"
    		tell the current session of current terminal
    			write text "absPath=`pwd`
     
    (cat<<EOF
     
    if application \"ForkLift\" is not running then
        activate application \"ForkLift\"
        delay 1
    end if
     
    activate application \"ForkLift\"
     
    tell application \"System Events\"
        keystroke \"g\" using {command down, shift down}
        keystroke \"$absPath\"
        keystroke return
    end tell
     
    EOF
    ) | osascript"
    		end tell
    	end tell
    end alfred_script
    

    Try it yourself and tell me if that works for you.

  4. Is there any way to make it open in a new terminal tab instead of a new window?

    Will have a look into, thanks for suggestion.

     

    Nice one!

    Keep in mind you can also do "open ." in terminal or iTerm and open it's current path in Finder

    Well, that's exactly what the script does. It's just the Alfred way ;)

     

    Found this on Github, very nice and easy to use. Really like it.

    Thanks, man. Always nice to hear that something I built for myself is helpful to others. Really appreciate it.

  5. So here's a workflow to open the current Finder window in Terminal or iTerm, depending on what you like to stick with. Also the other way round is possible.

     

    • ft: open current Finder directory in Terminal
    • tf: open current Terminal directory in Finder
    • fi: open current Finder directory in iTerm
    • if: open current iTerm directory in Finder

    For Path Finder fans:

     

    • pt: open current Path Finder directory in Terminal
    • tp: open current Terminal directory in Path Finder
    • pi: open current Path Finder directory in iTerm
    • ip: open current iTerm directory in Path Finder

     

    GitHub.

    Direct Download.

     

    screenshot_ft.png

×
×
  • Create New...