1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

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

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

  1. macrumors newbie

    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


    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


    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


    Attached Files:

    • OnyX.jpg
      File size:
      92.7 KB
  5. macrumors newbie

    very useful.

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


    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.
    -- 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

  8. macrumors newbie


    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

    Thanks for writing that script!
    It worked perfectly.

  10. macrumors newbie

    yea. thanks for the script. works perfect!
  11. macrumors newbie


    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.

  12. macrumors 65816

    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:

    killall SystemUIServer
  13. macrumors newbie

    i don't see com.apple.screencapture, it just goes from scheduler to security :(
  14. Moderator emeritus


    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


    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.

  16. macrumors newbie

    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