deanishe Posted March 22, 2016 Share Posted March 22, 2016 So I type in screen, hit return, the selector pops up and then I press command-3 and nothing happens. It gives me no option to select the part of the screen I want to capture. That's because my version doesn't use -i. You need to re-add that option to screencapture. Also, is it possible for it to have me select the folder to be put into *after* I take the screenshot. Perhaps that's what's supposed to happen. You do select the folder after taking the screenshot. First the screenshot is saved to ~/.temporary-screenshot.png, then when you select a folder, it's moved to that folder and renamed "Screenshot.png" (or "Screenshot 1.png" etc.). Link to comment
deanishe Posted March 22, 2016 Share Posted March 22, 2016 Also, I'd prefer to use cmd-shift-2 rather than typing in screens Then add a Hotkey to your workflow and connect it to the same action as the Keyword is currently connected to. Link to comment
bongobong Posted March 22, 2016 Author Share Posted March 22, 2016 IT WORKS! Another question; this is what my workflow looks like. I'm confused as to why there are two flows that don't connect; for instance, the way I have it set up, the flow I'm feeding my hotkey into doesn't interact with the one that contains the .py instructions. Again, apologies if I'm being dense. Link to comment
deanishe Posted March 22, 2016 Share Posted March 22, 2016 Yeah, it does. It's just not clear from looking at Alfred that this is what's happening (this is a complaint I have with Alfred).The new script that's connected to the Keyword (and now Hotkey) first calls screencapture, and when that's finished, it calls Alfred via AppleScript. That's what this line does: osascript -e 'tell application "Alfred 2" to run trigger "screens" in workflow "net.deanishe.alfred-move-screens"' That tells Alfred to run the External Trigger (the new element on the far left), which is connected to the Script Filter that shows your folders. Link to comment
bongobong Posted March 26, 2016 Author Share Posted March 26, 2016 It is SO good, Dean. It's literally changed my entire workflow. Thank you so much for this. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Dean, it's all of a sudden stopped working. The only thing I did was update to 10.11.4 but I can't see that having an effect. Do you have any ideas how I can troubleshoot it? This is what I'm getting: "Starting debug for 'Take and Move Screenshots' [sTDERR: alfred.workflow.input.scriptfilter] 13:12:33 workflow.py:2330 WARNING Can't save last version: workflow has no version 13:12:33 workflow.py:2186 DEBUG Workflow finished in 0.002 seconds." Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 I guess this would help you: https://github.com/deanishe/alfred-workflow/issues/64 The question was asked before and answered by deanishe Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Fantastic. Thanks so much. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Ah. That doesn't seem to help me because that debug seems like a red herring for why it's not working. Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 I just downloaded the workflow given here: Done. Download and reinstall the workflow. No idea if you need -o. That just turns off window drop shadows. It works just fine, did you try to reinstall your workflow else ? Maybe you did some other changes? Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 No, it was all working. I added folders. Hmmmm. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 #!/usr/bin/python # encoding: utf-8 # # Created on 2016-03-22 # """ Show a list of folders to move screenshot to. """ from __future__ import unicode_literals import os from workflow import Workflow # Where screenshots can be saved # ~ is short for your home directory. FOLDERS = [ '~/Downloads/Images/', '~/Downloads/Images/Unsorted', '~/Downloads/Images/Apple', '~/Downloads/Images/Beatles', '~/Downloads/Images/Beautiful', '~/Downloads/Images/Blur', '~/Downloads/Images/Cartoons', '~/Downloads/Images/Comments', '~/Downloads/Images/Creepy', '~/Downloads/Images/Delete in three days', '~/Downloads/Images/Design', '~/Downloads/Images/Follow Up', '~/Downloads/Images/Funny', '~/Downloads/Images/I did this', '~/Downloads/Images/Interesting', '~/Downloads/Images/Luminaries', '~/Downloads/Images/Material', '~/Downloads/Images/Movies', '~/Downloads/Images/Nostalgia', '~/Downloads/Images/Products', '~/Downloads/Images/Quotations', '~/Downloads/Images/Random', '~/Downloads/Images/Veitch', '~/Downloads/Images/Words', '~/Downloads/Images/YoShirt', ] def main(wf): """Run workflow.""" for path in FOLDERS: p = os.path.expanduser(path) wf.add_item(os.path.basename(path), path, arg=p, uid=path, valid=True, type='file', icon=path, icontype='fileicon') wf.send_feedback() if __name__ == '__main__': wf = Workflow() log = wf.logger wf.run(main) That's my workflow and here's a picture of the finder Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Is it perhaps that it can't overwrite? But it was working so I don't get whats changed. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 And here's my workflow. The only thing I did was add a hotkey. But that was working before too. Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 Overwriting shouldn't be a problem as there will be just a number added after the screenshot name. Did the problem appear after you added the folders ? Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 It would help more if you could export the workflow and share it as i dont have the changes that are made after you got deanishe's version. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 No. They were all working fine. It's so odd. Here's the workflow. I'm wondering whether it's got something to do with the temporary folder or not having permissions to move it or something. I suspect it could be to do with 10.11.4 https://dl.dropboxusercontent.com/u/812352/Take%20and%20Move%20Screenshots.alfredworkflow Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 (edited) I just tried it out by creating one of you folders. It works perfectly fine by me being on el capitan 10.11.4 too. Try to delete the workflow and readd it. Have to say that i used the "screen" keyword. Ok also works with the set keyword, which makes sense so idk mmhh Edited March 31, 2016 by FroZen_X Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Nope. Still nothing. I'm making a gif so you can see i'm not doing anything wrong. Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 ahhhh i now i could recreate it....its when you cut out a image instead of using space to screen a app or so. Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Ahhhh. Weird that it was working before though. Could be OS issue? any ideas what's causing it? Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 (edited) Ok so, reinstalling and adding a version file into the workflow folder makes it work. But brings out another error: [ERROR: alfred.workflow.action.script] /bin/bash: line 4: ((: 1++: syntax error: operand expected (error token is "+") Edit: Likes this Here is the file if there is any problem: https://dropfile.to/8pUc5 Edited March 31, 2016 by FroZen_X Link to comment
bongobong Posted March 31, 2016 Author Share Posted March 31, 2016 Ah. Thanks. But does that fix my problem then? Will the error stop it working? Link to comment
FroZen_X Posted March 31, 2016 Share Posted March 31, 2016 wait it worked for a moment and now somehow not again.....what is this. Sorry my mistake this is so weird. 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