Re: Open All files from an folder
Re: Open All files from an folder
- Subject: Re: Open All files from an folder
- From: Jürgen Keser <email@hidden>
- Date: 13 Feb 2006 11:32:58 +0100
Hi,
yes that code will open all files from the chosen folder. But in the chosen folder
are also some other folders that contains some files that must be opened. With the
script below this files in the other folders will not be opened. Is there a way to do
that?
Regards,
Jürgen
On Montag, 13. Februar 2006 9:27 Uhr, Michelle Steiner <email@hidden> wrote:
>On Feb 13, 2006, at 1:20 AM, Jürgen Keser wrote:
>
>> has someone a script with that I can choose an folder. In this
>> folder are many
>> files and other folders. The script should open one file, do
>> something with that
>> and then close the file. After that it should open the next file
>> (also the files in the sub folders).
>
>Here you go:
>
>splitFoldersFromFiles(choose folder)
>
>on splitFoldersFromFiles(inputFolder)
> tell application "Finder"
> my processFiles(get files of inputFolder)
> set FolderList to folders of inputFolder
> repeat with thisFolder in FolderList
> my splitFoldersFromFiles(thisFolder)
> end repeat
> end tell
>end splitFoldersFromFiles
>
>on processFiles(FileList)
> repeat with thisFile in FileList
> -- File processing goes here.
> end repeat
>end processFiles
>
>-- Michelle
>
>--
>Homosexuals do not recruit; Christians recruit, and so does the
>military.
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Applescript-users mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden