• 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: OS X test for Class Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X test for Class Folder


  • Subject: Re: OS X test for Class Folder
  • From: christian vick <email@hidden>
  • Date: Mon, 28 Jan 2002 15:37:42 +0100

on 1/28/02 9:57 AM, Rich Fortnum at email@hidden wrote:

> If folder of (myItem) then
> display dialog "this is a folder!" buttons "OK"
> Else
> display dialog "This ain't no folder" buttons "OK"
> End if
>
> Doesn't seem to work. Any ideas welcome.

If you coerce the path reference to a string, you can test for an folder by
asking for the colon at the end:

Set ThePath to (alias foo as string)
If ThePath ends with ":" then display dialog "this is a folder!" buttons
"OK"


Greetings
cris


  • Follow-Ups:
    • Re: OS X test for Class Folder...continues
      • From: Rich Fortnum <email@hidden>
    • Re: OS X test for Class Folder
      • From: Rich Fortnum <email@hidden>
References: 
 >OS X test for Class Folder (From: Rich Fortnum <email@hidden>)

  • Prev by Date: There has to be a way to catalog...
  • Next by Date: Re: solutions to scripting addition terminology confilicts
  • Previous by thread: OS X test for Class Folder
  • Next by thread: Re: OS X test for Class Folder
  • Index(es):
    • Date
    • Thread