Re: Index list from the Finder - with Size
Re: Index list from the Finder - with Size
- Subject: Re: Index list from the Finder - with Size
- From: "Daniel Brieck Jr." <email@hidden>
- Date: Thu, 26 Jul 2007 09:55:25 -0400
Yes I was attempting to use index as a unique identifier, to remove
'Servers' and 'Network' from the listing. The only down side that I
have found with using 'size' is that the size field appears to not be
immediately updated when you are connecting and mounting remote afp
or SMB volumes.
SITUATION:
The situation works like this you have a single other Mac/PC you want
to connect to to share remote volumes with. You connect the first
volume run the script below it works alright the size is there. You
connect the other volumes and run the script below again and this
time the size is 'missing value' for the just added volume for awhile
until you play around with the Finder, manually getting info on that
volume in the Finder seems to work to update the missing value to
its actual value. Is this normal behavior or is it just how it works
on my computer.
Note: That all network connections are done using GO > Network in the
Finder.
However, running in a loop a condition test such as : (diskSize) is
greater than 0 or (diskSize) is missing value
That condition above seems to give the results I am looking for, but
it seems kind of "Mickey Mouse". Is using missing value as a test
condition a bad idea? Or is there some way to make the finder update
all the size values using AppleScript?
----Test Script
tell application "Finder"
set diskSize to get the size of every disk
end tell
get diskSize
---- end Test script
Thank you,
Daniel J. Brieck Jr.
_______________________________________________
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