RE: Applescript Virgin Question
RE: Applescript Virgin Question
- Subject: RE: Applescript Virgin Question
- From: Ed Walter <email@hidden>
- Date: Mon, 21 Oct 2002 10:48:30 -0500
Sorry for the error! Repeat should be like this...
repeat with currentFolder in folderList
set currentFolder to folder currentFolder of baseFolder
set pdfList to pdfList & every file of folder "PDF" of
currentFolder whose file type = "PDF "
end repeat
-ed-
-----Original Message-----
From: Ed Walter [
mailto:email@hidden]
Sent: Monday, October 21, 2002 10:14 AM
To: email@hidden
Subject: Re: Applescript Virgin Question
I haven't really tested this, but it should hold up. Try this as a basic
shell for what you want to do:
----------------------------------------------------------------------------
-------
set baseFolder to choose folder with prompt "Please select the folder to
process:"
Tell appplication "Finder"
set folderList to name of every folder of baseFolder
set pdfList to {}
repeat with currentFolder in folderList
set currentFolder to folder currentFolder
set pdfList to pdfList & every file of folder "PDF" of
currentFolder whose file type = "PDF "
end repeat
end tell
repeat with currentFile in pdfList
-- Do stuff to currentFile here
end repeat
----------------------------------------------------------------------------
-------
Hope it works out for you!
Ed Walter
P.S. Thanks to Michael Sullivan for pointing out an error on my part! Also,
as Michael pointed out, this is NOT recursive. It will not look in deeper
subfolders for other PDFs. But, it seemed from the original question that it
shouldn't.
-----Original Message-----
From: email@hidden [
mailto:email@hidden]
Sent: Friday, October 18, 2002 4:37 PM
To: email@hidden
Subject: Re: Applescript Virgin Question
email@hidden (Joey Parshley) writes:
>
I would like to try writing my first script. Is the following possible
>
and would anyone like to give me any pointers? I have never written an
>
applescript (have written lots of javascript).
>
Here's what I want the script to do.
>
>
Look look in a folder that can have any number of sub folders. Each sub
>
folder would be named as a job number i.e 20857. These job folders have
>
in them identical folders named Ideas, Email, PDF etc.
>
>
I want to look in the PDF folder of each job folder and print three
>
copies or any PDFs with the work "FINAL" in it.
>
>
A bonus to this script would be if I could place each PDF into a Quark
>
Template and Print that out.
>
>
I'm not asking for anyone to write the script. I would just like some
>
pointers and perhaps a basic example I could follow. I really know I
>
need to tap into this powerful tool
_______________________________________________
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.