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: cassj <email@hidden>
- Date: Sun, 26 Jan 2003 00:16:35 -0500
Scott-
This should do it...
set fileList to every file of folder (choose folder) -- OR
-- set fileList to every file of folder -- explicit path to folder
tell application "Acrobat Distiller"
open fileList
end tell
However, as you know, Distiller will only process one at a time, but
this will give it the whole list at once.
I hope this helps.
-Cassj
On Sunday, January 26, 2003, at 12:06 AM, Scott P. Richert 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.