Hello,
I’m looking to select two areas on a page defined by their four coordinates. I have no problem selecting and clearing out the contents of one area, but when I try and find a way to select another area leaving the original area still selected (same as holding down shift key while selecting subsequent areas), I can’t find a way. I even tried using System Event for a shift key press, but that didn’t work. The Photoshop dictionary indicates there’s a way by using combination type, but I can’t get the syntax correct. I’m fairly new to this, and it could be me, but I have a hard time decyphering the Applescript dictionaries for scriptable applications.
Here is the excerpt from the Photoshop CS2 dictionary:
select‚v : change the selection
select document : the document object or objects to be operated upon
region list of anything : list of corners of the selection (in pixels)
[combination type diminished/extended/intersected/replaced] : how to combine the new selection with the existing selection ( default: replaced )
[feather amount real] : feather amount ( default: 0.0 )
[antialiasing boolean] : whether to use antialiasing ( default: true )
The following works to do one area, but I can’t figure out how to add the second array of coordinates. I thought combination type:extended and the second list of area coordinates, but that gives an error.
select current document region {{8, 87}, {222, 87}, {222, 106}, {8, 106}}
Any help would be appreciated.
Regards,
Zoar
Model: G5 Dual
AppleScript: 1.0 ?
Browser: Safari 417.8
Operating System: Mac OS X (10.4)