• 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 content of a folder, output to document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List content of a folder, output to document


  • Subject: List content of a folder, output to document
  • From: Inge Eidem <email@hidden>
  • Date: Tue, 5 Jan 2010 23:37:54 +0100

Hi

Can you help me?
I need to get a folder“s content/items to be listed in a file for archiving.

I want to choose a folder and get the context menu on the folder to run the script, after starting the script ill end up with a file containing filnames, subfolders and filenames as a list in a text document. Is this possible?

This is what i hope to get in the file:

/index.html
/subfolder1/image.jpg
/file2.txt
/subfolder2/subsubfolder1/meta.qsl

I tried to get spotlight metadata but it was just not what i wanted as output.

Something like this??
tell application "Finder"
try
set filesList to files of sourceFolder as alias list
on error
set filelist to files of sourceFolder as alias as list
end try
end tell


--
Best Regards,

Inge Eidem
Daglig leder
Zummit

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: List content of a folder, output to document
      • From: Luther Fuller <email@hidden>
    • Re: List content of a folder, output to document
      • From: Thomas Fischer <email@hidden>
    • Re: List content of a folder, output to document
      • From: Inge Eidem <email@hidden>
    • Re: List content of a folder, output to document
      • From: "Stockly, Ed" <email@hidden>
  • Prev by Date: Re: Newbie Question - Replacing spaces with underscores
  • Next by Date: Re: List content of a folder, output to document
  • Previous by thread: Re: Newbie Question - Replacing spaces with underscores
  • Next by thread: Re: List content of a folder, output to document
  • Index(es):
    • Date
    • Thread