• 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: Does it presume too much [was Parent path]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does it presume too much [was Parent path]


  • Subject: Re: Does it presume too much [was Parent path]
  • From: Emmanuel <email@hidden>
  • Date: Sun, 3 Dec 2000 19:37:58 +0100

At 4:58 +0100 3/12/00, SemiColon wrote:
>The routine works fine, Am I making too much of a presumption with
>the "on error?"
>[snip]
> try
> set ItmsparentPath to "" & text items 1 thru -3 of (f as string)
>& ":"
> beep
> on error
> set ItmsparentPath to f as string
> end try
>[snip]

I have not tested this code, but I suppose that when you run the routine for:

"Macintosh HD:Internet:"

it returns "Macintosh HD:"

and if you run it for:

"Macintosh HD:"

it returns "Macintosh HD:" as well. Is this what you want ...

Best regards,
Emmanuel


References: 
 >Re: Parent path. Senility? (From: SemiColon <email@hidden>)
 >Re: Parent path. Senility? (From: Emmanuel <email@hidden>)
 >Re: Does it presume too much [was Parent path] (From: SemiColon <email@hidden>)

  • Prev by Date: Re: Contextual Menus in OS X?
  • Next by Date: he's ranting again (Was: Re: Month as Integer (or he's ranting again))
  • Previous by thread: Re: Does it presume too much [was Parent path]
  • Next by thread: Re: Parent path. Senility?
  • Index(es):
    • Date
    • Thread