Hi,
does this script say time in 24 hour format or 12 hour? I would like to have 
the time in 24 hour.
Thanks for any advice.
Max.

On 10/05/2013, at 7:11 AM, Alex Hall <mehg...@gmail.com> wrote:

> To use it, open Apple Script Editor, paste the script, and then compile it 
> (the option is in the menus, but I want to say it's cmd-k). You should be 
> prompted for a place to save your script; pick a spot, as long as you know 
> where it is, but your scripts folder (~/library/scripts, I think) is the 
> easiest since vo will default there.
> 
> Now open the vo utility and select commanders. Choose the keyboard commander 
> tab, then the speak date and time item, and pick the script you saved instead 
> of the one that is set by default. It has been a long while since I did any 
> of this, as you can tell, so some of my steps may be off. Still, you should 
> be able to get it, and if you have problems, let the list know and someone on 
> here can help, or I can do the process myself so i can give more exact 
> instructions.
> 
> As for seconds, yes, that's possible. The "current date" variable has 
> everything about the date and time, so maybe something like:
> set currentTime to (currentDate's hours) & ":" & (currentDate's minutes) & " 
> " & (currentDate's date string)
> 
> On May 8, 2013, at 5:28 PM, Traci <our4p...@gmail.com> wrote:
> 
>> Alex, thank you for this however, now this is how voiceover reads out the 
>> time.
>> 
>> 2hours: 22minutes: 32seconds PM, Wednesday, May 8, 2013
>> 
>> Could it be because I'm using Samantha compact as my default voice?
>> 
>> Lol, kooky there, I just answered my own question. I switched to Alex and he 
>> spoke it correctly.
>> 
>> Would it be an easy tweak to omit the seconds from the time?
>> 
>> Thanks,
>> Traci
>> On May 8, 2013, at 12:52 PM, Alex Hall <mehg...@gmail.com> wrote:
>> 
>>> Try this script, which also uses vo's settings instead of the system voice:
>>> 
>>> (* 
>>>  Speaks the  date and time of day
>>>  
>>>  Copyright 2008 Apple Inc. All rights reserved.
>>>  
>>>  You may incorporate this Apple sample code into your program(s) without
>>>  restriction.  This Apple sample code has been provided "AS IS" and the
>>>  responsibility for its operation is yours.  You are not permitted to
>>>  redistribute this Apple sample code as "Apple sample code" after having
>>>  made changes.  If you're going to redistribute the code, we require
>>>  that you make it clear that the code was descended from Apple sample
>>>  code, but that you've made changes.
>>> ALEX: No problem, Apple. I've made changes, specifically switching up the 
>>> order of the spoken information.
>>>  *)
>>> 
>>> on isVoiceOverRunning()
>>>     set isRunning to false
>>>     tell application "System Events"
>>>             set isRunning to (name of processes) contains "VoiceOver"
>>>     end tell
>>>     return isRunning
>>> end isVoiceOverRunning
>>> 
>>> on isVoiceOverRunningWithAppleScript()
>>>     if isVoiceOverRunning() then
>>>             set isRunningWithAppleScript to true
>>>             
>>>             -- is AppleScript enabled on VoiceOver --
>>>             tell application "VoiceOver"
>>>                     try
>>>                             set x to bounds of vo cursor
>>>                     on error
>>>                             set isRunningWithAppleScript to false
>>>                     end try
>>>             end tell
>>>             return isRunningWithAppleScript
>>>     end if
>>>     return false
>>> end isVoiceOverRunningWithAppleScript
>>> 
>>> set currentDate to current date
>>> set currentTime to (currentDate's time string) & ", " & (currentDate's date 
>>> string)
>>> 
>>> if isVoiceOverRunningWithAppleScript() then
>>>     tell application "VoiceOver"
>>>             output currentTime
>>>     end tell
>>> else
>>>     say currentTime
>>>     delay 2
>>> end if
>>> 
>>> There you go, see if that will work...
>>> On May 8, 2013, at 2:28 PM, Traci <our4p...@gmail.com> wrote:
>>> 
>>>> Hi all, is there a way to have voiceover reverse the order it announces 
>>>> the time?  Time before date?  The current way sounds odd.
>>>> 
>>>> May 8, 11:26 AM
>>>> 
>>>> It almost sounds like it is saying May 8th 2011 26 AM.
>>>> 
>>>> Any suggestions?
>>>> 
>>>> Traci
>>>> 
>>>> -- 
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "MacVisionaries" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>> email to macvisionaries+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> Have a great day,
>>> Alex (msg sent from Mac Mini)
>>> mehg...@gmail.com
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "MacVisionaries" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to macvisionaries+unsubscr...@googlegroups.com.
>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "MacVisionaries" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to macvisionaries+unsubscr...@googlegroups.com.
>> To post to this group, send email to macvisionaries@googlegroups.com.
>> Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 
> 
> Have a great day,
> Alex (msg sent from Mac Mini)
> mehg...@gmail.com
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to