May 30, 200619 yr 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 May 30, 200619 yr by Guest
May 30, 200619 yr 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.
May 30, 200619 yr Author 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 May 30, 200619 yr by Guest
Create an account or sign in to comment