Re: Tell Finder Make New Folder wierdness!

From: Roderick Scott Corporation (scott@RSCORP.AB.CA)
Date: Thu May 24 2001 - 14:48:03 AEST


>As always, keep your appendages in the vehicle at all times and WFLW-

Pardon my sheltered life....  WFLW?

Watch for loose women? Who Farted - Lester Winchester?

>on sureFolder(strPath)

.../snip/...

>               if exists container strPath then

uh huh, container... that's better than folder as it could be a drive
or folder.

.../snip/...

>                               try
>                                       alias strFolderPath

Considering we're looking for failure, this is a shorter, more
reliable process than using 'exists'

.../snip/...

>--  End AppleScript  --
>This works given a valid string, and there are better ways to do
>this.  I prefer to use Akua's when possible -
>
>    verify path "Disk:Folder:Folder:Folder:"
>
>Tidy.  Lots of other useful stuff in there, too.

Every time I have to rely on an external solution, I lose a fragment
of reliability. The final script is concise enough that speed and
complexity is not the primary concern. With a larger, more complex
script I can then justify writing an installer and thus guarantee the
OSAXen are placed appropriately in the Scripting Additions folder
etc. Gives me the option to tell the user to _re-install_ after
upgrades, crashes or meddlesome operators.

Thanks,

Scott
________________________________________
Scott Sandeman-Allen
Roderick Scott Corporation
Edmonton, Alberta. Canada

------------------------------



This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:29 AEST