Page 1 of 1

File System

Posted: Sat Nov 07, 2009 6:01 pm
by Kevin
How do I check if a folder exists?

Posted: Sat Nov 07, 2009 6:15 pm
by ukimiku
Put a button on a new stack and this code into its handler

Code: Select all

on mouseUp
   answer folder "Please choose a folder:"
   put it into tFolder
   if there is a folder tFolder and tFolder <>"" then
      answer "exists"
   else
      answer "does not exist"
   end if
end mouseUp

Ah

Posted: Sat Nov 07, 2009 9:17 pm
by Kevin
Completely forgot about that construct thanks!