• 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: coercing text to time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coercing text to time


  • Subject: Re: coercing text to time
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 19 Oct 2005 14:51:12 -0700

On Oct 19, 2005, at 2:39 PM, Mark J. Reed wrote:

On 10/19/05, Emmanuel <email@hidden> wrote:
Now, add that to any date where the time is 12:00AM, one of the
shortest is date ("" & 1):

Ok, dumb question, but why go through the circumlocution ("" & 1)? ("" & 1) just yields "1", which works just as well as a literal (date "1"). There must be some history there...

Because, as was just brought up in another thread, if you write 'date "1"', it will get transmogrified into 'date "Saturday, October 1, 2005 12:00:00 AM"' or some such. Saying 'date ("" & 1)' defeats that.


Incidentally, there's another way (maybe) to deal with the OP problem: if you can get Excel to give you the *formatted* value of the cell, which should be "11:45 AM", then you could just say 'time string of date x'.


--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
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: coercing text to time
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: coercing text to time (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Days and hours
  • Next by Date: Re: Dialog simple question
  • Previous by thread: Re: coercing text to time
  • Next by thread: Re: coercing text to time
  • Index(es):
    • Date
    • Thread