Shahrukh Posted September 3, 2022 Share Posted September 3, 2022 Need help with a workflow http://www.packal.org/workflow/copy-or-move-last-download-here Hello everyone I am using this workflow for quite sometime now. I just want help of the community to adjust this a bit. Right now this workflow copy/moves either the last downloaded file or every file in the download folder. I need this workflow to ask me every time as to how many files i need to copy/move. Is this possible? Link to comment
Shahrukh Posted September 4, 2022 Author Share Posted September 4, 2022 @vitor and here too Link to comment
vitor Posted September 4, 2022 Share Posted September 4, 2022 Seems like everything there can be remade with Automation Tasks. Specifically:Files and Folders → List Folder ContentsFiles and Folders → Get Path to Frontmost Finder WindowFiles and Folders → Move Path With the Finder (or Copy Path With the Finder)Arguments Processing → Get Leading ArgumentsYou can use the Keyword Input to ask for more information (like the number of paths to move/copy) and Arg and Vars Utility to save information (Using Variables in Workflows). Link to comment
Shahrukh Posted September 5, 2022 Author Share Posted September 5, 2022 On 9/4/2022 at 7:13 PM, vitor said: Seems like everything there can be remade with Automation Tasks. Specifically: Files and Folders → List Folder Contents Files and Folders → Get Path to Frontmost Finder Window Files and Folders → Move Path With the Finder (or Copy Path With the Finder) Arguments Processing → Get Leading Arguments You can use the Keyword Input to ask for more information (like the number of paths to move/copy) and Arg and Vars Utility to save information (Using Variables in Workflows). This seems like a solution. But I am a total non-technical person here. Can you guide me more precisely so that I can build this for myself Link to comment
vitor Posted September 5, 2022 Share Posted September 5, 2022 4 hours ago, Shahrukh said: Can you guide me more precisely so that I can build this for myself I have linked to the documentation of the exact objects. You can also check the guides and tutorials for creating Workflows and/or check the Getting Started section of the palette (on the right in the Workflow editor) which will guide you through the basics. It’s difficult to be more precise without building it myself, and you mentioned you want to do it. The above are all the resources you need (with some redundancy). We can further help with specific questions you have throughout the process. Link to comment
Shahrukh Posted September 6, 2022 Author Share Posted September 6, 2022 22 hours ago, vitor said: I have linked to the documentation of the exact objects. You can also check the guides and tutorials for creating Workflows and/or check the Getting Started section of the palette (on the right in the Workflow editor) which will guide you through the basics. It’s difficult to be more precise without building it myself, and you mentioned you want to do it. The above are all the resources you need (with some redundancy). We can further help with specific questions you have throughout the process. I tried what you advised. I am hell lot of away from achieving the desired results. Haha. I am attaching my workflow that I tried building. Help is possible . thanks Link to comment
Shahrukh Posted September 6, 2022 Author Share Posted September 6, 2022 8 minutes ago, Shahrukh said: I tried what you advised. I am hell lot of away from achieving the desired results. Haha. I am attaching my workflow that I tried building. Help is possible . thanks @stephancasas may be you can suggest me something here. thanks Link to comment
Stephen_C Posted September 6, 2022 Share Posted September 6, 2022 For a start, you seem to have reversed the Move Path… and Get Path… actions and neither have you configured the Get Path… action. Further, you have not added the Arguments Processing… action referred to in Vitor’s post. I know it’s not always easy when you’re trying to understand how to get a workflow working but there really is no better way of learning to make use of Alfred than to keep at it, to read the help pages very carefully and just to keep experimenting. If you run the debugger you will learn a lot about what is working and what is not working. To be honest, you’ll learn a lot less by coming back here when you have imperfectly followed instructions and not done some in depth research on the help pages. Of course, people will still help you here—but in the longer term you’ll benefit so much more by bashing away at the thing yourself until it finally submits to you and just works….which, incidentally, is very rewarding. Sorry if this sounds critical: it’s not intended that way. But don’t always rely on others to spoon feed you because you’ll get so much more from solving these problems yourself. I do know…it’s how I started! Sorry—lecture over! 😀 Stephen Shahrukh 1 Link to comment
Shahrukh Posted September 7, 2022 Author Share Posted September 7, 2022 Hi I have tried building this again after help from Vitor on another workflow. I think I am on the final stages. having issues in moving files now. Any suggestions please. Thanks!! And also I don't know how to add a workflow file here that's why I am attaching a screenshot . Link to comment
vitor Posted September 7, 2022 Share Posted September 7, 2022 1 hour ago, Shahrukh said: I don't know how to add a workflow file here First upload to transfer.sh then post the link here. Link to comment
Shahrukh Posted September 7, 2022 Author Share Posted September 7, 2022 42 minutes ago, vitor said: First upload to transfer.sh then post the link here. Here it is https://forumfiles.com/N203c371yd/Move_downloads_to_the_current_folder_alfredworkflow transfer.sh was not working for me for some reason Link to comment
vitor Posted September 8, 2022 Share Posted September 8, 2022 This one required an extra step to override the variable for the destination. I’ll look into making that simpler and more complete later on, but for now this should do what you want and be clear on how to extend for the copy functionality. Link to comment
Shahrukh Posted September 8, 2022 Author Share Posted September 8, 2022 2 hours ago, vitor said: This one required an extra step to override the variable for the destination. I’ll look into making that simpler and more complete later on, but for now this should do what you want and be clear on how to extend for the copy functionality. can't download. Having "Can't parse response" error Link to comment
Stephen_C Posted September 8, 2022 Share Posted September 8, 2022 57 minutes ago, Shahrukh said: can't download. Having "Can't parse response" error Are you able to try with a different browser? It downloaded for me using Firefox without any problem, for example. Stephen Link to comment
Shahrukh Posted September 8, 2022 Author Share Posted September 8, 2022 11 minutes ago, Stephen_C said: Are you able to try with a different browser? It downloaded for me using Firefox without any problem, for example. Stephen Tried with firefox too. Same error. Transfer.sh was not working earlier for me too when i was trying to upload the workflow Link to comment
Stephen_C Posted September 8, 2022 Share Posted September 8, 2022 3 minutes ago, Shahrukh said: Transfer.sh was not working earlier for me too when i was trying to upload the workflow I've put the workflow temporarily on my Dropbox account. Please let me know if you can download it from there. If so I'll delete it on my account. Stephen vitor 1 Link to comment
Shahrukh Posted September 8, 2022 Author Share Posted September 8, 2022 4 minutes ago, Stephen_C said: I've put the workflow temporarily on my Dropbox account. Please let me know if you can download it from there. If so I'll delete it on my account. Stephen Downloaded. Thanks!! Stephen_C 1 Link to comment
Shahrukh Posted September 8, 2022 Author Share Posted September 8, 2022 4 hours ago, vitor said: This one required an extra step to override the variable for the destination. I’ll look into making that simpler and more complete later on, but for now this should do what you want and be clear on how to extend for the copy functionality. Thanks Vitor. Worked for me. I think there was a slight oversight in "and save it for later" variable function. You mentioned "number_of_files" and I changed it to "destination" and now it works like a charm. Thanks again!!! vitor 1 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