• 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: Creating folders (directories) without the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Creating folders (directories) without the Finder
  • Next by Date: Automated Cleanup
  • Previous by thread: Re: Creating folders (directories) without the Finder
  • Next by thread: Re: Creating folders (directories) without the Finder
  • Index(es):
    • Date
    • Thread