Forums > MaxMSP

Applescript popumenu of a folder 'content


Ad.
August 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.



Ad.
August 17, 2010 | 8:38 am

Up,
Thx.


August 17, 2010 | 9:29 am

I don’t know, but you’ve spelt which incorrectly, which might matter.



Ad.
August 17, 2010 | 12:08 pm

Thx you maître Capello, but it’s not about my poor english here ! :)



Ad.
September 1, 2010 | 4:46 pm

Anybody ?


September 1, 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:

– Pasted Max Patch, click to expand. –

HTH,
Phil



Ad.
September 2, 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.



Ad.
September 2, 2010 | 12:09 pm

It works on 10.6 but not with 10.5 for me.


September 2, 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



Ad.
September 2, 2010 | 7:33 pm

Thank you anyway !! It’s been a long time I was searching for a solution !
Merci,
Ad;


Viewing 10 posts - 1 through 10 (of 10 total)