• 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: Avoiding repetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoiding repetition


  • Subject: Re: Avoiding repetition
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 15 Jul 2004 23:35:28 +0200

Bernard Azancot wrote:

[...]



Is there a way to avoid repeating 7 times the same boring code lines with 2 bound variables (day and folder) ?


A rather convoluted (and restricted, and rather inefficient) way to do it:

set myday to (Tuesday as string)
action to folder (run script myday & " of {Monday:\"A\", Tuesday:\"B\", ..., Sunday:\"G\"}")

Hmmm...

Axel
_______________________________________________
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: 
 >Avoiding repetition (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: Record Access OSA by Ed email@hidden
  • Next by Date: Re: Avoiding repetition
  • Previous by thread: Re: Avoiding repetition
  • Next by thread: Re: Avoiding repetition
  • Index(es):
    • Date
    • Thread