problem using "every file of ...." command

Discussion in 'Mac Programming' started by Aerandir, Jun 11, 2008.

  1. macrumors newbie

    Aerandir

    #1
    can anybody tell me what's wrong with this code?

    tell application "Finder"
    set theFolder to ((path to me as string) & "Contents:Resources:.Files:")
    set theFiles to (every item of folder theFolder) as list
    end tell
    choose from list theFile


    whenever I try to run it, a strange error box pops up.
    HELP!
     

Share This Page