Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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




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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.