Script Editor Screen Capture?!

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

  1. maxamity macrumors newbie

    Joined:
    Jul 19, 2008
    #1
    Hi...
    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

    kainjow

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

Share This Page