• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
List of files in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: List of files in a folder
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Request help
  • Next by Date: Re: List of files in a folder
  • Previous by thread: Re: Making a new mail message
  • Next by thread: Re: List of files in a folder
  • Index(es):
    • Date
    • Thread