• 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: Extract from result of current date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract from result of current date


  • Subject: Re: Extract from result of current date
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 4 Nov 2005 12:55:57 -0500

On 11/4/05, Michelle Steiner <email@hidden> wrote:
On Nov 4, 2005, at 9:44 AM, Rob Stott wrote:

> ..or if you felt like it, you could do it like this;.
>
> set theTimeString to do shell script "date \"+%H.%M.%S\""

But why, when "time string of (current date)" is so much more
readable and understandable?

Any number of reasons, starting with "I've written shell scripts before and that's what comes naturally."  But also, date +"format" gives you precise control over what you get back, whereas "time string of" is subject to the whims of the International system preferences panel.  So there are times when the less obvious solution is nevertheless the more appropriate one for the task at hand.

I'm truly puzzled why people would use "do shell script" when vanilla
Applescript can handle the job.

Hey, "do shell script" *is* vanilla AppleScript.  No OSAX required. :)
 

"We have succeeded for 205 years in keeping the affairs of state
separate from the uncompromising idealism of religious groups and we
mustn't stop now. To retreat from that separation would violate the
principles of conservatism and the values upon which the framers built
this democratic republic." --Barry Goldwater,

Man, that Goldwater, such a left-wing looney. ;-)  May I assume from the  205-year figure that the statement was made in 1981?

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Extract from result of current date
      • From: "Gary (Lists)" <email@hidden>
    • Re: Extract from result of current date
      • From: "Gary (Lists)" <email@hidden>
    • Re: Extract from result of current date
      • From: Paul Berkowitz <email@hidden>
    • Re: Extract from result of current date
      • From: Michelle Steiner <email@hidden>
References: 
 >Extract from result of current date (From: Peter Mathiessen <email@hidden>)
 >Re: Extract from result of current date (From: Rob Stott <email@hidden>)
 >Re: Extract from result of current date (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How to work with XML data using System Events?
  • Next by Date: Re: Extract from result of current date
  • Previous by thread: Re: Extract from result of current date
  • Next by thread: Re: Extract from result of current date
  • Index(es):
    • Date
    • Thread