• 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: applescript-users digest, Vol 3 #981 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 3 #981 - 16 msgs


  • Subject: Re: applescript-users digest, Vol 3 #981 - 16 msgs
  • From: "Marc S.A. Glasgow" <email@hidden>
  • Date: Fri, 18 Oct 2002 12:25:42 -0400

Joey,

(A) It can be done.
(B) Moving through the file heirarchy is going to be the biggest hurdle
for a just-starting AS programmer like you. There are three ways of
doing this that come to mind:
1. The traditional method for advanced programmers in most languages:
recursion of handler (i.e. - subroutine called from itself);
2. Jon's Commands OSAXen, which has a command called "Walk the Folders"
to make it easier;
3. Creating Lists of Lists of files within folders (applescript doesn't
support multi-dimensional arrays in the traditional sense, but supports
lists, a form of array, and lists of lists, an array of arrays, and
lists of lists of lists... you get the idea).

There's a Quick Primer available if you're familiar with other
programming languages (C/C++, Basic, Pascal, etc):
http://www.cyberpoet.net/as/applescript.html

Also take a look at the File Renaming Scripts at:
http://www.cyberpoet.net/as/as_downloads.html
(which show examples of recursion, handlers, how to point at the
starting folder, etc).

Best Wishes,
=-= Marc Glasgow
Today's Special: Apple Stock dual-channel PCI Ultra SCSI card, $59.95,
OS 8.1 - OS X 10.2.1 Compatible.
*----------------------------------------------------------------*
| If Reality impedes your Performance, try reallocating |
| your Reality_Buffer at a higher value... |
| (c) 1983, Marc S.A. Glasgow aka The CyberPoet(tm) |
*----------------------------------------------------------------*

On Friday, October 18, 2002, at 11:51 AM,
email@hidden wrote:

> Message: 13
> Date: Fri, 18 Oct 2002 10:57:06 -0400
> Subject: Applescript Virgin Question
> From: email@hidden (Joey Parshley)
> To: email@hidden
>
> Hi
>
> 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
>
> Thanks in advance
> <><><><><><><><><><><><>
> Joseph Kneeland Parshley III
> MIS Manager
>
> 781-599-5175 ext17
> fax 781-599-4129
>
> Infinite Media Inc.
> 583 Chestnut St
> Suite 13
> Lynn MA, 01904
_______________________________________________
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.

  • Prev by Date: Re: AppleScript Studio and package contents
  • Next by Date: Re: Library Question
  • Previous by thread: Re: applescript-users digest, Vol 3 #981 - 16 msgs
  • Next by thread: Re: screen size in OS X
  • Index(es):
    • Date
    • Thread