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

Re: Newbie Date questions


  • Subject: Re: Newbie Date questions
  • From: Joe <email@hidden>
  • Date: Mon, 1 Mar 2010 12:09:46 -0800

At 7:17 PM +0100 3/1/10, ba95 wrote:
>Hello scripters !
>
>I would like to know:
>
>1- what would be the simplest way to reduce a modification date to "day/month/year" (skipping the time).
>
>friday november 25 10:12:56 -> friday november 25
>
>First solution:
>
>word 1 of modification date + word 2 of modification date + word 3 of modification date
>
>Second solution: TID
>
>Third solution ?...
>
>Best solution ?...
>
>2- How can I force the finder to update items modification dates ? They are most of the time out of date.
>Issue with backup scripts.
>
>Thanks a lot for your help.

Try this for the date.

set x to current date
set y to year of x
set d to day of x
set m to month of x as number
set sd to m & "/" & d & "/" & y as string

Finder has an update command. Have never used it.

HTH
Joe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Newbie Date questions
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Newbie Date questions
  • Next by Date: Re: Newbie Date questions
  • Previous by thread: Re: Newbie Date questions
  • Next by thread: Re: Newbie Date questions
  • Index(es):
    • Date
    • Thread