Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Date Picker Control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date Picker Control



I believe you have to set the date picker control to a date, not a time,
even when it only shows the time.

So you would do something like:

-- first parse "thehour" and "theminute" out of the_time, however you are
storing that, so each is a number.

set dummydate to current date
set hours of dummydate to thehour
set minutes of dummydate to theminute
-- I think this approach only works with Tiger, but then date picker is
Tiger only anyway.
set contents of control "time" of window "schedule"  to dummydate


On 5/17/06 3:06 PM, "Dj Macintosh" <email@hidden> wrote:

> I want to be able to enter a time from a variable into a control object.
>
> Meaning, one of those date pickers, I have made so it only shows the
> time.  But I want to be able to set the contents of that date picker
> to the time that I get from a preferences file.
>
> I tried this:
>
> set contents of time string of control "time" of window "schedule"
> to the_time
>
> and it doesn't seem to work.  Even when removing the of time string
> of  from the sentence.
>
> How can I input just a time into the date picker object.
>
> Sincerely,
> DJ MacIntosh
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-studio mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
m
>
> This email sent to email@hidden


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

This email sent to email@hidden

References: 
 >Date Picker Control (From: Dj Macintosh <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.