• 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
Re: getting height x width of image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting height x width of image


  • Subject: Re: getting height x width of image
  • From: TjL <email@hidden>
  • Date: Wed, 20 Jun 2007 15:40:10 -0400


On Jun 20, 2007, at 3:31 PM, Mark J. Reed wrote:

On 6/20/07, TjL <email@hidden> wrote:
Haven't had any problems with multiple . in OS X. Windows, yes....

Well, exactly. Files that I create have this tendency to wind up on other systems running other OSes... :)

True enough. I often email screenshots when trying to get diagnostic help on some software problem, so using _ or - rather than . is probably a good idea


        screenshot-344.0x87.0-2007-06-20_15.18.30.png

Could I be potentially rude and ask another question/favor?

Not rude to ask. What we're here for.

Yes, I know, but I also know that when you help someone and they just ask another question it can get tedious. (*)



Rather than 344.0x87.0 is there a way to drop the .0 so it's just
344x87?

Sure. Do this after the tell block but before building the string:

set W to W as integer
set H to H as integer

AHA! I knew those terms from 7th grade math would come in useful some day :-)


Thanks!  Perfect.

TjL


_______________________________________________ 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
References: 
 >getting height x width of image (From: TjL <email@hidden>)
 >Re: getting height x width of image (From: "Mark J. Reed" <email@hidden>)
 >Re: getting height x width of image (From: TjL <email@hidden>)
 >Re: getting height x width of image (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: getting height x width of image
  • Next by Date: Re: getting height x width of image
  • Previous by thread: Re: getting height x width of image
  • Next by thread: Re: getting height x width of image
  • Index(es):
    • Date
    • Thread