Aussie John Posted May 30, 2006 Posted May 30, 2006 (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 May 30, 2006 by Guest
IdealData Posted May 30, 2006 Posted May 30, 2006 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.
Wim Decorte Posted May 30, 2006 Posted May 30, 2006 No need to import, just make the applescript set the values directly into a field.
Aussie John Posted May 30, 2006 Author Posted May 30, 2006 (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 May 30, 2006 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now