Jump to content

Zip for Alfred 3: compress files and folders


Recommended Posts

Zip: compress files and folders within Alfred

Overview

  • Zip files and/or folders
  • Finder and Alfred File Action supported
  • Unique filename
  • Remove .DS_Store files

Triggering

  • keyword zip - after selecting files and/or folders in Finder, bring Alfred and type zip. You can optionally type the zip filename. You can optionally hold control key to select the zip file folder destination.
  • hotkey - after selecting files and/or folders in Finder hit the hotkey. A new zip file will be created based on selection.
  • Alfred File Action - select files and/or folders in Alfred file browser to zip (see screenshot below).

zip_fa.png

 

What’s new in version 4.0

  • Alfred 3.0 support

What’s new in version 3.0

  • Select the destination folder by holding control key (keyword zip)
  • Updated to Alfred 2.0.3 (187)
  • Alleyoop 2 support

Download

  • Version 4.0
  • Release date: 08 Jun 2016
  • Requires Alfred 3
  • Download Now

Zip for Alfred 2

  • Version 3.0
  • Release date: 23 Apr 2013
  • Requires Alfred 2.0.3 (187)
  • Download Now
Edited by Carlos-Sz
Link to comment
  • 1 month later...

 

Thank you. Initial post download link fixed.

 

It works perfectly. Being able to name the archive quickly is perfect.

Thanks for this!

 

Great to hear! Sometimes I need to name an archive too.

 

Wow i love your nice little workflow. It pretty much seems to be a lot like the stuff I would love to see in a dropbox workflow I described right here: http://bit.ly/15SRd4O

 
Maybe you could have a look and give me some tips or a possible solution how to get that done.
 
Thanks in advance,
MrMuetze

 

I’ll take a look. I also use DropBox.

 

I made a simple workflow for it (move a file to Public folder and copy the URL to the clipboard) that I still need to update to make it even easier to configure.

 

Brilliant!!!

Thanks for sharing :-)

 

Thank you. 

Link to comment
  • 1 month later...

Any progress on selection of folder? I have tried this myself, well, just making the zip on my desktop with AppleScript and with BASH ... I can make a zip on my desktop with ditto, but, it's just not as nice as this workflow is overall! I just personally hate that Finder insists on putting archives in the root folders.

Link to comment

Any progress on selection of folder? I have tried this myself, well, just making the zip on my desktop with AppleScript and with BASH ... I can make a zip on my desktop with ditto, but, it's just not as nice as this workflow is overall! I just personally hate that Finder insists on putting archives in the root folders.

 

To be honest I forgot about it.

 

I’ll add it to my to do list. Thanks. :)

Link to comment

Any progress on selection of folder? I have tried this myself, well, just making the zip on my desktop with AppleScript and with BASH ... I can make a zip on my desktop with ditto, but, it's just not as nice as this workflow is overall! I just personally hate that Finder insists on putting archives in the root folders.

 

OK.

 

Version 3.0 is out:

  • Select the destination folder by holding fn key (keyword zip)
  • Updated to Alfred 2.0.3 (187)
  • Alleyoop 2 support

See initial post for details.

Link to comment

This is awesome

 

Great workflow, really useful

 

Thanks 

 

Thank you.

 

Thanks a lot for this :)

 

What do I use to select destination when I don't have a "fn" key, using the wired Apple keyboard?

 

I completely forgot about wired one. I will use less the fn key for now on.

 

I updated the workflow to use the control key (download link in initial post).

 

Anyway, you can change it by double clicking the fn as seen in the screenshot below:

 

zip_fn.png

Link to comment

Thank you for this update Carlos! I have one tiny little annoyance I can't put my finger on. If I do NOT select an item first, I get the follwing in the results title line: "Seletc items in Finder first" : notice the spelling? I looked over the scripts and it appears to be spelled correctly in them, sooo, any idea where this is coming from?'

 

Sorry, I found it, it's in "zip_filter.scpt" line 8

Edited by RodgerWW
Link to comment

Thank you for this update Carlos! I have one tiny little annoyance I can't put my finger on. If I do NOT select an item first, I get the follwing in the results title line: "Seletc items in Finder first" : notice the spelling? I looked over the scripts and it appears to be spelled correctly in them, sooo, any idea where this is coming from?'

 

Sorry, I found it, it's in "zip_filter.scpt" line 8

 

Thank you! Fixed. :)

Link to comment
  • 3 weeks later...

This is an awesome workflow!

 

One question though, it seems that I can only choose a directory that is immediately in my home dir, would it be difficult to extend it so I can choose eg. Dropbox/Public ? (right now if I type this, it tells "Search google for dropbox/public"  )

Link to comment

This is an awesome workflow!

 

One question though, it seems that I can only choose a directory that is immediately in my home dir, would it be difficult to extend it so I can choose eg. Dropbox/Public ? (right now if I type this, it tells "Search google for dropbox/public"  )

 

I’m not sure why the Alfred File Filter, which I don’t have much control over it, is sending you to Search Google but you can type another keyword such as Public.

Link to comment
  • 3 weeks later...

Tried all the zip workflows available and this is the best one I think.

What's good is it removes .DS_Store when zipping...

 

Now, is it tough to modify codes to add option to zip multiple files/folders not into single archive?

I'd like option something like: A.folder B.folder > A.zip B.zip

Link to comment

Tried all the zip workflows available and this is the best one I think.

What's good is it removes .DS_Store when zipping...

 

Now, is it tough to modify codes to add option to zip multiple files/folders not into single archive?

I'd like option something like: A.folder B.folder > A.zip B.zip

 

So it is basically a zip for each selected folder.

 

I’ll think about it and see how I can fit this feature in the current code.

 

Thank you for your feedback!

Edited by Carlos-Sz
Link to comment
  • 2 weeks later...

Tried all the zip workflows available and this is the best one I think.

What's good is it removes .DS_Store when zipping...

 

Now, is it tough to modify codes to add option to zip multiple files/folders not into single archive?

I'd like option something like: A.folder B.folder > A.zip B.zip

 

For that, I'd just download Keka here: http://www.kekaosx.com/en/

 

If you select multiple files and go to file actions, open with, and choose "Keka," it will zip them individually by default.  (Or just select a bunch of files and drag them onto Keka in the dock.  It will zip them without even opening up.  Nice little app.)

 

Actually, what I like BEST about this workflow is that you can zip multiple files into one.  There's just one problem for me: I just want to use the file actions method, no hotkeys or keywords.  Is there a way to change the workflow so I can still choose a name for the resulting zip file?  (Right now it seems the only way to choose the output name is by using a keyword, instead of using the file actions method of activating.)  This could be done with a callback to a keyword "%zipname: " something like Vítor did here: http://www.alfredforum.com/topic/2722-renameaction-—-renames-a-directory-or-file-preserving-the-extension/?p=15825

 

Edit: One more thing—can you set it to automatically reveal the output zip file in Finder on completion?  I think that's just a matter of adding an extra applescript output to "tell finder to show {query}" but I'm not sure how to implement precisely.

Edited by Wildcard
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...