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.
> 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:
> 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