Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6750 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I was wondering if it is possible to show the names of folders in a particular folder.

I can get the names of the folders but dont know how to extract them

do shell script "ls /Volumes/apple seed160/ work"

The ideal solution would for the list to become available as a valuelist. If that is too tricky a suitable option may be to just see the list or add it to a field.

Thanks

Edited by Guest
Posted

Why not try directing the output of the ls command to a simple file, then use FMP to IMPORT the file. AFAIK the ls command has many command line options and certainly you can produce a single column listing of names only.

ls -p > dirlist

Have a look at the "man ls" for more info on the ls options.

Posted (edited)

thanks guys - I ended up using this script to dump into a field

tell application "FileMaker Pro"

set foldername to cell "Jobs reference::FTP site" of current record

tell application "Finder"

set filepath to "FTP_sites:" & foldername

set folderlist to name of every folder of container filepath as list

end tell

set cell "FTPfolder_list" of current record to folderlist

end tell

The list separates into repeating fields. What I would like if the list goes into a single field separated by paragraph return.

Thanks again

Edited by Guest

This topic is 6750 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.