Pages: [1]   Go Down

Author Topic: scripting screenshot of fixed selection to clipboard  (Read 1207 times)

IIO

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 4507
  • just a number
scripting screenshot of fixed selection to clipboard
« on: October 04, 2023, 04:20:10 PM »

say i needed to make a screenshot from the application ABC limited to e.g. 300 300 800 800 relative to the left top screen corner, and save that screenshot ONLY in the OS clipboard (i.e. without writing a file to disk before)

in an ideal case you would just lauch a script from the applemenu to do so.

(in OSX i also had access to the tcsh shell from within maxmsp.)

is that possible? any ideas?

i needed it for OS9, OSX PPC, later OSX, win10
Logged
insert arbitrary signature here

robespierre

  • Veteran Member
  • ****
  • Offline Offline
  • Posts: 140
  • malfrat des logiciels
Re: scripting screenshot of fixed selection to clipboard
« Reply #1 on: October 04, 2023, 07:23:35 PM »

Seems like it is possible using screencapture, mktemp, and ImageMagick's convert.
Logged
Pages: [1]   Go Up
 

Recent Topics