I am able to open and read the file…I am not, however, able to save any of my modifications. Despite all my efforts I just can't give myself enough permissions - even though I am the administrator of this computer.
Thx, Jeff On 2011-12-12, at 4:58 PM, Hai Nguyen Ly wrote: > Hello Jeff, > here is the Apple script you are wanting to modify. Have fun and let us know > if you have any questions. > > > (* > 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. > *) > > on isVoiceOverRunningWithAppleScript() > set isRunning to true > > -- is AppleScript enabled on VoiceOver -- > tell application "VoiceOver" > try > set x to bounds of vo cursor > on error > set isRunning to false > end try > end tell > return isRunning > end isVoiceOverRunningWithAppleScript > > set currentDate to current date > set amPM to "AM" > set currentHour to (currentDate's hours) > set currentMinutes to currentDate's minutes > > if (currentHour ≥ 12 and currentHour < 24) then > set amPM to "PM" > else > set amPM to "AM" > end if > > -- make minutes below 10 sound nice > if currentMinutes < 10 then > set currentMinutes to ("0" & currentMinutes) as text > end if > > -- ensure 0:nn gets set to 12:nn AM > if currentHour is equal to 0 then > set currentHour to 12 > end if > > -- readjust for 12 hour time > if (currentHour > 12) then > set currentHour to (currentHour - 12) > end if > > set currentTime to ((currentDate's month) as text) & " " & ((currentDate's > day) as text) & ", " & (currentHour as text) & ":" & ((currentMinutes) as > text) & " " & amPM as text > > if isVoiceOverRunningWithAppleScript() then > tell application "VoiceOver" > output currentTime > end tell > else > say currentTime > end if > > > On Dec 12, 2011, at 4:52 PM, Jeff Berwick wrote: > >> Ever since I got my Mac, I have been annoyed by the way the Time of Day >> script works. I have wanted it to tell me the time first and the date after >> - or not at all. >> >> I have finally decided to look into this and found the "Time of >> Day.applescript" in the /library/scripts/voiceover folder. >> >> I have used command I to look at the file properties and given everybody >> read and write permissions. I have also gone into Terminal and chmod the >> file adding +w. >> >> However, whenever I try to modify the file I am told that I don't have >> permission. >> >> Can anybody offer any assistance? >> >> Thx, >> Jeff >> >> -- >> You received this message because you are subscribed to the Google Groups >> "MacVisionaries" group. >> To post to this group, send email to macvisionaries@googlegroups.com. >> To unsubscribe from this group, send email to >> macvisionaries+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/macvisionaries?hl=en. >> > > > -- > You received this message because you are subscribed to the Google Groups > "MacVisionaries" group. > To post to this group, send email to macvisionaries@googlegroups.com. > To unsubscribe from this group, send email to > macvisionaries+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/macvisionaries?hl=en. -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to macvisionaries@googlegroups.com. To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.