• 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: Missing size values in SL Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing size values in SL Finder


  • Subject: Re: Missing size values in SL Finder
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 15 Sep 2009 11:41:58 -0500

In my last post, this worked ...

tell application "System Events" to set sourceSize to (physical size of sourceFolder)

where sourceFolder is an alias to a folder. But, I was curious why System Events worked with an alias without complaining. System Events usually complains unless it's given a text path. So I tried finding the free space of a disk. I found that an alias will NOT work in that case. Here is what does work ...

tell application "System Events" to (free space of disk (POSIX path of diskAlias))

and

tell application "System Events" to (free space of disk (diskAlias as text))

 _______________________________________________
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: 
 >Missing size values in SL Finder (From: Doug Tallman <email@hidden>)

  • Prev by Date: Re: Need to automate iTunes->File->Library->Import Playlist...
  • Next by Date: Re: Courier in 10.6
  • Previous by thread: Re: Missing size values in SL Finder
  • Next by thread: Re: Missing size values in SL Finder
  • Index(es):
    • Date
    • Thread