• 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: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 19 Oct 2005 17:23:28 -0400

On 10/19/05, Christopher Nebel <email@hidden> wrote:
Passing a constant to "choose from list" or any other scripting
addition that expects text, such as "display dialog", will result in
the four-character code for that constant. 

Oh.   I would have expected "as string" or "as text" to be tried first.  OK, that explains a lot.

Thanks as always for the insight, Chris. 

I have one other question in this general topic area: given that (date "some date string") honors your current system preferences, what's the easiest way to initialize a date object in a way that *doesn't* honor them?  Say I want to pass around uncompiled code as text and have it work wherever my correspondents happen to be regardless of their prefs.  Is this the only way?

    set myDate to current date
    set year of myDate to 1968
    set month of myDate to May
    set day of myDate to 5
    set time of myDate to (20 * 60 + 47) * 60


--
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: Days and hours
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Days and hours (From: Bernard Azancot <email@hidden>)
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)
 >Re: Days and hours (From: Yvan KOENIG <email@hidden>)
 >Re: Days and hours (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Physical size of the trash
  • Next by Date: Re: coercing text to time
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread