• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a list of alias from folder contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:44:20 -0500

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

Sorry. This probably won't work. Either stick with the Repeat through each item, or maybe somebody else can shed some light.

Good Luck,
Cassj


On Sunday, January 26, 2003, at 12:16 AM, cassj wrote:

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.
_______________________________________________
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.

References: 
 >Re: Creating a list of alias from folder contents (From: cassj <email@hidden>)

  • Prev by Date: Re: Stuffing characters
  • Next by Date: Re: [OT] AppleScript scripts versus Shell scripts
  • Previous by thread: Re: Creating a list of alias from folder contents
  • Next by thread: Re: Creating a list of alias from folder contents
  • Index(es):
    • Date
    • Thread