Re: Index a given folder
Re: Index a given folder
- Subject: Re: Index a given folder
- From: Thomas Fischer <email@hidden>
- Date: Mon, 5 Apr 2010 10:40:17 +0200
Hi Jason,
a pure AppleScript solution is somewhat complicated because of iteration into subfolders, if you want their results listed as well.
I prefer to use "list files" command of the satimage sax to get a list of files in AppleScript.
But for your scenario I would recommend to download the free TextWrangler application, which has a command "Edit > Insert > Folder listing" which probably does what you want. If not, you can script TextWrangler using AppleScript.
All the best
Thomas Fischer
Am 04.04.2010 um 03:38 schrieb Jason Donnelly:
> Hi there,
>
> I'm fairly new to AppleScript, hope this isn't going to be overly 'newbie' for the experienced users -- seems like it should be fairly easy -- but I'm stuck.
>
> How can I create a text file index of a given folder?
>
> As in, I'm trying to create a script which can:
>
> 1. be pointed to a chosen folder,
>
> 2. will get the names of every file in that folder,
>
> 3. generate a text file which lists all the files in that folder (order doesn't really matter, but alphabetical would be nice), and
>
> 4. save the text file to Desktop.
>
> That's all I want it to do.
>
> Again, sorry if this is painfully newbie.
>
> Thanks,
>
> J. Donnelly.
> _______________________________________________
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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