Applescript question

Dave Balderstone dave.balderstone at producer.com
Wed Mar 5 11:48:35 CST 2008


On 5-Mar-08, at 11:08 AM, LHoffart at afmidwest.com wrote:

> Is there a way to use a "wild card" in applescript
> or select every file in a folder
>
> I'm trying to print a batch of .jpg files on tabloid paper,
> I tried it in automator and it wants to print on letter



This will prompt you to select a folder:

set TheFiles to list folder (choose folder with prompt "select a  
folder") without invisibles

If you know the path:

set TheFiles to list folder (path to desktop & "the_folder") without  
invisibles

As a droplet:

on open the_Folder
set TheFiles to list folder the_Folder without invisibles
end open


More information about the Creator mailing list