Re: List content of a folder, output to document
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