• 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: Nigel Garvey <email@hidden>
  • Date: Sat, 17 Jul 2004 13:33:07 +0100

David Andrews wrote on Fri, 16 Jul 2004 23:05:39 -0400:

>On Jul 16, 2004, at 7:17 AM, Nigel Smith wrote:
>
>> On 7/15/04 12:14 PM, "Bernard Azancot" <email@hidden> wrote:
>>
>>> till another basic newbie question:
>>>
>>> The following script has no problem. I just would like to know if it
>>> is
>>> possible to improve its "coding style" .
>>
>> It might make things more obvious (especially in the Finder!) if your
>> backups went to folders called "Monday", Tuesday", etc, rather than
>> "A","B",...

As Bernard is presumably French - or at least francophone - he may not
care to call his folders "Monday", Tuesday", etc. I've got it in my head
that weekdays coerce to English strings whatever the system language.

>> Then you could (pseudocode):
>>
>> action to folder ("path:to:parent:" & myDay)
>>
>> No loop required.
>> ...
>
>Oops, I forgot the current date...
>
>I like this idea, now if myDay is always current date, we have:
>
> action to folder ("path:to:parent:" & word 1 of ((current date) as
>string))

This is more likely to produce a weekday name in your own language,
provided that weekdays are enabled in your Date preferences.

NG
_______________________________________________
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: How to script Safari to download a file
  • Next by Date: Re: Quark 6 challenge OS9 to OS X Help this script if you can
  • Previous by thread: Re: Avoiding repetition
  • Next by thread: Re: Avoiding repetition
  • Index(es):
    • Date
    • Thread