• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: System Folder Path - Mac OS 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >System Folder Path - Mac OS 9 (From: Charles Heizer <email@hidden>)

  • Prev by Date: Re: Get File Size - Mac OS 9
  • Next by Date: unicode
  • Previous by thread: Re: System Folder Path - Mac OS 9
  • Next by thread: another Quark scripting question
  • Index(es):
    • Date
    • Thread