Screencapture in terminal takes a screenshot, but can't save it to destination

Hi i'm trying simply to make terminal take a screenshot for me. I am using the following command:
screencapture [/Users/karanerry/Documents/]
When i press enter after typing the above command in terminal, i hear the sound of a screenshot being taken, but the following error is displayed and i don't know where to look for the screenshot or whether it has even been saved:
screencapture: cannot write file to intended destination, [/Users/karanerry/Documents/]
Since i heard the sound of a screenshot being taken (the same sound that comes when i press ⌘⇧3 or ⌘⇧4 to take a screenshot), i presume that the screenshot has been taken. So where do i find it? Also, taking a screenshot by pressing ⌘⇧3 or ⌘⇧4 works fine, saving the screenshots to my Desktop.
I tried other variations of the command, but similar errors prop up:
screencapture [/Users/karanerry/Documents/hello.png]
When i looked up help for this, some suggested that i should go to Disk Utility > Repair Permissions. I did that but the error was not resolved.
Does anyone know what's going wrong and what i can do to resolve this?

Did you actually put square brackets around the path?
Try
screencapture -t png ~/Documents/filename.png
You can provide the filename you like.  You can use -t jpg if you prefer JPEG vs PNG image format.  There are other file formats available.
The file you created most likely is either in the current working directory, or it created a directory path starting in the current working directory starting with open square bracked [Users, subdirectory under that of your username, subdirectory under that of Documents] with the closing square bracket.
Do not use the square brackets.  While they have a use, you are not using them in their magic form.
Message was edited by: BobHarris

Similar Messages

  • My mac says it cannot type string everytime I take a screenshot, what can I do?

    My mac says it cannot type string everytime I take a screenshot, what can I do?

    So you hold down the command and Shift keys and type the 3-key?
    That is the default. Could you have re-assigned that key combination to some other function?
    Does Command-Shift-4 give you a crosshair to drag across and select a screen area to capture?

  • I can download and view PDF docs on my MAC but can not save or print them - Help !

    I can download and view PDF docs on my MAC but can not save or print them - Help !

  • Webi report (User modify report but can't save)

    Hi Guys,
    I have one ques. regarding Webi report (Access Level), that User can view & modify a report but can't save.
    Kindly reply ASAP.
    Thanks

    hi,
    General -> Edit this Object (should be Granted)
    Application -> Web Intelligence ->
    "General Rights for Web Intelligence"
    - Edit this object
    In case of WEBI Rich Client, Grant the following
    "Specific Rights for Web Intelligence"
    - Web Intelligence Rich Client : Save a document locally on the file system
    - Web Intelligence Rich Client: Save a document for all users
    Regards,
    Vamsee

  • DIS installed but can't save Word document in CS

    I installed the CIS but can't save Word/Excel/PPT 2003 files using save as. What I do wrong and/or what I missed? There's no info on CIS Install/User Guides.
    Using Windows Explorer, everything Works fine.
    Some info:
    UCM: 10.1.3.5.0 (090707) (Build:7.2.4.11)
    DesktopIntegrationSuite 2009_07_02 (8.2.0.959)
    CoreWebdav 2009_06_17 (build 30) br-10g-10.1.3.5-release
    Thanks!

    What did you install?
    DIS or CIS - you mention both.
    CIS is something quite different that provides an API that exposes the UCM services within J2EE applications.
    What you need to install are the Windows client components of DIS. If you do this there is (if I remember rightly) an option in the install wizard about which desktop applications you would like DIS to integrate with (word excel...).
    So either
    1.Install DIS (if you have not done so yet)
    2.Update your DIS install (just run the installer again or go Settings > Control Panel > Add Remove Programs > Change or Remove programs andtick the box for word integration
    Tim

  • I capture a video but can't save it .How to halndle the problem via JMF?

    Hi everyone, I'm starting to use JMF and faced the problem
    The problem is to save captured video in .avi or .mov formats.I managed to capture and play it in a player, but can't save it .On the other hand when I used processor to capture and save the video , I've succeeded .But my task is to combine these two actions. Give a hint please.
    All kind of replies will be greatly appreciated.
    Edited by: postvard on Feb 25, 2009 12:03 AM

    >
    You need to get the StreamWriterControl on the DataSink, rather than the Processor.I doesn't seem to work.
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import javax.media.CannotRealizeException;
    import javax.media.Control;
    import javax.media.DataSink;
    import javax.media.Format;
    import javax.media.Manager;
    import javax.media.MediaLocator;
    import javax.media.NoDataSinkException;
    import javax.media.NoProcessorException;
    import javax.media.Processor;
    import javax.media.ProcessorModel;
    import javax.media.format.VideoFormat;
    import javax.media.protocol.DataSource;
    import javax.media.protocol.FileTypeDescriptor;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.media.control.MonitorControl;
    import javax.media.control.StreamWriterControl;
    public class MyProcessor extends JPanel {
         private MediaLocator locator=null;
         private Processor processor=null;
         private DataSource dataSource=null;
         private DataSink filewriter=null;
         private Format[]formats=new Format[1];
         public MyProcessor() throws NoProcessorException, CannotRealizeException, IOException, InterruptedException {
              setLayout(new BorderLayout());
              FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
                   Format[]format=new Format[1];
                   format[0]=new VideoFormat(VideoFormat.YUV);
              locator=new MediaLocator("vfw://0");
              processor=Manager.createRealizedProcessor(new ProcessorModel(locator,format, new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO)));
              Control controls[] = processor.getControls();
              for(Control c:controls){
              if(c instanceof MonitorControl){
              MonitorControl mc = (MonitorControl) c;
              mc.setEnabled(true);
              if (mc.getControlComponent() != null) {
              add("Center", mc.getControlComponent());
              dataSource= processor.getDataOutput();
              MediaLocator dest = new MediaLocator("file:record1.avi");
              try {
              filewriter = Manager.createDataSink(dataSource, dest);
              Control[] dataSink_controls= (Control[])filewriter.getControls();
         for(Control c1:dataSink_controls){
              if(c1 instanceof StreamWriterControl){
                   StreamWriterControl stream_size=(StreamWriterControl)c1;
                   if(stream_size!=null){
                        stream_size.setStreamSizeLimit(30000);
              filewriter.open();
              } catch (NoDataSinkException e) {
              System.exit(-1);
              } catch (IOException e) {
              System.exit(-1);
              } catch (SecurityException e) {
              System.exit(-1);
              try {
              filewriter.start();
              } catch (IOException e) {
              System.exit(-1);
         processor.start();
         //Thread.currentThread().sleep(20000);
    //     processor.stop();
    //               processor.close();
    //               filewriter.stop();
    //               filewriter.close();
         public static void main(String[] args) {
              try {
                   MyProcessor processor1=new MyProcessor();
                   JFrame frame=new JFrame();
                   frame.setSize(300,300);
                   frame.add(processor1);
                   frame.setVisible(true);
              } catch (NoProcessorException e) {
                   e.printStackTrace();
              } catch (CannotRealizeException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (InterruptedException e) {
                   e.printStackTrace();

  • Macbook Pro can open files from Touro ext. hard drive but can't save to it. Solutions without data loss?

    Hello,
    I've looked around for a solution to my problem but I haven't found any specific solutions and I'm not comfortable in trying general ones for fear of loosing my data. Before moving I backed up all my document and music files from my PC to my Touro external hard drive. My main goal for buying this hard drive was to use it to store my itunes music library to save space on my computer and transfer my music from said PC tp my new MacBook Pro after the move. Today I set about doing so and was able to set my itunes up to pulll from the hard drive as well as load all the music I had saved on the hard drive into my MacBook itunes. The trouble came when I tried to download new purchases. It turned out I couldn't because itunes was unable to save them in the new file location on the Touro. I checked into it and I have the same problem with the documents as well; I can open anything already saved on the drive but I can't save any new files. It keeps on telling me I don't have permission to make edits. I'm afraid this mean I have to reformat the Touro for Mac but doesn't that mean I'll lose all that data? Does anyone know of any somlutions that would give me access to the drive without compromising what's already on it? I would just plug it back into the PC and see if I could adjust sharing settings, but it's all the way across the country now. Any help in this matter would be greatly appreciated!
                                                                Thanks,
                                                                     -G-

    It sounds like your HDD was formatted under windows NTFS, which although your mac can read, it cannot write to that file format.
    You will either need to transfer the data to another location while you reformat it as FAT on your mac using Disk Utility. Or you could purchase something like iPartition and change the file format to FAT which might take up to 24hours or so depending on the size of the drive. I have never had a problem doing this before but it's not guaranteed that your data will not be lost doing this.

  • I'm using Word for Mac. Though there are various instructions on the Internet for modifying the templates, none make sense to me. They instruct to do something I can't follow. I change a template but can't save it to the template folder.

    What the ****.
    OK, I try to change a template using Word for Mac version 14.3.4 2011 edition.
    I make a change to the template but am unable to save the darned thing to the template folder; it asks for a file name like it's a new document. I want to change the blasted template but if I can't save it as a modified template, I've accomplished nothing.
    Does anyone have a solution?
    Thanks

    Support for Microsoft Office for Mac

  • Can't scan docs to my iMac, epson scans, but can't save in iMac docs

    having trouble scanning to iMac from epson. screen shows its scanning, but then can't save to iMac.

    Which app are you using to see your scans?
    You posted in the iMac forums yet your system info is showing iPhone.
    =========
    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which Mac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK---> https://discussions.apple.com/docs/DOC-3602
    CLICKY CLICK-----> Help us to help you on these forums

  • I installed number and shows as purchased but can't save documents why?

    when I commend for save,  there is message " can't save on trial buy serial number, so I installed ,purchased, but still can't save

    You're getting the request for a serial number that means that at some time you had the iWork ’09 trial installed. You need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user. The easist way to fix the problem is to use Yvan Koenig's AppleScript that removes the files. You can find it on his box.com account in for_iWork'09 > other_iWork'09 items > uninstall iWork '09.zip.
    Apple's support article on the subject says it's due to having a copy of the trial that is a higher version that the one you've purchased, but I'm not sure that is very common. This problem started with Snow Leopard & it seems to be some code in the iWork installers that doesn't do what it should.

  • Can display Japanese characters but can't save to db properly

    Hello! I'm having quite a predicament here! When getting Japanese characters in the database(characters are as-is), it successfully displays them. I manually put it in the database. But when I try to save to the database using the browser(textfields, submits, connections, etc), it saves as garbage.
    Here's the code on my first page. It only gets user input then submits to another jsp
    <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
    <jsp:useBean id="helper" class="com.ats.equipc.DBHelper" scope="request" />
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    </head>
    <body>
         <form name="formOne" action="testOut.jsp">
              in1:  <input type="text" name="in1" />
              <br>
              <input type="submit" value="submit" />
         </form>
         <%! ResultSet rs = null; %>
         <% rs = helper.doGetQuery("select * from t_test;");
              while(rs.next()) {
                   out.print(rs.getString(1) + "<br>");
         %>
    </body>
    </html>Don't mind the Resultset, I just put it there so I can see the saves.
    My second page. This is where I save the entry
    <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <jsp:useBean id="helper" class="com.ats.equipc.DBHelper" scope="request"/>
    <head>
    <title>Untitled Document</title>
    </head>
    <body>
         <%! ResultSet rs = null; %>
         <% request.setCharacterEncoding("utf-8");
              String entry = request.getParameter("in1");
              out.println(entry);
         %>
         <% helper.doSaveQuery("insert into t_test values('" + entry + "');"); %>
    </body>
    </html>Help please...

    Thanks once again for replying
    I got it to work but its still foggy to me why it does work.
    I replaced the code
    <%! ResultSet rs = null; %>
         <% request.setCharacterEncoding("utf-8");
              String entry = request.getParameter("in1");
              out.println(entry);
         %>with this
    <%! ResultSet rs = null; %>
         <% //request.setCharacterEncoding("utf-8");
              String entry = new String(request.getParameter("in1").getBytes("iso-8859-1"), "utf-8");
              out.println(entry);
         %>Take a look at:
    String entry = new String(request.getParameter("in1").getBytes("iso-8859-1"), "utf-8");Why do I need to specify the charset to "iso-8859-1" when getting the bytes then making it "utf-8" when finally making it into a string?

  • Setting up HP LaserJet Pro P1102w for wireless but can not save wireless settings

    This printer worked fine on wireless with my last TWC modem/router, but I have tried for hours to set it up with a new one and it simply will not let me. USB works fine, but when I follow the instructions found here: OS X Yosemite Wireless. I choose Method three at this link: Method three: Wireless setup using a USB connection. Here is what happens after this:
    1. I downloaded the latest Apple HP drivers on my iMac (HPPrinterDrivers3.0.dmg). 
    2. Clicked Apple Software Updates to ensure I had the latest.
    3. Turned on the printer
    4. Has paper and is in ready mode with no flashing lights
    5. Plugged USB from printer into iMac
    6. Followed HP instructions: Systems Preferences > Printers & Scanners > Clicked on the P1102w printer which was already on the list > Open Print Queue > Open Printer Utility > HTML Config... > Network Tab > Wireless (confirmed it was enabled, I refreshed the network names and added my wireless network, added my wireless network password) > Apply.
    This is where everything crashes. After clicking Apply, the page will show up blank, the HTML will be messed up, or I will receive a message that says: 
    Safari can’t open the page “http://;ocalhost:5050/cgi-bin/ip_wireless_result.htm”. The error is: “cannot parse response” (NSURLErrorDomain:-1017)
    I have tried other Chrome and Firefox and got similar results. At this point, I am out of options based on the HP support sites that I have found. One HP site said to uninstall the HP software located in Libraries > Printers, so I did this. 
    Any help would be greatly appreciated. Thanks.

    Hi @txrun,
    I see that you are experiencing issues setting up the printer on the new router. I will certainly do my best to help you.
    Make sure Safari is set as the default browser. Sometime the Embedded Web Server won't open or will error out, if it isn't. Open Safari, across the top select the Safari menu, select Preferences, General, set as default.
    Restore printer defaults first and then run the HTML again. You may need to delete and add the printer again into the Printers and Scanners to be able to open the HTML again.
    Restore defaults: Turn the printer off, hold down the wireless button and cancel (x button) while turning the printer back on and don't release the two buttons until the printer stops making noise.
    Print a configuration page to make sure the old network settings are cleared. Printing a Configuration Page.
    If you are still having issues, please check these settings on the router.
    The printer is only capable of sending/receiving in the 2.4Ghz band.
    If it is set to 5 GHZ network you may need to change to 2.4 GHZ. (rename the 5ghz or shut it off)
    The WPA key setting needs to be on AES to work correctly not TKIP.
    Multi casting needs to be turned on.
    Firewall on router has to have open ports for printer.
    If you have Mac Filtering you need to give printer hardware address from configuration page.
    You might need to contact your router company for further assistance to check those settings.
    If there is anything else I can help you with, just let me know.
    Have a nice weekend!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • My Script Saves My Files In Incremental file names but can't save to original folder?

    hi everyone,
    so after a few hours of browsing the forum, was able to scotch tape this script together so it allows me to save my files in incremental file numbers.
    - i create an action to edit the file and then in that action, i run this script x-amount of times.
    - it works as i tested it a few times.
    but here are my questions that i can't figure out.
    1. right now it says to a folder that i have to designated. how would i edit this code so it'll save in the same folder as the file i am editing?
    2. so far it saves as a jpeg. does anyone know the syntax to use for a gif?
    and if you're kind enough...let's say i have an animated gif file, i can't edit it in photoshop so i have to use imageready but how do i replicate the above in imageready since we're on the same topic.
    THANKS!!! code is below:
    // This script will save the active document to a folder with an incremental sufix
    // Change the options below to match your needs
    var saveFolder = new Folder( 'C:\\test' );
    var saveExt = 'jpg';
    var saveSufixStart = '_';
    var saveSufixLength = 3;
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = 8;
    // End of user options
    //==========================================
    function zeroPad ( num, digit ){
       var tmp = num.toString();
       while (tmp.length < digit) { tmp = "0" + tmp;}
       return tmp;
    var docName = decodeURI ( activeDocument.name );
    docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
    var saveName = docName[ 1 ]; // activeDocument name with out ext
    var files = saveFolder.getFiles( saveName + '*.' + saveExt );// get an array of files matching doc name prefix
    var saveNumber = files.length + 1;
    //alert("New file number: " + zeroPad( saveNumber, saveSufixLength ));
    var saveFile = new File( saveFolder + '/' + saveName + '_' + zeroPad( saveNumber, saveSufixLength ) + '.' + saveExt );
    activeDocument.saveAs( saveFile, jpgSaveOptions ,true ,Extension.LOWERCASE);

    ImageReady? Which version of Photoshop do you use?
    1. right now it says to a folder that i have to designated. how would i edit this code so it'll save in the same folder as the file i am editing?
    You need to amend the line
    var saveFolder = new Folder( 'C:\\test' );
    accordingly.
    2. so far it saves as a jpeg. does anyone know the syntax to use for a gif?
    There are examples on the Forum, for example
    http://forums.adobe.com/message/3928843#3928843

  • Second hard drive added but can't save any files to it

    My 250 GB hard drive failed and was replaced under warrantee (thank God I had backed it up a week earlier)
    I had the operating system and application loaded on the 250GB drive and everything works fine. I had the dealer add a 500 GB Seagate Ultra 16 for storing all my data. I have a 500 GB external hard drive for back up. I am not able to save any data or create folders in the 500GB internal hard drive. My system profiler shows that its loaded. What do i need to do so taht i can use it for storing my data.

    The drive must first be partitioned then formatted:
    Extended Hard Drive Preparation
    1. Boot from your OS X Installer Disk. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. Otherwise, click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.

  • See "iPod" Songs in iTunes but can't save them in Library or Music Folder!

    My apologies in advance, folks, I'm a newbie to the Discussions.
    Initially had loaded my iTunes onto a PC and "homeshared" to my Mac. PC died and could not disable homesharing on THAT end. But did disable homesharing on my Mac. Synced by iPod (appears to be a PC model) and all songs showed up under device in iTunes. But, all songs were downloaded from CDs (not iTunes store). So: tried to select all and save to a new folder under music. No dice. Tried "Add to Library" from iTunes File Menu...nada. Since the songs were originally loaded to the iPod from a Windows PC, do I need a utility in order to get them uploaded to my Mac? Really don't want to have to re-record them all (>1000 songs) and know I must be missing something obvious here.
    Please tell me I'm just overlooking a VERY easy step!! I now have 1 (yes, one) song in my Library.
    Your help is really greatly appreciated!

    Hi folks:
    Just in case anyone else experieces this problem (uploading iPod Windows to iTunes Mac, I used iPodDisk freeware (with MacFuse)...loads songs to Finder as organized in iPod and you can drag and drop into iTunes!! Easiest way to get the job done...

Maybe you are looking for