• 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: Li'l Help with my if, then, else statement?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Li'l Help with my if, then, else statement?


  • Subject: RE: Li'l Help with my if, then, else statement?
  • From: "Goodman, Steve" <email@hidden>
  • Date: Thu, 1 Mar 2001 17:06:01 -0600

I believe that you need the path to the Utilities folder for the script to
check for its existence. However it may be more reliable to try and set the
path as an alias. On my version of AS and OS 9.0.4 the Finder returns the
path to the desktop folder when getting the path to the startup disk. Maybe
someone else can elaborate more on that.

> tell application "Finder"
> if folder "Utilities" exists then

Could be:

Try
(((path to startup disk) & "Utilities:")as string) as alias
--do your stuff
on error
--make your folder and do your stuff
end try


Steve Goodman
Vertis - THE LTC GROUP

......."Duct tape is like the force, it has a light side and a dark side and
it holds the universe together."------Unknown


  • Prev by Date: Re: Li'l Help with my if, then, else statement?
  • Next by Date: Re: Li'l help with if, then, else
  • Previous by thread: Re: Li'l Help with my if, then, else statement?
  • Next by thread: Re: Li'l Help with my if, then, else statement?
  • Index(es):
    • Date
    • Thread