• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
if if if Pfft!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: if if if Pfft!
      • From: Shane Stanley <email@hidden>
    • Re: if if if Pfft!
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: RE: Applescript LetterRip Server
  • Next by Date: Re: New!!!
  • Previous by thread: Re: TIDs and Unicode
  • Next by thread: Re: if if if Pfft!
  • Index(es):
    • Date
    • Thread