pthname = @//"Foldername"
put baFolderExists(pthname)

Been there, done that. "Misplaced operator."

I usually stick with full pathnames, since it's not always clear when the @// operator is appropriate and because full paths work in all cases. That way I can save my other brain cell for more important tasks. :)


You've probably got a solution by now, but here's what I'm been using lately:

on cdup(me, howmany, thisPath)

  if (ilk(thisPath)=#string) then set pathStr = thisPath
  else set pathStr = the moviePath

  set tD = the itemDelimiter
  set pathDelimiter = the last char of pathStr
  set the itemDelimiter = pathDelimiter
  set itemCount = the number of items in pathStr

set newPath = (item 1 to itemCount - howmany - 1 of pathStr) & pathDelimiter

set the itemDelimiter = tD

  return newPath
end

--
Cole

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to