Applescript popumenu of a folder 'content

    Aug 11 2010 | 10:20 pm
    Hi, I would like to make a menu with applescript wich displays the content of a folder and let an user to choose a file from the list… Here's the line wich feeds my shell object:
    osascript -e 'tell application "Finder"' -e 'set file_list to name of every file of entire contents of alias "Macbook Pro:XXX:"' -e 'set blah to (choose from list file_list with prompt "Wich file ?" Ok button name "Ok" cancel button name "Annuler")' -e 'end tell'
    Nothing occurs…Do you have any clue about this ? Thx.

    • Aug 17 2010 | 8:38 am
      Up, Thx.
    • Aug 17 2010 | 9:29 am
      I don't know, but you've spelt which incorrectly, which might matter.
    • Aug 17 2010 | 12:08 pm
      Thx you maître Capello, but it's not about my poor english here ! :)
    • Sep 01 2010 | 4:46 pm
      Anybody ?
    • Sep 01 2010 | 9:35 pm
      It wasn't about your English, it was about the spelling of your tokens ;-)
      Something from this one could help you:
      HTH, Phil
    • Sep 02 2010 | 8:53 am
      Thx for your response Phil but it still doesn't work. It could be a path issue from me…  I don't really understand the "Leopard" path… How can I reach the classical "/" from this "leopard" adress, I think that must be my mistake.
    • Sep 02 2010 | 12:09 pm
      It works on 10.6 but not with 10.5 for me.
    • Sep 02 2010 | 7:06 pm
      The folder path I put was just an example. Change it for your own path, and try first in Apple's "Script Editor". Also, search in the archives for AppleScript.
      Bye, Phil
    • Sep 02 2010 | 7:33 pm
      Thank you anyway !! It's been a long time I was searching for a solution ! Merci, Ad;