Re: Creating folders (directories) without the Finder
Re: Creating folders (directories) without the Finder
- Subject: Re: Creating folders (directories) without the Finder
- From: Michelle Steiner <email@hidden>
- Date: Thu, 22 Mar 2001 08:52:15 -0800
And here is a simple input to test this handler:
display dialog (verifyPath(text returned of (display dialog " Enter the
path to verify." default answer "")))
--Michelle
On 3/22/01 8:20 AM, Arthur J Knapp <email@hidden> wrote:
>
This second handler is just an example of how you can extract
>
more information about the existence/non-existence of the path:
>
>
on verifyPath( pathString )
>
try
>
alias pathString
>
>
on error errmsg number errnum
>
>
if errnum = -35 then
>
return "disk does not exist"
>
>
else if errnum = -120 then
>
return "a folder does not exist"
>
>
else if errnum = -43 then
>
return "the file does not exist"
>
>
else
>
error errmsg number errnum
>
end if
>
end try
>
>
return "exists"
>
>
end verifyPath
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------