• 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
Converting height and width to numbers, text, or string in PhotoS hop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting height and width to numbers, text, or string in PhotoS hop


  • Subject: Converting height and width to numbers, text, or string in PhotoS hop
  • From: Ron Bishop <email@hidden>
  • Date: Thu, 12 Apr 2001 15:46:10 -0500

I need to make a decision based on weather a picture is landscape or
profile. I know how to get the height and width however that yields the
result of "pixels X.X" which I don't know how to coerce into either text,
numbers, or a string. Any ideas?

tell application "Adobe. Photoshop. 5.0.2"
activate
tell current document
set photoHeight to height
set photoWidth to width
end tell
end tell


Thanks,
Ron Bishop

[demime 0.97c removed an attachment of type application/ms-tnef]


  • Prev by Date: Re: RE: Scripting dropping a file onto a droplet
  • Next by Date: Re: CGIs with MacOS 9.1 - problem
  • Previous by thread: Re: RegEx simple problem-a quickie
  • Next by thread: RE: [PS-S] Converting height and width to numbers, text, or strin g in PhotoS hop
  • Index(es):
    • Date
    • Thread