Screenshots in Mac OS X

Hey guys,
Good Morning!
How are you doing?
I am in need of your help.
I am stuck in a problem.
I am new to PyObjC, and I want to write my own Screenshot Taking program in PyObjC for Mac OS X.
The logic which I could think of is, we can something use like "switch" statements as in C++ and Java, for considering the KEYS PRESSED, and the associated action which is to be taken, but don't know how to code it in PyObjC. As well, whenever the program is executed, it should be running at the background as well, so that I can switch the application and take the screenshot of any window of my choice, and it should override Mac's built-in functionality with this program, until the program is running.
I have googled about it as well as searched about it on Stackoveflow and StackExchange, but I couldn't find any relevant info. All I found is taking screenshots using command-line, but that is not what I am looking for.
Example : Whenever Command + Shift + 3 is pressed ==> whatever is there on the screen, should be grabbed / captured, and should be stored on my local with my own desired path, and name should automatically given as SnapshotX.. as in Snapshot1, Snapshot2, etc...
The same goes with Command + Shift + 4 ==> the only difference is that, it allows you to select a particular area to be captured / grabbed.
Command + Shift + 5 ==> This one is a little bit tricky which I am looking for. This shortcut doesn't exist. I want to create one of my own, where it would grab the entire webpage's screenshot which I am currently working on, and store the name as the webpage's url / link.
The code which I have written in Python :
import os
import datetime
datetime =  datetime.datetime.now().strftime("%a %Y-%m-%d %I.%M.%S.%f %p")
format = ".png"
check_snapshot = "/Users/Apple/Desktop/'ScreenshotsTest %s%s'" % (datetime, format)
os.system("screencapture -s %s" % check_snapshot)
I want to add Cocoa Key event listeners of the above mentioned shortcuts to work.
This works very well when I run using Terminal. I want that as soon as any of the above shortcuts combination is pressed, the event should be triggered if the program is running at the backend, regardless of the Terminal being as an active window.
Thanks in advance for your kind help and time.

Hey Michael,
Thanks for reverting.
How do I do it with Objective-C?
I tried doing it with Objective-C as well, but somehow it's not working in the way I am looking for.
Could you pls help me out in this?
Thanks.

Similar Messages

  • Forgot where I linked to save Screenshots on Mac, How to find out?

    Forgot where I linked to save Screenshots on Mac, How to find out?
    hi,
    I have changed the location (default was on desktop) to save the screenshots on Mac (software: MAC OSX Version 10.7.3). But, I forgot where was it linked to (the new location). Is there any way to find out the location? If not, how to delete away those files by recent screenshots. (I use CTRL + COMMAND + SHIFT + F3) to take it. Please help me with this. Thanks a lot.

    >I use CTRL + COMMAND + SHIFT + F3
    If you are using ctrl-command-shift-3, then the screenshots are going to your clipboard and are not saved elsewhere. (I don't know about using F3 instead of 3)
    If you are using command-shift-3, then the screenshots do get saved, with the default location being the Desktop. To look for the current location, download and run TinkerTool, and look in its General tab. You can use that section to alter the screenshot location; it may also tell you the current location even if it had been altered by another method.

  • Cannot capture screenshot in Mac when connect to external display

    I try to capture a sceenshot with a third party app (Snip) on my Mac and it connects to a external display, it is keep trying do it on the larger display instead of my Mac, I just wanna do a screenshot on my mac only
    many thx

    Hi Dean Luo!
    This article has information about taking screenshots in OS X:
    OS X Mountain Lion: Shortcuts for taking pictures of the screen
    http://support.apple.com/kb/PH11229
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Screenshots lagging Mac when opened

    I have recently brought the new 5k iMac which runs quick and I am pretty happy with it. However, when I have a screenshot opened there is lag. For example, if I have multiple screenshots opened with Preview and hit 'F3' to expand everything it lags and is not smooth. This is the same with using quick view (space bar) and cycling view various files.
    I've looked and the size of some of the screenshots are 2MB~ which is pretty crazy for what it is. Is there an option for screenshots to be taken at a lower resolution. If so, should this solve the issue. Why can't Yosemite handle quick viewing these kind of files smoothly?

    Its a typical creak from the hinge cover which is plastic (black bar at hinge)
    Its a cosmetic hinge that covers monitor cables and wifi antenna.
    It could be out of place or have a bend it in. Easy replacement by Apple, however if it creaks it means usually the fit is too tight (doesnt affect anything at all)
    The friction hinges dont creak, its the plastic black hinge cover.
    Contact Apple for in shop replacement of the hinge cover / or repositioning it.

  • Why can't I screenshot on Mac OSX 10.9.4 Mavericks?

    I try the simple; Command, shift, 3 or 4 for sections. I was on the internet and I was looking for flights from my location to Boston, and I tried screens hotting and it redirected me to some page. To be more exact, commend shift 3 sends me to Facebook (3rd page on my bookmarks) and command shift 4 sends me to twitter (or the 4th one) please help! I really need to screenshot everything I do!

    Command-Shift-3 does a screen shot of the entire screen so is not affected by browser or anything else.  Command-Shift-4 brings up a cursor you must control to capture an area.
    Like this:

  • What is the keyboard shortcut for screenshot or print screen?

    what is the keyboard shortcut for screenshot or print screen?

    Taking Screenshots in Mac OS X
    Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop
    Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop
    Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop
    Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard
    Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard
    Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard
    In Leopard and later, the following keys can be held down while selecting an area (via Command-Shift-4 or Command-Control-Shift-4):
    Space, to lock the size of the selected region and instead move it when the mouse moves
    Shift, to resize only one edge of the selected region
    Option, to resize the selected region with its center as the anchor point
    Source: http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X

  • When i boot my mac it opens with a grey screen and the wireless keyboard, mouse illustration and won't do anything elsens,

    When I turn on my iMac (27" intel) all I get is connect my wireless keyboard and mouse on a grey screen. The mouse will connect (sometimes) after I wiggle it a bit, but nothing from the keyboard. After a few minutes the disk utilities box comes up. I ran permissions and repair permissions, verify and repair on my computer and it tells me everything is ok. But it won't let me past this screen. Any suggesions? Help!?!

    Hi Grace Be,
    Welcome to the Support Communities!
    The articles below may be able to help you with this.  I've summarized some of the key points below for you.  Click on the links to see more details and screenshots.
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/TS2570
    Disconnect, test peripheral devices and network cables
    Note: "Peripheral devices" refers to external devices other than what came with your Mac, such as hard drives, printers, or hubs that you connect via a USB or FireWire cable.
    Shut down your Mac. If necessary, hold your Mac's power button for several seconds to force it to power down.
    Disconnect all peripheral devices such as external hard drives or printers (leave only the display, a keyboard, and mouse connected).
    Disconnect any Ethernet cables.
    Start up your Mac.
    If you can start up this way, one or more of your peripheral devices (or installed software related to the device) is probably causing the gray screen issue. Connect one device, then restart your Mac to test for the issue. Repeat the process until you locate the device at issue. Check with the manufacturer of the device for support or possible software driver or firmware updates that may be available for the device. Try a different cable with the device if possible (such as a different USB or FireWire cable).
    If you are using a desktop Mac with a third-party keyboard and/or mouse device, and the issue still occurs, try starting up with an Apple keyboard and mouse connected instead. Try starting with no keyboard and mouse connected, then connect them after start up. Also, try a different USB port on your Mac.
    If the gray screen issue persists with no devices connected, go to the next section (with the peripherals still disconnected).
    Perform a Safe Boot
    Shut down your Mac. If necessary, hold your Mac's power button for several seconds to force it to power down.
    Start your Mac, then immediately hold the Shift key. This performs a Safe Boot. Advanced tip: If you want to see the status of a Safe Boot as it progresses, you can hold Shift-Command-V during start up (instead of just Shift).
    Note: A Safe Boot takes longer than a typical start up because it includes a disk check and other operations.
    If your Mac starts up as expected, immediately try restarting.
    If the Safe Boot does not work, or the restart after a successful Safe Boot does not work, go to the next section.
    Reset the NVRAM / PRAM
    Shut down your Mac. If necessary, hold your Mac's power button for several seconds to force it to power down.
    Reset the NVRAM / PRAM.
    I hope this information helps ....
    Have a great day!
    - Judy

  • Screenshot Defaults

    Hello
    Is there anywhere you can set the defaults relating to screenshots in Mac OS X?
    For instance, I would love to be able to set a default folder for where screenshots are saved. It really doesn't suit me to have them saved to the desktop by default!
    Thanks,
    Joe.

    Oops, I didn't notice that link was the SL version. I'm using the Leopard version, which you can get here:
    http://www.titanium.free.fr/viewtopic.php?f=11&t=633
    And it does exactly what you want and more.

  • Incompatibility CS6 and Mac os 10.6.8

    I recently bought CS6 and Ps and Ai don't run on my laptop computer, which runs mac os x 10.6.8 and can't be upgraded to 10.8. Why doesn't Adobe support this os? And is there a way to get version of Ps and Ai that work on that computer with my CS6 license?

    10.6 should run CS6 just fine
    what model Mac?
    Mac Logo> About this Mac> More Info> Support> Specifications (post screenshot)
    or
    Mac Logo> About this Mac> Overview> More Info> System Report
    also copy/past the Graphics/Displays info here under hardware
    lastly, how did you install it, have you tried rebooting the machine...

  • Problem with mac interface

    Hi !
    I just installed Dreamweaver CS4 on my new Macbook Pro. I used to use Dreamweaver CS4 on Windows. But, I have a problem with the interface on my macbook : when dreamweaver is running, I can see my desktop : there is no background like in a MDI application (on windows). To illustrate my problem, I took two screenshots :
    on mac :
    and on windows :
    So, I would like to know how to have the same interface with Mac OS X than with Windows.
    Thanx for your help and sorry for my english but i'm french.

    Click the green zoom (+) button in the top-left corner of the window to switch between a larger and smaller window size.
    Depending on the active application it either fills the entire screen or zooms to the size of the last largest size of the window that you set yourself by dragging bottom righthand corner to desired size.
    Photoshop has various ways to hide the Desktop. Either by using the Application frame (which doesn't neccessarily hide the entire Desktop) or by pressing the key F. Wanted by PC users but usually not by Mac users. (I would personaly never use it as it obscures the Desktop so you cannot easily reach other applications and documents by just clicking them to call them into the front and get active).
    DW doesn't have an application frame but it is easy enough to fill the entire screen with the active window, particularly if you open up a few panels and dock them to each other and use Split screen view with code on one size and design on the other, then place various bars at top and bottom. When you have organized it to your liking, save it as a Workspace (Window/Workspace Layout/New Workspace) and you have it handy for future use.
    Learn how to use the windows and workspaces in an efficient way and one of these days you might get used to it...

  • Content Aware Fill Black on Mac

    I have a 32 Bit HDR image in Photohsop CS6 and I tried using content aware fill on a section and it gave me black, but when I went to a PC and did it works fine. Why is there is a issue with it between OS's?
    ScreenShots:
    Original:
    Mac OS X Content Aware Fill Edit:
    Windows Content Aware Fill Edit:

    I get this problem both on my Mac book Pro and the Mac Pros in my schools Mac Lab.  The PCs dont have any problem with it. All of the Macs are Snow Leopard 10.6.8, and PC's are Windows 7. The version on the Mac Pro is version PS CS6 13.0.4 x64.  The version on my Mac Book Pro is the same PS CS6 13.0.4 x64.  I dont know why there is a problem. I can upload the image file.
    Here is a link to the HDR http://www.deviantart.com/download/6694884445106611/macombhallway_hdr2_01_by_macprodukshun z-d62oct9.hdr

  • Mac Mail and Grab

    I'm having a problem where I take a screenshot from Grab via Cmd-Shift-A and then copy that image to an email, but it's being sent as a TIFF and Windows users can't open it. Now I know I can go through several ways of saving to disk, converting, and then copy-paste, but that's much harder than it needs to be. Is there a way to use Grab (and ONLY Grab) to take screen captures and DIRECTLY paste the image to Mail?

    You can change the default file type for the screenshots.
    Change the File Format Your Mac Uses to Save Screenshots:
    http://macs.about.com/od/usingyourmac/qt/Screenshot-Format.htm
    Tom

  • Receive email delay one hour using Mac Mail client (Mountain Lion) connect Exchange Server 2010

    Hi all,
    My boss use iPhone, iPad, MacBook Air (Mac Mail client), MacPro (Mac Mail client) connect Exchange Serve 2010 to receive emails. All clients are okay except MacBook Air, the Mac Mail client cannot receive the latest emails from Exchange Server, but it can receive (sync) the emails after one hour. The other clients can receive the latest email after Exchange Server receive new emails immediately.
    In this period, the MacBook Air can receive the other IMAP, POP3 and webmail from ISP normally. I tried to set 5 mins to check emails or manual check email from Exchange Server. However, the latest email still delay one hour.......... .
    I dumped a screenshot for Mac Mail setting for Exchange Server and a Log file.
    could anyone help me to solve this issue?
    Thanks

    I am not sure what the user has the check for new messages set for but mail does arrive as short as 2 minutes.  It does however arrive on his iphone immediately first.

  • Email iPod mini and Mac

    Hi. I have seen other people ask this question and not been answered so I will try to be the exception.
    I got my wife an iPod mini for Christmas to replace her kindle fire. One major reason I did this was because she said she wanted her email on her mobile device.
    I just configured it last night according to the instructions, and each email is still only appearing on one device - depends on which one sees it first.
    (BTW - Mimi's email confit screen looks nothing like the screenshots from Mac support. )
    Any help would be appreciated. 
    MK

    if it's pop3 email then you have to set it not to delete the mails when downloading them

  • Mac pro 4,1 Fan problem. BoostB and BoostA

    Hi,
    Some days ago my Mac pro 2009 started to sound very noisy.
    Just installed SMC fan control and indicates that BOOSTA is a 0 rpm whereas BOOSTB is at 4602 Rpm. That is irrespective of the CPU load
    Have tried SMC reset but it just worked for several minutes.. then the BOOSTB fan started to run at full speed again.
    Booth BOOSTA and BOOSTB read 40-41 degrees centigrades. So they are not hot at all but BOOSTB is at full sped.
    How can I fix that? Thanks!

    Please see the screenshot from Macs Fan Control showing the BOOSTB at +4000 rpm and a huge difference in temperature in CPU sink A and B. Is that normal??
    What happens is that the BOOSTB fan once it starts running at full speed it does not decrease even though the temperature goes down. Is there a way to fix that?

Maybe you are looking for

  • Refresh data in a system form

    Hi all, i have the following scenario: i developed an addon to enable the user to modify the invoice billing address after the invoice has been created. to achieve it i used a UDF with a text edit field. everythings seems to works fine but i'd like t

  • How to update a column in a nested table for a given record in the master t

    Hi I have translations for all attributes of an item stored as a nested table CREATE OR REPLACE TYPE T_ITM_ATTR AS OBJECT( ATTR_NM VARCHAR2(30), ATTR_VAL VARCHAR2(200 CHAR), ATTR_STS_BL NUMBER(1)) INSTANTIABLE FINAL CREATE OR REPLACE TYPE T_ITM_ATTRI

  • Leopard - External drive disappeared!

    Hi, I'm really puzzled here. After 5 days of normal use, the external drive where I do my back ups with Time Machine simply disappeared! It's non to be found! I rebooted, restarted, disconnected, reconnected...nothing! Now when I connect the drive (a

  • How do I re-install the apple USB mobile device driver once it has been deleted?

    Hi, I was having issues getting my Itunes to recognize my Iphone 4s so I followed the apple support instructions here: iOS: Device not recognized in iTunes for Windows and it said to delete the driver software (Step 2 of Reinstall the Apple Mobile De

  • IMac Wont Boot Question.I cant find an answer.

    Ok Heres the story. I have an iMac 20" display Intel Core Duo. I came home yesterday and it was locked up.. I had to turn it off manually. When it rebooted it started up but was stuck with a folder with a "?" on it. I know it has to be the HDD. I boo