Search and open a folder and file

here is the path on Macintosh:
Macintosh HD/Users/shawn/Desktop/ATP/ATP14 bon bon/ATP14 bon bon.jpg

  1. I need to find the folder with ATP14 in the name, then open the folder
  2. I need to find the file whose name starts with ATP14 in the folder in 1 above

I had been using this in Applescript but its not working now. Would grep command work?

thanks for any help

set text_returned to "ATP14"
set the_producer_initials to "ATP"

do shell script ls -d '/volumes/Macintosh HD/Users/shawn/Desktop/ATP/'*' ' & the_producer_initials's quoted form & "/" & text_returned's quoted form & "' '*"

ls '/volumes/Macintosh HD/Users/shawn/Desktop'/ATP/ATP14*/ATP14*

Since the expansion is done by the shell, not by ls, you could also use echo, or any other command like printf which outputs its parameters.

If the folder and/or files do not exist, it will return that literal string.