Volume question
Volume question
- Subject: Volume question
- From: "Stefaan Degryse" <email@hidden>
- Date: Thu, 7 Mar 2002 17:56:54 +0100
- Thread-topic: Volume question
Hello all,
I have a small AppleScript which goes through the mounted volumes on my
desktop and gets the server name of these volumes. All works perfect
except if two volumes with the same name from different servers are
mounted then the script just chocks (gets the info two times from the
same volume).
Tried to get the IP address of a volume which is mounted, but with no
luck so far. The information window property of the item class could
help, but one of the two fields i can't get to is the 'Where' field so
i'm out of luck there too, our i simply missed it. Set me straight if i
did.
Here is the script;
tell application "Finder"
activate
set theDskList to disks
repeat with d in theDskList
if local volume of d is equal to false then
select first folder of d
set theDName to name of d as string
set theVName to name of first folder of d as string
make new alias file to selection at disk theDName
set theVAlias to theVName & " alias"
set theServer to alias server of (alias info from) of
the selection
select file theVAlias of disk theDName
delete selection
end if
end repeat
end tell
The script uses the 'alias info from' function from the Akua Sweets OSAX
Does anybody have any pointers how this can be solved?
Wish it would be for OS X 'cause that would make my life easier, but
it's for good ol OS 9.x so no mercy for me ;-)
Stef,
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.