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

Re: List content of a folder, output to document


  • Subject: Re: List content of a folder, output to document
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 6 Jan 2010 09:18:05 -0800

>
> However you get the start folder, if all you want to do with the list
> is write it to a text file, you might as well let the shell do that
> part, too.
>
>                    do shell script "find " & (quoted form of POSIX
> path of theFolder) & " ! -name '.*' -print >" & (quoted form of POSIX
> path of theTextFile)

This is returning the full path for each file.  The OP did not want the path to the folder itself included, so an extra step is needed to remove the path to the folder for each item.

>> This is what i hope to get in the file:
>>
>> /index.html
>> /subfolder1/image.jpg
>> /file2.txt
>> /subfolder2/subsubfolder1/meta.qsl
>>

Plus, the shell script also provides the contents of application bundles which is probably not wanted. Any way to avoid that?

ES _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Re: List content of a folder, output to document (From: "Stockly, Ed" <email@hidden>)
 >Re: List content of a folder, output to document (From: Shane Stanley <email@hidden>)
 >Re: List content of a folder, output to document (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: re: just say no ?
  • Next by Date: Re: List content of a folder, output to document
  • Previous by thread: Re: List content of a folder, output to document
  • Next by thread: Re: List content of a folder, output to document
  • Index(es):
    • Date
    • Thread