set jobNum to display dialog "Job Number:" default answer "204094 Matis Deli" buttons {"Cancel", "OK"} default button 2
set userReply to text returned of jobNum
set workPath to "Art Department: Work Files:"
open folder (workPath & userReply)
--open (first folder of disk "Art Department: Work Files:" whose name begins with userReply)
end tell
the first open statement above opens the Matis Deli folder… if I use the second open statement and I have entered 204094 in the prompt window, I don’t get a folder… i get an error saying "finder got an error: Can’t get folder 1 of disk “Art Department: Work Files:” whose name starts with “204094”
open (first folder of (disk "Art Department: Work Files:") whose name begins with userReply)
If that does not work, try getting rid of the colons. I threw this together to test it out, and it worked:
set userReply to text returned of (display dialog "Enter the first few characters of a folder:" default answer "")
tell application "Finder"
open (first folder of (disk "PilateII") whose name begins with userReply)
end tell