Re: Creating a list of alias from folder contents
Re: Creating a list of alias from folder contents
- Subject: Re: Creating a list of alias from folder contents
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 25 Jan 2003 21:26:48 -0800
set folderPath to (choose folder) as string -- or 'as Unicode text'
tell application "Finder"
try
set fileList to every file of folder folderPath as alias list
on error -- only one file, bug with 'alias list'
set fileList to every file of folder folderPath as alias as list
end try
end tell
--
Paul Berkowitz
On 1/25/03 9:06 PM, "Scott P. Richert" <email@hidden> wrote:
>
Doesn't work, unfortunately. The first line is really what I had in
>
mind. To get it to compile, I have to drop "folder": set fileList to
>
every file of (choose folder). But then I get a "Can't get every file
>
of ... " error.
>
>
It seems like it ought to be a simple proposition, but I guess maybe I
>
should just stick with my original, iterating through each item and
>
sending each one separately to Distiller...
>
>
Scott P. Richert
>
Executive Editor
>
Chronicles: A Magazine of American Culture
>
>
On Saturday, January 25, 2003, at 08:54 PM, cassj wrote:
>
>
> Scott-
>
>
>
> Give this a try...
>
>
>
> set fileList to every file of folder (choose folder)
>
> repeat with listitem in fileList
>
> set itemToProcess to listitem
>
> display dialog "Process this file: " & itemToProcess
>
> end repeat
>
>
>
> I just threw in the "display dialog" just for demonstration purposes.
>
> This is where you would process the file in focus.
>
> There are many more people on this list that know a lot more than I
>
> do. So don't just go by what I say. :-)
>
>
>
> Regards,
>
> Cassj
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.