Screenshot filename in Lion

Hi,
Anyone knows a way to rename the filename of screenshots in Lion?
I'm talking about the part that comes after the prefix, that can be changed via;
defaults write com.apple.screencapture name NEWPREFIX
In Snow Leopard, this was achieved by chaning a line in the following file;
/System/Library/CoreServices/SystemUIServer.app/Contents/Resources/English.lproj/Localizable.strings
This is no longer possible, as the value isn't present in this file anymore. The .strings-file have also been changed from a plain text file, to a binary plist file since Snow Leopard.
The reason I want to change this, is to avoid spaces in the file name. I know that some of you use scripts that goes through the screenshot-folder to rename, but was hoping to avoid this.
Anyone knows of a way to change this in Lion?

Hi,
I did following steps to change default screenshoot filename
$ sudo su
# cd /System/Library/CoreServices/SystemUIServer.app/Contents/Resources/English.lpro j
# plutil -convert xml1 ScreenCapture.strings
# vi ScreenCapture.strings
change
<key>%@ %@ at %@</key>
          <string>%@ %@ at %@</string>
to
<key>%@ %@ at %@</key>
          <string>Pictures</string>
# plutil -convert binary1 ScreenCapture.strings
# killall SystemUIServer
You can replace "Pictures" to whatever you like.

Similar Messages

  • ICal archive saves file with wrong time in filename in Lion

    iCal archive filenames in Lion now have the time in the filename, after the date.  But the time is 8 hours ahead of the actual time it was saved.  I guess they're using Greenwich Mean Time, but the time that's in the filename should match the time that the file was actually saved (local time).
    Is anyone else seeing the same issue?

    A hand full of my events were showing as off by 1 hour, even though my Treo 755p, Mac Pro and iCal all show the same time zone. If I had an appointment at 12:00pm it would show up on my Treo 775p as '1:00pm (12:00pm PST)'.
    I went through and edited the time zone to something else then back again. I duplicated a few events and then deleted the original. But I've gotten all of them to now show up at the correct time.
    Give it a shot it may help if it isn't 100s of appointments.

  • Automator screenshot errors in lion

    I'm not sure if this is a bug or some difference in behaviour in automator, but i'm having trouble working with the 'take screenshot' action.  essentially, before upgrading to lion, i had a number of automator workflows that would take a screenshot of a window, then rename the file with the date, and move it to a specific folder (used mostly for my own reference for online payments and purchases).  as of the upgrade to lion, the automator workflow errors out after taking the screenshot (see image) with an error "conversion from image files to files/folders failed - 1 error" with a sub-heading "-[_NSArrayM descriptorType]: unrecognized selector sent to instance 0x401e12840".  the problem seems to be in the 'take screenshot' action, as i can't get it to pass anything to any other action. i've searched all over for a solution and i've got nothing, i'd really love some help with this.  thanks.

    I had exactly the same problem with Lion 10.7.3, always a ""-[_NSArrayM descriptorType]: unrecognized selector" error when trying to pass the screenshot's filename to a rename workflow...
    But! I found a solution by using "run shell script" which will run the "screencapture" command from the Terminal.app
    If you open "Terminal.app" from /Applications/Utilities/ and type:
    man screencapture
    you will get the manual of the screencapture command.
    Here we go:
    1. Add a "Run Shell script", Use "Shell: /bin/bash" is fine and add the following line:
    screencapture ~/Pictures/screenshot.png
    We just need to do this once: since the screenshot.png was not created yet for the next workflow command (Get Specified Finder Items", just run the Automator action so that it will create the screenshot.png in your Pictures folder.
    You could even choose a .png file and rename it to screenshot.png and put it in your Pictures folder.
    Note the "tilde" ~ before /Pictures...this is UNIX: so it's nothing else as writing: /Users/<yourUserName>/Pictures
    2. After we have run the command to create the screenshot.png, we add "Get Specified Finder Items":
        click on the "Add..." button: select then the "screenshot.png"  file in your Pictures folder.
    3. Now add "Date or Time" etc. and modify as you wish or skip directly to 4:
    4. Add New Mail Message
    5. Send Outgoing Messages
    Voilà that's it!
    Hope this helps
    Gilles

  • Permanently make Finder columns as wide as longest filename in Lion?

    In Lion you can place the cursor over a column dividing line, then do a Ctrl-click and thus have some choices to adjust the column width.
    That's fine - but does not solve my problem: I wish columns to be just as wide as the longest filename - always.
    Is there a way (e.g. setting or a Terminal commando) by which you permanently (also in a new Finder window and after restart) can have such a full column width?

    Just in case this is still an issue, let me provide you the following options:
    Double-clicking on the "handle" at the right of a column will quickly resize the column to fit the widest file name. We all know this. The knowledge you're missing is that holding Option while dragging a column width sets that custom width for every future Finder window. You can even fix all your columns at once with a right-click:
    Control (Right) click on any column handle to reveal three choices (as follows): Right Size This Column, Right Size All Columns Individually, and Right Size All Columns Equally.
    The first selection is the same as the manual (ie sizing to the longest name); the second, sizes the same for each individual column; and the third, takes the widest column and applies it to all, no matter what.
    Now go! Be happy with your Mac!

  • How do I change the default save folder for screenshots in Mountain Lion

    I would like screen shots to save to a specific folder in Pictures (~/Pictures/Screenshots)
    There is a way to do this in previous versions of OS-X.  Is there another way to do this in Lion, or is the Terminal method the simplest way to do this?
    Thanks
    Dave

    It should still work the same way. I changed mine in either Snow Leopard or Lion and it remains the way i Changed it in Mountain Lion.
    bob[07:25]~>defaults read com.apple.screencapture location
    /Users/bob/Documents/ScreenCaptures/
    to change it I had entered:
    defaults write com.apple.screencapture location /Users/bob/Documents/ScreenCaptures/

  • Make screenshots jpg with lion

    I am a first time owner of a mac (imac).  When I perform a screenshot, it is in a png format.  I need to change the format to jpg.  I keep reading that I should open it with preview and do save as...
    I now know that the new version of preview no longer has save as (which is an interesting decision by Apple)
    So I am guessing that the new imac has an even better way to change my png screenshot to jpg, so please help?
    Thanks in advance.
    tom

    there is a Terminal-command to change the screenshot-format:
    "In Mac OS X 10.4 and later, the default screenshot format can be changed, by opening Terminal (located at /Applications/Utilities/Terminal) and typing in:
    defaults write com.apple.screencapture type image_format
    killall SystemUIServer
    Where image_format is one of jpg, tiff, pdf, png, bmp or pict (among others). If you omit the second line, you will need to log out and in again for the change to take effect."
    found here:
    http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X

  • Can I turn off features in iCloud in mountain lion?

    After upgrading to Mountain Lion and signing into iCloud with my Apple ID and password - can I then turn OFF features/programs such as Mail or Contacts in iCloud on my computer  and keep ON the programs I wish to sync with iClound and my other computers (as I could with Lion or on my PC) ?

    In the System/iCloud preference pane:
    NOTE: the screenshot is from Lion but would be surprised if ML didn't have the same preference pane.
    OT

  • Changing a screenshot to JPG instead of PNG

    I've got a script that works that runs on a scheduled task to snapshot the screen of a computer.  Basically the computer runs a query at a regular interval that is pretty resource intensive on the server but has information that anyone might want to
    see at a given time.  So rather than having them generate the data on the fly, they get a html page that displays the screenshot of the last result set. The script is based on another one that I found online.  Right now it saves in PNG format and
    is about 1.8MB.  I'm trying to get it to save in .JPG format so it is smaller.  
    This works:
    $ScreenshotObject.Save($FilePath)
    However this does not:
    $ScreenshotObject.Save($JpgOut, Drawing.Imaging.ImageFormat.Jpeg))
    I'm about 90% sure my problem lies in the Drawing.Imaging.ImageFormat.Jpeg part.  I guess I'm not sure what the correct parameter is since there seem to be many things that can end in .ImageFormat.Jpeg.  I've tried Drawing.Bitmap.ImageFormat.Jpeg.
    I've tried with System at the beginning. I've also tried Drawing.Grapics.ImageFormat.Jpeg
    I've also tried several variations on New-Object and various ways of trying to save it.
    I guess I just can't figure out which is the right way.
    The errors vary from Cannot find Type, or complaining that I passed a null value.
    $ImageFormat = New-Object [Drawing.Imaging.ImageFormat]::Jpeg
    $ImageFormat = New-Object [Drawing.Imaging]::ImageFormat.Jpeg
    $ImageFormat = New-Object [Drawing.Imaging]::ImageFormat
    $ScreenshotObject.Save("C:\Screenshot\Current.Jpg",$ImageFormat.Jpeg)
    $ScreenshotObject.Save("C:\Screenshot\Current.Jpg",$ImageFormat)
    And I've tried with and without:
    Add-Type -Assembly System.Drawing.Imaging
    Here's the full script.  I've alternated between commenting out the first save and uncommenting the second.
    Again, just saving it with a default path outputs it in PNG format and works.  It's just 1.8MB is a lot to put in a web page the that keeps refreshing.
    $Path = "c:\Screenshot"
    $Current = "Current.Png"
    $CurrentJpg = "Current.Jpg"
    $JpgOut = (Join-Path $Path $CurrentJpg)
    Function GenScreenshot
    $ScreenBounds = [Windows.Forms.SystemInformation]::VirtualScreen
    $ScreenshotObject = New-Object Drawing.Bitmap $ScreenBounds.Width, $ScreenBounds.Height
    $DrawingGraphics = [Drawing.Graphics]::FromImage($ScreenshotObject)
    $DrawingGraphics.CopyFromScreen( $ScreenBounds.Location, [Drawing.Point]::Empty, $ScreenBounds.Size)
    $DrawingGraphics.Dispose()
    $ScreenshotObject.Save($FilePath)
    #$ScreenshotObject.Save("C:\Screenshot\Current.Jpg", Drawing.Imaging.ImageFormat.Jpeg))
    $ScreenshotObject.Dispose()
    Add-Type -Assembly System.Windows.Forms
    $Time = (Get-Date)
    [string] $FileName = "$($Env:ComputerName)"
    $FileName += '-'
    $FileName += "$($Time.Hour)"
    $FileName += '-'
    $FileName += "$($Time.Minute)"
    $FileName += '.png'
    [string] $FilePath = (Join-Path $Path $FileName)
    Remove-Item $FilePath
    GenScreenshot
    Copy-Item $FilePath -destination (Join-Path $Path $Current)

    I think this is loser to what you are trying to do:
    Function GenScreenshot{
    param(
    $ImageFile,
    $ImageFormat='Jpeg'
    Begin{
    Add-Type -Assembly System.Windows.Forms
    Process{
    $ScreenBounds = [Windows.Forms.SystemInformation]::VirtualScreen
    $ScreenshotObject = New-Object Drawing.Bitmap $ScreenBounds.Width, $ScreenBounds.Height
    $DrawingGraphics = [Drawing.Graphics]::FromImage($ScreenshotObject)
    $DrawingGraphics.CopyFromScreen( $ScreenBounds.Location, [Drawing.Point]::Empty, $ScreenBounds.Size)
    $DrawingGraphics.Dispose()
    $ScreenshotObject.Save($imagefile,[System.Drawing.Imaging.ImageFormat]$ImageFormat)
    $ScreenshotObject.Dispose()
    $path='c:\screenshot'
    $FileName='{0}\{1} {2:hh-mm}.jpg' -f $Path, $Env:ComputerName,[datetime]::Now
    Remove-Item $filename -ea 0
    GenScreenshot -ImageFile $filename
    Invoke-Item $filename
    \_(ツ)_/

  • Screenshot capture

    I have a question
    Is there a way to write a code and apply it for every component at once.
    I used the example from this link: https://aptframework.dev.java.net/gooey/screenCapture.html
    public final class ScreenShot {
        /** The logger object for this class. */
        private static final Logger log = Logger.getLogger(ScreenShot.class);
        private static JFrame frame = (JFrame)XXX.getBeanFactory().getBean(XXX); //Parent's frame data
         * Empty Constructor
         * This allows the static local variable to be used in other classes
         * as their reference.
        private ScreenShot(){
            //Empty Constructor
         * Captures a screenshot by pressing a hotkey button
         * and, then it automatically saved to the specific
         * location path (i.e. C:/Screenshot folder)
        public static void captureScreenShot(KeyEvent kL){
            if (KeyEvent.getKeyText(kL.getKeyCode()).equals("F12")){
                /* File Unique Identifer:
                 * Each screenshot's filename has its own unique identifer
                 * to avoid being overwritten. (i.e. Screenshot1.jpg)
                int numFile = 0;
                 * Check if the filename is existed.
                 * If true - incrementing the numFile
                StringBuilder fileName = new StringBuilder();
                File f;
                do {
                     * Labeling the screenshot capture with a file name
                    fileName.delete(0, fileName.length());
                    fileName.append("Screenshot");
                    fileName.append(numFile);
                    fileName.append(".jpg");
                    //Pathname location
                    f = new File("C:/" + fileName.toString());
                    ++numFile;
                } while (f.exists());
                 * The image is being saved and adds to the pathname location.
                try {
                    Robot robot = new Robot();
                    BufferedImage image = robot.createScreenCapture(frame
                            .getBounds());
                    String strFileName = fileName.toString();
                    ImageIO.write(image, getImageExtName(strFileName), f);
                } catch (AWTException awtEx) {
                    log.error("Failure: Unable to capture a screenshot of a window: \n"
                                    + StackTraceString.asString(awtEx));
                } catch (IOException ioEx) {
                    log.error("Failure: Unable to identify the screenshot's file extension: \n"
                                    + StackTraceString.asString(ioEx));
         * Obtains the extension of a filename
         * Returns value of String
        protected static String getImageExtName(String fullFileName){
            if(fullFileName.endsWith(".jpg")){
                return "jpg";
            throw new IllegalArgumentException(fullFileName);
    }Then I added this code to the parent that contains all components:
    As a local static variable in the parent frame class-
         * KeyListener:
         * Listens to the buttons that are pressed on the keyboard.
         * If the "F12" button is being pressed, then it automatically
         * activates the performance of capturing the Screenshot.
        private static KeyListener keyStrokeListener = new KeyListener(){
            public void keyPressed(KeyEvent kE){
                ScreenShot.captureScreenShot(kE);
            public void keyReleased(KeyEvent kE){
                //Ignore - Required to include this to activate KeyListener()
            public void keyTyped(KeyEvent kE){
                //Ignore - Required to include this to activate KeyListener()
        };Inside the construct of the parent frame class:
        public ParentFrame(.................................) {
            super("Parent Frame Window");
            addKeyListener(keyStrokeListener);       
        }It only works if the parent frame has the focus. If I open a child window from the menu in the parent window, then the child window get the focus and the Screenshot is not working at all unless I added to all components like this:
    component.addKeyListener(keyStrokeListener);

    you don't add the keybindings to the frame, instead add it to the rootPane (or layeredpane),
    but I missed the 'child window' bit from your first post. In that case you're probably better off
    using an awtEventListener.
    simple demo (for F12 key)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      public void buildGUI()
        JPanel p = new JPanel();
        JButton btn = new JButton("Show Dialog");
        p.add(btn);
        final JFrame f = new JFrame();
        f.getContentPane().add(p);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        Toolkit.getDefaultToolkit().addAWTEventListener( new AWTEventListener(){
          public void eventDispatched(AWTEvent e)
            if(e.getID() == KeyEvent.KEY_PRESSED && ((KeyEvent)e).getKeyCode() == KeyEvent.VK_F12)
                System.out.println("F_12");
        }, AWTEvent.KEY_EVENT_MASK);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            JDialog d = new JDialog(f);
            d.setModal(true);
            d.setSize(200,100);
            d.setLocationRelativeTo(f);
            d.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How do you add a dingbat to character viewer in order to select it?

    I understand that being unicode pages cannot use ITC Zaph dingbats from the keyboard that i need to use the special characters. very awkward! but how do i insert a character from zaph dignbat into special characters?
    thank you

    If I open Font Book, and choose named font, I can see a list of symbols, e.g.
    If I open Character Viewer, and switch to Pictographs, I can see something like this
    so I assume that named font includes chars in the category Pictographs, which you can use at ease, I hope.
    If you need them frequently, you may create your custom keyboard layout, if you wish this, come back with what you wish.
    Screenshots are in Lion, but the procedure is the same, I hope.

  • How do you add a directory to a manifest.mf file, andf in what order.

    How do you add a directory to a manifest.mf file in a JAR file, andf in what order.
    I know how to set a classs files and file class's & Main Class's not a problem, but how about a directory/folder.
    The Directory/folder contains class's. My prog can run the class's from a Jlist, as long as I set the classpath directly by control panel user varaibles manully or by a Bat file running in the back ground.
    any crazy ideas I'll excecpt and give a bloody good try.
    I tried.
    Class-Path: C:/bb/
    Class-Path:C/bb
    Class-Payh:bb
    Class-Path:bb/
    Class-Path: \bb\
    Class-Path:bb\ Not to sure if I've tried this, ttto many beers cans drunk at this stage.
    Friday night is beer night.
    WHAT am I doing wrong, or doing that can't be done with a JManifestMF file.
    Maybe Wrapper, and not the type that turn decks, and look at very low cameras while singing.

    If I open Font Book, and choose named font, I can see a list of symbols, e.g.
    If I open Character Viewer, and switch to Pictographs, I can see something like this
    so I assume that named font includes chars in the category Pictographs, which you can use at ease, I hope.
    If you need them frequently, you may create your custom keyboard layout, if you wish this, come back with what you wish.
    Screenshots are in Lion, but the procedure is the same, I hope.

  • How to see data being downloaded and uploaded by Mac?

    hey guys, i just saw a screenshot of a Lion desktop which had the user's memory usage, data being downloaded and uploaded and CPU usage at the top right near the clock. i was just wondering how i could get this on my desktop.    
    thanks

    Yes it is is like a small istat..Same developers,same website,i see you didn't check muck ...
    Here it is anyways:
    http://www.islayer.com/apps/istatnano/

  • Shared device / wireless network security

    Past couple days... my daughters SLEEPING MBP has appeared on my MBP as a shared device. How is this possible if it's sleeping?
    Perhaps there's a good explanation for this, but I'm concerned about it.
    She connects via wireless to our home D-link wireless router.
    Wasn't sure where to ask question on boards... help appreciated.
    Thanks.
    David Stamm

    Here are the relevant System Preferences Mr. Stamm:
    To enable "wake" from a remote system (Note this feature may not work with non-Apple routers, so it's good to know it works with your D-Link):
    To enable screen sharing, file sharing etc ("Remote Management" encompasses Screen Sharing):
    Connecting to your system from another one, for purposes of screen sharing or copying files (screenshot is from Lion):
    If you do not want your password field to automatically populate, just deselect "Remember this password..."
    In summary:
    You always need a name and password
    Your name and password are secured in OS X's Keychain (with your consent)
    You can enable or disable any or all of these features
    None of your shared devices or computers may by reached from outside your LAN (without using other utilities)
    I hope this helps assuage your concerns.

  • I can not install the update from adobe media encoder

    I can not install the update from adobe media encoder for MPeg 2 DVD, it will not install error code U44M2P28

    Would you have any screenshots, filename and the exact URL that you used to download Flash Player. Can you also, please provide your system configuration to help us identify the issue.
    Thanks,
    Anamika
    Adobe Team

  • How can I set descriptive filename while taking screenshot?

    When taking a series of screenshots (for instance when documenting the use of a web app), I'd like to be able to set a meaningful filename while I capture the image, rather than end up with a lot of timestamped image files in my Screenshots folder, which then need to be examined and relabeled.
    Is there a way in OS X using Cmd-Shift-4 (or a paid app) that allows me to enter a filename during the screenshot-capture workflow?
    Thanks.

    None that I'm aware of. See https://discussions.apple.com/message/22268462#22268462 for details on how names are assigned.

Maybe you are looking for

  • How to Upgrade from 10.1.0.2 to 10.1.0.4  ?

    Hi i need to upgrade RDBMS 10.1.0.2 to 10.1.0.4 ,i know that it require a patch file but the problem is i can't register at Metalink to download the patch file. So any idea or other solution ? Thanks Younis

  • Now I can't open IMovie 7.1.2 on my MacBook first generation but last month

    Now I can't open IMovie 7.1.2 on my MacBook first generation but last month I make a movie on it. The Message is " IMovie requiered a QuartzExtrem card and your computer dosen't have one" (or someting like that_) What happen !!!

  • System slow down, login delay, slow apps

    I am running an xserve 2.8 quad core Intel Xeon with OSX 10.6.8. I have 350 users connecting from labs, all workstations are intel iMacs os 10.6.8. Users login fine during periods of quiet on the network, but when 2 or 3 classes login simultaneously

  • Getting bad argumnet error when using UTL_MAIL.SEND_ATTACH_VARCHAR2

    HI This is my code. I dont know what I am missing. Please advice. RK begin UTL_MAIL.SEND_ATTACH_VARCHAR2( sender => '[email protected]' ,recipients => '[email protected]' ,cc => null ,bcc => NULL ,subject => 'RE: Testing Attachment' ,message => 'Dear

  • Relation between Maintenance Order No. and Operation Number

    Hi all, I have to make a module pool in which i want to display the following field Order No.                                                Operation no. | Operation Description | Now my problem is that i m not getting the tables from which i have t