• 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: SemiColon <email@hidden>
  • Date: Sat, 2 Dec 2000 19:58:13 -0800

The routine works fine, Am I making too much of a presumption with
the "on error?"

;

on extractParentPath(f)
set {oldTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
if (f as string)'s last text item is "" then
try
set ItmsparentPath to "" & text items 1 thru -3 of (f as string) & ":"
beep
on error
set ItmsparentPath to f as string
end try
else
set ItmsparentPath to "" & text items 1 thru -2 of (f as string) & ":"
beep 3
end if
set AppleScript's text item delimiters to oldTID
return ItmsparentPath
end extractParentPath


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

  • Prev by Date: Re: Month as Integer (or he's ranting again)
  • Next by Date: Re: Script not waiting for completion of Eudora task
  • Previous by thread: Re: Parent path. Senility?
  • Next by thread: Re: Does it presume too much [was Parent path]
  • Index(es):
    • Date
    • Thread