if if if Pfft!
if if if Pfft!
- Subject: if if if Pfft!
- From: Paul Skinner <email@hidden>
- Date: Mon, 19 May 2003 21:14:22 -0400
tell application "Adobe Photoshop 7.0"
set documentMode to mode of document 1
if documentMode is CMYK then set channelCount to 4
if documentMode is in {RGB, Lab} then set channelCount to 3
if documentMode is grayscale then set channelCount to 1
end tell
Isn't there a smart way to do this? I can't recall, but I thought I
knew a way to do this as a single statement.
Paul Skinner
ps. No I can't just count the layers. There may be any number.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.