Script Editor Screen Capture?!

Discussion in 'Mac Programming' started by maxamity, Oct 20, 2008.

  1. maxamity macrumors newbie

    Jul 19, 2008
    I'm wondering if it is possible to create an image capture for mac in Script Editor so I can select a region. I already have the coding to capture the whole screen, but I want to select a region as well.

    The Coding:

    property N : 0
    set N to N + 1
    set picPath to ((POSIX path of (path to desktop)) & "Picture_" & N & ".png") as string
    do shell script "screencapture -tjpg " & quoted form of picPath
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Use the -i option with screencapture to select an area.

Share This Page