List of files in a folder
List of files in a folder
- Subject: List of files in a folder
- From: Oz Springs <email@hidden>
- Date: Fri, 18 Jun 2004 12:12:41 +0100
I have a script which can list the names of all the files in a given folder:
tell application "Finder"
set theFileList to (name of every file in
folder "Microsoft Office uninstall ")
end tell
with the following result:
{"com.microsoft.Entourage.plist",
"com.microsoft.Entourage.prefs.plist",
"com.microsoft.Excel.plist",
"com.microsoft.Excel.prefs.plist",
"com.microsoft.Office.prefs.plist",
"com.microsoft.OfficeNotifications.plist",
"com.microsoft.PowerPoint.plist",
"com.microsoft.Word.plist",
"com.microsoft.Word.prefs.plist", "Custom
Dictionary", "Entourage Preferences", "Excel
Toolbars (11)", "Microsoft Excel", "Microsoft
Office ACL [English]", "Microsoft PowerPoint",
"Microsoft Word", "Office Font Cache (11)",
"Office Registration Cache 11", "OfficeSync
Prefs", "OLE Registration Database 11", "Proofing
Tool Preferences", "VBA Preferences", "Word Font
Substitutes"}
How can I get the result to have each file name
separated into paragraphs - ie replacing [",]
with [6] (without the square braces) - and
removing the remaining quote and the {}, then
copying the list to the clipboard?
Many thanks
Oz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.