Re: System Folder Path - Mac OS 9
Re: System Folder Path - Mac OS 9
- Subject: Re: System Folder Path - Mac OS 9
- From: Robert Kalbaugh <email@hidden>
- Date: Thu, 05 Dec 2002 20:01:13 -0500
on 12/5/02 2:38 PM, Charles Heizer at email@hidden wrote:
>
Hello,
>
I'm trying to set a file to check for existence.
>
>
set theLoginFile to (file "Login" of system folder)
>
>
I have a script to setup the multiuser on my systems but I want to
>
check for the Login file first and it does not seem to work. I keep
>
getting "Can't get file "Login" of system folder."
>
>
>
Thanks,
>
>
- Charles
I think you might need the Finder to do it. It can report if a file exists.
One approach...
tell application "Finder"
-- next line sets variable to true or false
set loginExists to (exists file "Login" of system folder)
if loginExists then
-- do something
else
--do something else
end if
end tell
HTH
--
Bob.Kalbaugh
_______________________________________________
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.