I use a little gem called "Folder Actions"

This is a great way to move files when Directory has changed.
I'm Sure KM can do it all but not sure how...

I'm Using Folder Actions app
This is a gem...

How it works:

This Macro is triggered by Folder Actions app via script.

Script file..
This file is located /Library/Scripts/Folder Action Scripts/

on adding folder items to this_folder after receiving these_items
	tell application "Keyboard Maestro Engine"
		do script "Move xScope files"
	end tell
end adding folder items to

**Any Questions, comments, suggestions would be much appreciated..

Cheers,
Bill..

This is a version that uses KM actions.
Keyboard Maestro ā€œMove xScope filesā€ Macro

1 Like

Here is the KM native macro

Keyboard Maestro ā€œMove xScope filesā€ Macro

Move xScope files.kmmacros (3.1 KB)

1 Like

Whoohoo Thank you @Mirizzi I wasnā€™t sure but itā€™s true!
Wow KB is the bestā€¦

Again thank you very muchā€¦

Thank you for sharing this. I was looking for a way to do this and wouldnā€™t have found this solution without your help.
However, I tried this macro for ā€œ~/Desktop/%TriggerValue%ā€ so that system Screen Shots would be tidied away, but I have found that the Macro stops my system Screen shots from appearing. Mac OS X 10.11.3. Has anyone else found this?
Works great fro Xscope shots though.

However, I tried this macro for "~/Desktop/%TriggerValue%" so that system Screen Shots would be tidied away, but I have found that the Macro stops my system Screen shots from appearing. Mac OS X 10.11.3. Has anyone else found this?

Yes, tiny āŒ˜ā‡§4 screenshots are fine, but āŒ˜ā‡§3 screenshots or larger āŒ˜ā‡§4 screenshots ā€œdisappearā€.

Thatā€™s because they end up as (invisible) dot files in the Screen Shots folder:

It seems that ā€”if the screenshot is largeā€” it gets intercepted while still in a temporary state.

Change the TriggerValue condition to a regex match and it will work.

Move Screenshots.kmmacros (3.0 KB)


As an alternative (instead of the regex) you could also add a pause at the beginning of the macro:

1 Like

@Tom, many thanks for sharing this macro. It is really useful.

I started with your macro and added to it. My revised macro is posted here:

A ha, perfect, thanks for that. I would never have worked that out.
I did wonder if a pause might do it, but didnā€™t get as far as that. The regex match works a treat.

To be on the safe side put this in front of the macro:

See this post and the follow-ups.

@johnels, if you only want the screenshots to be saved to a different folder you can also change the system preference by executing this in the Terminal:

defaults write com.apple.screencapture location "~/Pictures/Screen Shots";  killall SystemUIServer

This will change the screenshots folder to ~/Pictures/Screen Shots. You can choose any folder you want.

I built a little wrapper for the defaults write command. Youā€™ll find it here.

1 Like

I fear I may be missing the point of all of this but I will throw this out there anyway...

For screenshots, I created a folder action workflow with automator as such:

The "Pic_Snapshots" folder resides on my desktop. So the automator workflow is watching the desktop folder and when a screenshot appears it moves it into that folder.

Hi Tunes,

If you just want your screenshots to end up in a different folder, you donā€™t need any move or watch action. Just set the preferences accordingly.

See my post above and the mentioned wrapper macro.

Yes Tom. I know. :smile: But if I had done that, what would I have done for my first ever folder actions & automator.workflow project? If I hadn't done that first project the earth would have stopped spinning, cars would have run out of gas, the sun would have stopped shinning, and I would not be here in this forum. So do you see now why it was so important for that to be my first educational exercise. LOL!

However when I realized what you had there I scurried my butt over to the download link and snatched it. Nice wrapper.

Now, so what is the deal with the html prompts you and @JMichaelTX discuss in this thread?

LOL, yes, Iā€™m grateful you didnā€™t make all this happen, especially the first one :cold_sweat:

The Wiki has a nice article about it, with some more forum topic links at the end.

Basically they fulfill the same role as normal user prompts, but with HTML prompts you have almost unlimited customization possibilities (layout, custom menus, ā€¦).

Thanks Tom. I will take a look. (Too many manuals!!).

You can also view topics with the html_prompt tag to see many examples.

Heh! Even more reading materials. I still haven't finished my javascript course or my regex tutorial.

Iā€™m sure you wanted to say ā€œandā€, right?

Hmm. Well I don't know. Is this a grammar thing? 'Or' kind of works for me but if you like "and" I'll be happy to rephrase it. :smile: