Re: Missing size values in SL Finder
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