loading images out of a folder

Hey all, I’m trying to make a image load after a user picks a folder.

the idea is, the user would pick a folder and the app would then load the first image in that folder. For right now i’m just trying to get the app to load item 2 in a folder. Folder just has images in it. Understand what i’m trying to do?

This is the code i have right now.

and the error i get


Is there a better way to do what i’m trying to do?

tim

Ok, my new error is whats below

Thanks Jacques, I totally forgot about alias and posix paths. been too long since i last tryed scripting. Thanks for adding in the file type. that I was one of the first things i had to add after i get it to load a image.

Tim