Screenshot and Applescript... question
David Flanders
DFlan at roadrunner.com
Wed Apr 9 00:18:29 EDT 2008
Hi Sarah,
get shell("/usr/sbin/screencapture ~/Desktop/Screenshot.png
filePathTwo" ) works for one monitor, however just found that if you
have more than one monitor then just add the appropriate number of
file paths ( with different file names of course ) and screencapture
is smart enough to get the separate monitors. Cool beans.
Thanks
David
David Flanders
--------------------
DFlan at roadrunner.com
--------------------
Environment:
MacBook Pro
Intel, Core 2 Duo
2.33 GHz
2 Gigs RAM
OS:
Mac OSX 10.4.11
RunRev 2.8.1
On Apr 8, 2008, at 11:57 PM, Sarah Reichelt wrote:
> The shell command screencapture has a parameter "m" that says you only
> want to capture the main monitor.
> What happens if you leave this out
> e.g. get shell("/usr/sbin/screencapture ~/Desktop/Screenshot.png")
>
> I only have one monitor set up here, so cannot test this.
>
> Or using System Events & AppleScript, you can simulate the keystrokes,
> like this:
> tell application "System Events"
> keystroke "#" using {command down, shift down}
> end tell
>
> (The keystroke character in the quotes should be whatever you get when
> you type Shift-3.)
>
> HTH,
> Sarah
More information about the use-livecode
mailing list