• 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: physical size error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: physical size error


  • Subject: Re: physical size error
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 30 Sep 2010 14:53:17 -0500

On Sep 30, 2010, at 2:20 PM, Stockly, Ed wrote:

Is this finder or system events?

This rang a bell for me so I looked into a couple handlers and found this:

tell application "Finder"
    
update imageFile
   set imageSize to physical size of imageFile
end tell


I’m betting that System Events would be more reliable.

I was using Finder. I'll try using System Events and let you know.

........ wait for it .......

I replaced the previous code with ...

tell application "System Events" to set fileSize to physical size of disk item (fileAlias as text)

it works perfectly every time! Thanks.

 _______________________________________________
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: 
 >Re: physical size error (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: physical size error
  • Next by Date: Re: FileMaker Error on Do Script
  • Previous by thread: Re: physical size error
  • Next by thread: how does an a/s app find other apps?
  • Index(es):
    • Date
    • Thread