Re: getting users
Re: getting users
- Subject: Re: getting users
- From: Gnarlodious <email@hidden>
- Date: Tue, 13 Jan 2004 12:35:21 -0700
Entity Marc K. Myers spoke thus:
>
set thePath to "/Users"
>
set theFldr to POSIX file thePath as text
>
tell application "Finder"
>
set userList to name of folders of folder theFldr whose name is not
>
"Shared"
>
end tell
In my case, there aren't any userfolders in /Users, so:
set thePath to "/Users"
set theFldr to POSIX file thePath as text
try
tell application "Finder" to set userList to name of folders of folder
theFldr whose name is not "Shared"
on error
set userList to {""}
end try
Is this the most effective way to prevent an error?
-- Gnarlie
_______________________________________________
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.