• 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: Apple Script List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Script List


  • Subject: Re: Apple Script List
  • From: Emmanuel <email@hidden>
  • Date: Thu, 22 Apr 2004 14:58:31 +0200

At 4:27 AM -0600 22/04/04, Dustin Bell wrote:
>Ok, I need some help with a list that I have. I work for a newspaper and we archive our pages Daily.
>I have Applescript copying the pdfs from one folder on a hard drive to another folder on a server. Right now applescript creates 6 folders inside the folder on the server, two out of the Seven

Do you mean "Six"?

> days we only have a two-section paper. So I need to find out how to Word the repeat command that's below to just use the First two Sections for those two days. Also I had heard that you can make a list of a folder (ie. Set the_List to {"Item 1", Item 2, "Item 3"} of folder "Untitled Folder"
>How exactly would you go about Writing this?
>
>set the_folders to {"ASection", "BSection", "CSection", "DSection", "ESection", "Windsor"} as list
>
>repeat with i from 1 to number of items in the_folders
> make new folder at folder theDay of folder theInput of folder "PDF Archives" with properties {name:item i of the_folders}

You don't say what those 2-sections days are.

If those are, say, Saturday and Sunday, you could write:

------------------
set n_repeat to (count the_folders)
if weekday of (current date) is in {Saturday, Sunday} then set n_repeat to 2
repeat with i from 1 to n_repeat
etc.
------------------

Emmanuel
_______________________________________________
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: 
 >Apple Script List (From: "Dustin Bell" <email@hidden>)

  • Prev by Date: Re: Multi-line do shell script. How?
  • Next by Date: [ANN] April Boston AppleScript Users Group Meeting
  • Previous by thread: Apple Script List
  • Next by thread: [ANN] April Boston AppleScript Users Group Meeting
  • Index(es):
    • Date
    • Thread