photoshop cs3 path confusion
photoshop cs3 path confusion
- Subject: photoshop cs3 path confusion
- From: Håvard Graudo <email@hidden>
- Date: Wed, 10 Sep 2008 10:15:38 +0200
Can I change the operation of a photoshop path by applescript?
I have a picture in photoshop, plain jpg with a path.
The path is defined as shape subtract, I want to change it to xor:
I try the following. It seems to work and I get no error messages,
but the paths are not changed.
-->
tell application "Adobe Photoshop CS3"
tell document 1
set x to (count path items)
if x > 0 then
repeat with y from 1 to x
set pathitems to (every item of entire path of path item y)
repeat with enPathItem in pathitems
get operation of enPathItem
--> shape subtract.
set operation of enPathItem to shape xor
--> shape xor.
get operation of enPathItem
--> shape xor. this seems OK, but the operation of the path is
NOT changed.
end repeat
end repeat
end if
end tell
end tell
-->
If I run it again, Photoshop will report all paths to still be shape
subtract.
I am also somewhat confused by the Photoshop dictionary:
'operation' as a property of 'sub path item' class is read only.
'operation' as a property of 'sub path info' class is read write.
Another cup of coffee did not help either. Can someone enlighten me
here?
Håvard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden