RE: Li'l Help with my if, then, else statement?
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