Launch Script Editor

Get the list of folders inside a folder

tell application "Finder"
    get name of folders of folder ("/Library/Desktop Pictures/" as POSIX file)
    
    -- Returns: {"Abstract", "Black & White", "Nature", "Plants", "Solid Colors"}
    
end tell


tell application "Finder"
    get name of folders of folder "Library:Desktop Pictures" of startup disk
    
    -- Returns: {"Abstract", "Black & White", "Nature", "Plants", "Solid Colors"}
    

4 comments:

Roberto Teixeira said...

Mr. Green Man, you rock!h

Anonymous said...

great code. one question - how do you store these in an array? or how do you use/call them individually?

Fx Morin said...

you forgot the second
end tell

Alyson ning said...


I don't apperceive what it is about the bendable blow and matte finish, but I accept a anemic atom for printed suede Louboutin Outlet. One of the best brands to cull this off is YSL Outlet. I accept to acquaint you about a backpack attraction of mine. I am in fact mad at myself that I did not splurge on the Ralph Lauren Polo Outlet Croc Muse Two which has two colors that I admire with a sueced croc pattern. To see a formed suede accomplishment off a Red Bottoms Outlet that I already adore, my affection melts. Replica Watches are additionally pretty reflective of their user's persona. Amazing furthermore multi-colored Rolex Replica Watches are commonly worn because of the younger. Conversely, exquisite dress Swiss Rolex Replica are regularly sported by highly developed gentlemen. And then usually there's the luxurious Swiss Replica Watches worn by the individuals who're properly to complete. Check out observing your mates furthermore you can before long see how the layouts are actually ranging.