Saturday, July 21, 2018

#1 2011-01-12 02:29:46 pm

pixelcrash
Member
Registered: 2008-03-16
Posts: 2

move image after screen capture to specific folder

Hello

here is the script I am working on - but actually have no real clue where to start

I am using quiet often the "Command-Shift-4" for part screen capturing - after doing
this - after selecting the part and capturing it - I would like a little Message box with
3 or .. buttons - like typ1, type2, typ3,...

after pressing one button it should copy the captured image to a folder

step by step
1. command-shift-4
2. select and capture
3. message box
4. click on button
5. move the captured image to folder - typ1 to typ1-folder

is this possible

I am doing lots of research stuff and it would help a lot

Thanks


Filed under: folder, Move, screen capture

Offline

 

#2 2011-01-12 02:43:36 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11499
Website

Re: move image after screen capture to specific folder

Hi,

define a new folder location for the screenshots by editing com.apple.screencapture.plist.
Then add a folder action to that folder using this script

Applescript:


on adding folder items to this_folder after receiving these_items
   repeat with oneItem in these_items
       set fileName to name of (info for oneItem)
       set {button returned:buttonReturned} to display dialog "move " & fileName & " to:" buttons {"type1", "type2", "type3"}
       tell application "Finder"
           if buttonReturned is "type1" then
               move oneItem to folder "path:to:folder1:"
           else if buttonReturned is "type2" then
               move oneItem to folder "path:to:folder2:"
           else
               move oneItem to folder "path:to:folder3:"
           end if
       end tell
   end repeat
end adding folder items to

Note: the display dialog window has max. 3 buttons.


regards

Stefan

Offline

 

#3 2011-01-12 03:10:29 pm

pixelcrash
Member
Registered: 2008-03-16
Posts: 2

Re: move image after screen capture to specific folder

wow super fast - thanks
I will try it

"amazed be the speed of this reply"

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)