chroniX Posted April 20, 2013 Share Posted April 20, 2013 Could someone please explain how do I make a workflow that will unzip/extract a given folder which contains multiple zip files? I'd like to extract it to the same folder or in a new folder within the original if possible Here is the terminal command: unzip -d path/to/dest//folder Any help would be much appreciated, thanks! Link to comment
jdfwarrior Posted April 21, 2013 Share Posted April 21, 2013 Could someone please explain how do I make a workflow that will unzip/extract a given folder which contains multiple zip files? I'd like to extract it to the same folder or in a new folder within the original if possible Here is the terminal command: unzip -d path/to/dest//folder Any help would be much appreciated, thanks! You could do something like: for zipFile in "<source path here>"/*.zip do unzip -d <path to dest> done I believe that should work Link to comment
chroniX Posted April 22, 2013 Author Share Posted April 22, 2013 Thanks for replying, and sorry to be a bother but if it's not too much trouble can you or anyone else please make this into a workflow for me. I tried doing it myself but have no clue what I'm doing. I first made an Input keyword called unzip, and then I made an action called run script and used your code, and linked them together but nothing happened. Link to comment
jdfwarrior Posted April 23, 2013 Share Posted April 23, 2013 Thanks for replying, and sorry to be a bother but if it's not too much trouble can you or anyone else please make this into a workflow for me. I tried doing it myself but have no clue what I'm doing. I first made an Input keyword called unzip, and then I made an action called run script and used your code, and linked them together but nothing happened. Are you wanting to be able to select a folder and execute this or is it a set folder that you would be executing it on all the time? Link to comment
chroniX Posted April 23, 2013 Author Share Posted April 23, 2013 I would like to select a folder and execute this if possible. Link to comment
jdfwarrior Posted April 23, 2013 Share Posted April 23, 2013 I would like to select a folder and execute this if possible. Think I may have actually messed up the syntax a little. Either way, here's a working version http://cloud.dferg.us/oQf0 Works as an result action. Select a folder, press right arrow to get the result actions, select Unzip Archives Link to comment
chroniX Posted April 23, 2013 Author Share Posted April 23, 2013 (edited) Thanks DF! It works great Would it also be possible to have a folder selected, and type unzip in alfred and have it work that way too? Edited April 23, 2013 by chroniX Link to comment
jdfwarrior Posted April 23, 2013 Share Posted April 23, 2013 Thanks DF! It works great Would it also be possible to have a folder selected, and type unzip in alfred and have it work that way too? I'm not sure what you mean? That's the flow of a result action except pressing the right arrow. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now