Jump to content

Search the Community

Showing results for tags 'path'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 16 results

  1. Friends How do I copy the path of selected file to clipboard? Thanks amigos Migs
  2. 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: All options (except newline-separation) are available as File Actions also: More details in the README on github. Download: http://cl.ly/YX1Q Github: https://github.com/franzheidl/copy-paths-to-clipboard
  3. One of the major annoyances I have when wanting to go inside a folder that's in some complicated path is actually writing the whole path. In Terminal, I can define aliases and use Tab completion, but I am hoping Alfred can help me achieve more and easier. I know it already has path navigation, with included Tab completion. But here's a scenario I'm thinking of and suggesting for possible implementation. Say I have a couple of PDFs in a path such as `$HOME/Dropbox/school/cs/1st-year/swift/problem-books-swift/` and I know the author of the book is Alfred McMac. But maybe I have more than one of his books and I can't remember the title. Assuming I only have one folder called "problem-books-swift", I'm hoping Alfred could help me search directly in that folder. For example, I could input "problem-books-swift/ Alfred McMac" and it would limit the searches to that folder only. Is this possible in the present version, i.e. to limit the searches to a certain folder? If so, how would you do this? If not, would you consider implementing it? Is it feasible, do you find it useful? Thank you and many congrats yet again on a totally awesome vital app I'm using from a couple of years!
  4. I've got an applescript which opens a specific path in the finder. When implementing this applescript in Alfred it behaves different. for instance, setting "q" to "~" (the home directory) will open the folder in the finder. But passing "~" in alfred in my workflow as an argument will reveal the folder, not open the folder. I want it to open the folder, similar to how the go to function in Finder works. Not reveal it. In Alfred I am using the Run NSAppleScript action and a keyword with an argument to trigger the script. set q to "~" set folder_var to true set mypath to q as text if mypath = "~" then set q to "/Users/David" else if "~" is the first character of mypath then set mytext to text 2 thru (count of mypath) of mypath set q to "/Users/David" & mytext end if set q to (POSIX file q) as alias if kind of (info for q without size) is not "Ordner" then set folder_var to false end if if folder_var is true then if mypath = "~" then set q to "/Users/David" set q to (POSIX file q) as alias end if tell application "Finder" activate make new Finder window to folder q end tell else tell application "Finder" activate reveal q end tell end if
  5. Hello everyone, I'm using the "previous path" shortcut several times a day and always have the same issue. Alfred doesn't remember what i used as a filter before like this: I use 1702 to filter out a certain date. However when i use the "previous path" shortcut i would like to have the option that Alfred remembers that i filtered for "1702". Cheers, Frozen
  6. Hello everyone, I'm using Alfred at work for different paths on the Server. I'm doing so via a List Filter that contains all the Paths and passes them to the Action "Browse Alfred". The Paths look something like this: "/Volumes/pub/fdw/Project/ProjectNumber/ProjectNumberstuff/3_Electric/03_Konstruction/04_Presentations/" What I'd like to do is that i browse that path like this: "/Volumes/pub/fdw/Project/ProjectNumber/ProjectNumberstuff/3_Electric/03_Konstruction/04_Presentations/*1110" I can create the "*1110" or only "1110" which would be enough via another List Filter selection, but Alfred cannot browse that Folder as it doesn't exist in that way. Does anyone have another solution. P.S.: @Andrew It would be really nice if you could add a way to filder the List Filter in Alfred as its hard to find something with a lot of items. Cheers, Frozen
  7. Hi, I'm using Alfred 3, and find it really useful for searching for files. Often when I've searched for a file I want to copy the path to the clipboard - for example, to use it in the terminal or copy into some code I'm writing. At the moment I have to press Right Arrow on the file in the results list, and then scroll down to the bottom of the list to find the 'Copy path to clipboard' option. Is there any way to make this quicker/easier? Ideally, I'd love to be able to change what Ctrl+Enter or Opt+Enter do on a file in the results list - but none of the options in the configuration are 'Copy path to clipboard'. Similarly, although I can see a list of 'Default Actions' in the Alfred preferences, I can't see a way to re-order these. Is there any way to do this? Cheers, Robin
  8. Trying to pass multiple paths from file action as args to a command in a bash script. Is there a way to do this?
  9. I do a lot of WordPress development and so have a lot of folders called 'wp-content' in my Sites folder. I have file filter that searches only within Sites, then I type "wp-co" and all the wp-content folders are listed. I can see their paths under their names and scroll to the one I want. Not bad, but I'd like something even better. What I'm really after is a file filter that when I type 'wp-cxc' will show me all the wp-content folders with "xc" (such as "Sites/xchange/wp-content/ ) in the path name. Or 'wp-cap' for all wp-content folders that have "ap" in the path. The problem I'm having is that Alfred doesn't search in the path name, so if I activate my filter and type, for example 'wp-cxchange' Alfred won't return the "wp-content" folder in the parent directory that contains 'xchange'. So is there a way to do this with the basic Workflow building blocks or will I need a script? Thanks!
  10. I have an executable located at ~/Documents/anki/runanki echo $PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin I created an alias in .bash_profile, but I know from searching that Alfred doesn't load the local environment. I would like to call runanki from a run script, but can't figure it out. I don't really care about using the alias in Alfred. Have tried the following, all of which work in the terminal. What is my hangup? /Users/drlulz/Documents/anki/runanki cd ~/Documents/anki runanki shopt -s expand_aliases if [ -f "${HOME}/.bash_profile" ] ; then source "${HOME}/.bash_profile" fi runanki
  11. I'd quite like to be able to specify parent directories in the Open command to filter down results, such as open project1/index.html That would make the search function more useful when dealing with common filenames. In the above example, project1 would just be the parent directory; the path isn't absolute. The full path for that file might be /Users/me/projects/project1/index.html for instance
  12. Hi and good day, Say mostly I want to access: /Volumes/LC1/Documents-LC1/_HTo/… Is there not a simpler way than to always paste the path into the search field? Should I set this as default somewhere in the prefs? ( haven't found anything there. ) (And please if where could one read more about this, - chapter no.?) / with best regards, Omar K N Stockholm, Sweden
  13. Hey everyone, here's one I can absolutely not figure out for myself: if have this very simple bash script called launcher.sh #!/bin/bash node="/usr/local/bin/node" ${node} test.js 127.0.0.1:8374 &> node-out.txt & and a quite simple node script called test.js require('easyimage').thumbnail({ src:"a.jpg", dst:"b.jpg", width:60, height:60 }).then( function(image) { console.log('success'); }, function (err) { console.log(err); }); If i call from the terminal node test.js or ./launcher.sh, then everything is fine (I get image a.jpg to be cropped and written to b.jpg), but if i trigger it through a script filter containing only ./launcher.sh, then i get this error: [Error: File not supported.] and I have tried with another less used npm package for test.js: var resizeCrop = require('resize-crop'); resizeCrop({ format: 'jpg', src: "a.jpg", dest: "b.jpg", height: 60, width: 60, gravity: "center" }, function(err, filePath){ if(err) console.log(err); else console.log("success"); } ); which throws a more verbose error when triggered from a script filter: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1001:11) at Process.ChildProcess._handle.onexit (child_process.js:792:34) Do you guys have any idea why it works from the terminal but not from alfred? On my real script, I'm writing/reading other files and i never have any issues with it...
  14. I thought i'd give it a try and there is my first workflow. Nothing big here but here it is. Translate a given DOS path (file or folder) to a UNIX path and reveal it with Finder For the times when your coworkers give you DOS path to files on your network and you want to get there quickly, use this. Advice For an easier use, mounted volumes must have the same name on both PC and Mac computers on your network. Usage Type the keyword "path" then type the DOS path you want to convert. It will open Finder to file:///Volumes/C/Share/specs Features The new converted UNIX path will be pasted in your clipboard. Links Homepage Download worflow
  15. Hey guys ! Let me explain the situation first : I work with people on windows but i work on OSX. I often get DOS path on a shared volumes (mounted with samba) where documents i need are stored. Usually, it's .png or other graphic files. And there we are, i want to do a workflow where i type a keyword then paste the DOS path i was given; then i run a bash script that translate the DOS path to Unix path (script i already have); finally i want that new path to be open in my browser. So far, i made the input with a "keyword" then the {query} sent to a "Run script" and the new {query} sent to a "Notification". It works that way but it's not what i want. I can't figure out how to send the new {query} to the browser though. Did i miss something ? Thanks for the help GoOz
  16. Hi there I would like to run a python script with an Alfred workflow but I realized that the python version I run in the terminal is not the same Alfred is running The python I use was installed with homebrew, and my path is set up so I run the "brew installed" python which is 2.7.3 and is located here: $ which python $ /usr/local/bin/python I setup my script to print out the python version with this statement: $ print(sys.version) When I run it in the terminal I get 2.7.3, but the workflow notification prints out 2.7.2 The shebang in my script.py is #!/usr/bin/env python If I set my shebang to #!/usr/local/bin/python everything work fine and the workflow notification prints out 2.7.3 But I don't want to change all my scripts and hardcode the path, I would prefer to use #!/usr/bin/env python Anybody has a trick? Is there anything to do with my ~/.bash* dotfiles, or is this Alfred not loading the user environment? Thanks for your help!
×
×
  • Create New...