Jump to content

oderwat

Member
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by oderwat

  1. This workflow generates some useful checksums from file contents. It is implemented as file action which makes it easy to use!

     

    It works pretty nice with my "Last changed files" workflow and also can be used to checksum a file in finder by setting a hotkey to the "File Selection" in "Find File".

     

    ONtQ.jpeg

     

    You can download it here: https://github.com/oderwat/alfredworkflows/raw/master/Checksums.alfredworkflow

     

    My other workflows are here: https://github.com/oderwat/alfredworkflows

     

    Versions:

     

    V1.0 - Initial releases

  2. Hey @vdesabou!

     

    I modified "my" version of the script to handle the spaces in Names, grabbed that visible message idea and made the clipboard copying optional when you press CMD on rename (I hate to mess up my clipboard as side effect).

     

    I did not add your extra script cause I like to have the things "visible" so others can check it out and use part of it.

     

    Still not tested very much! I am not sure if all escaping works as expected. There may be still problems with some filenames.

  3. So there's something screwy with Mac #1.

     

    Can you run a quick test and enter the following in a terminal window to see it it gives a result?

     

     

    mdfind -onlyin ~/ 'kMDItemDateAdded >= $time.now(-7200)' 

     

    This should list all files below your user home added in the last 2 hours.

     

     

    And please try:

     

     

    php -v 

     

    and give me the result please!

     

    May be hard to find that problem this way... probably something easily overseen :(

  4. Would it be possible to skip cache files?

    In my case it shows a lot of sass cache files.

     

    Yeah I am still optimizing. I try to not make a "white list" of folders but a black-list. So my extra folders in home are all caught.

     

    Can you tell me the path of the files and probably also make a "mdls <filename>" in the terminal with some of them?

     

    I guess you have multiple paths with such files (inside the .sass-cache folders I suspect)?

     

    As I can not filter in spotlight for a file path I may need to exclude them from the results but would like to see if there is a better way to filter them out.

  5. This sounds great. Thanks for doing it. But I'm sorry to say that it's not working for me. It tells me that it's scanning (so I think I have it installed correctly), but it always tells me "No Docs." I've tried saving files of various sorts (.txt, .pages, .js, .doc) in a variety of directories (~home/Sites/folder, ~home/Dropbox/folder, ~/home/Documents/folder) but they don't show up on the list.

     

    I'm 100% confident that it's something I've done wrong. Still, I thought I'd let you know. And make a sad face :(

     

    - David

     

    It relies on Spotlight working and indexing your data and only scans in your home folder. Can you find those files by using normal Spotlight search?

  6. Well there was a feature Request for adding "Rename File" to the internal commands on files here: http://www.alfredforum.com/topic/1675-add-a-rename-action-to-the-file-action-list/

    David Ferguson quickly replied with an custom workflow (with some smart Alfred magic making Alfred calling search on itself!)

    But his version was a bit raw and limited to files only. So I enhanced it as follows:

    1. It uses "mv" instead of cp / remove. This way it will work on folders (and bundles).

    2. I made it so that the original name is the default when you rename a file.

    3. I added Alleyoop update to it as I may enhance / debug in the future.

    You can get my "Rename File" workflow version from here: https://github.com/oderwat/alfredworkflows/raw/master/Rename%20File.alfredworkflow

    V1.1: Visible rename confimation. Fixed renaming of files with spaces in name. CMD Return on rename now copies the resulting file path to the clipboard. Upgraded Alleyoop code too.

    All my current workflows are available here: https://github.com/oderwat/alfredworkflows

  7. OK.. I enhanced the quick version of David a bit:

     

     

    1. It uses "mv" instead of copy / remove. This way it will work on folders (and bundles) and keeps its attributes (could add a touch to bump the date though).

    2. I made it so that the original name is shown when you rename a file!

     

    https://github.com/oderwat/alfredworkflows/raw/master/Rename%20File.alfredworkflow

     

    P.S.: I make it update able with Alleyoop and may enhance it further.. if you want it back David just tell me!

×
×
  • Create New...