Screenshots: How do u select a destination file for these pics??

Discussion in 'Mac Programming' started by hecxs, Apr 17, 2009.

  1. macrumors newbie

    Joined:
    Dec 4, 2007
    #1
    I want to take a whole bunch of screenshots and want to save them in a designated file I wish to create just for this purpose.

    By default, the screenshots :)apple: + shift + 3) are saved on the desktop. Any idea how to change this??
     
  2. macrumors 604

    ravenvii

    Joined:
    Mar 17, 2004
    Location:
    Melenkurion Skyweir
    #2
    I wondered the same thing a couple years ago actually, and found no ways to do it. That was on Tiger though, Leopard might have changed this, but I haven't bothered to look.
     
  3. macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #3
    The easiest way I can think of is to use a smart folder that will filter those images in from the desktop, that way you can easily drag them into your designated folder manually. Not ideal I realize, but not too painful either.
     
  4. macrumors regular

    Joined:
    Jul 26, 2008
    #4
    OnyX
     

    Attached Files:

    • OnyX.jpg
      OnyX.jpg
      File size:
      92.7 KB
      Views:
      679
  5. thread starter macrumors newbie

    Joined:
    Dec 4, 2007
    #5
    very useful.
    Tanks.

    what other useful stuff have you found with the onyX?
     
  6. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    I created an AppleScript that lets you pick the output type and and destination for the screen shots. You can copy & paste the code into Script Editor and save it for use.
    Code:
    -- Created by angelwatt.com
    -- Created: 2009-02-20
    -- Description: Script configures Mac's built-in image capture utility. It asks for image file type and the destination for the captures.
    
    -- Pick from list
    set imgType to choose from list {"png", "jpg", "gif", "pdf", "tiff", "pict"} with prompt "Pick a image capture type" default items {"png"} OK button name "Pick"
    -- Choose folder
    set imgPath to choose folder with prompt "Choose Image Capture Location"
    
    do shell script "defaults write com.apple.screencapture type " & imgType
    do shell script "defaults write com.apple.screencapture location " & quoted form of POSIX path of imgPath
    -- Kill the UI so user doesn't have to logout for change to take effect
    do shell script "killall -HUP SystemUIServer"
    Pretty much the same thing as Onyx does, but is stand alone.
     
  7. macrumors regular

    Joined:
    Jul 26, 2008
    #7
  8. thread starter macrumors newbie

    Joined:
    Dec 4, 2007
    #8


    Dude!! You are like Morpheus from the Matrix! Showing me the path!! :D

    I didn't even know my freakin' mac can do this stuff. Thank you man.
     
  9. macrumors regular

    Joined:
    Sep 8, 2007
    #9
    Thanks for writing that script!
    It worked perfectly.

    jman995x.
     
  10. macrumors newbie

    Joined:
    Jul 10, 2009
    Location:
    .se
    #10
    yea. thanks for the script. works perfect!
     
  11. macrumors newbie

    Joined:
    Nov 26, 2010
    #11

    I'm sorry- I've never used a script before and I'm not sure where to put it in? It sounds like it's going to do exactly what I need but I don't know how to use it.

    Thanks
     
  12. macrumors 65816

    Joined:
    Sep 19, 2009
    #12
    Don't bother with a script; just edit ~/Library/Preferences/com.apple.screencapture.plist

    Change the path under "location" to your desired path. then you'll want to relaunch SystemUIServer:

    Code:
    killall SystemUIServer
     
  13. macrumors newbie

    Joined:
    Nov 26, 2010
    #13
    i don't see com.apple.screencapture, it just goes from scheduler to security :(
     
  14. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #14
    My post tells you. Paste it into Script Editor (now called AppleScript Editor) and then save it. Then you just double-click the saved file to run it.
     
  15. macrumors newbie

    Joined:
    Feb 18, 2010
    #15
    Thanks

    Thanks angelwatt. I know this thread is extremely old...but I just came across your script. It works great. Just what I've been looking for.

    Brett
     
  16. macrumors newbie

    Joined:
    Feb 9, 2012
    #16
    Applescript guide for above Screen Shot script

    Thank you for this script....:apple:

    Activation guide for non scripters:
    In spotlight type in " Applescript "

    Cut the script above, and paste into script editor.

    Press save, and give it a place and name you can find again, ex.
    "Screen Shot location.scpt" in your home directory.

    Press Run and choose grphic format and location (select directory somewhere).

    Regards Martin Rønde :rolleyes:
     

Share This Page