• 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: Set the time in 8.1 and 7.6 remotely?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set the time in 8.1 and 7.6 remotely?


  • Subject: Re: Set the time in 8.1 and 7.6 remotely?
  • From: Harald E Brandt <email@hidden>
  • Date: Fri, 2 Nov 2001 17:30:20 +0100

+--> Tod Hallberg wrote 01-10-30:
>I don't suppose you would care to share that code. I am just interrested in you approach as a way to remove an extension that my company uses that sync's the time on restart.
+-

Sure I'll share the code, but Mr Akua himself (Greg) informed me of a MUCH simpler way of doing it - I didn't know that calls to osax automatically got sent to the remote computer's osax if contained in a tell block to the remote Finder.

However, the Akua setting of the geographic location/time zone does not work at all for me - not even locally! So we would need help from someone to sort that out. On my computers, the following (using Akua Sweets osax) completely destroys the geographic location and time zone setting:

set geo to adjust the clock --geo will contain a record of location
adjust the clock at geoposition geo --destroys time zone settings

On first call, 'geo' contains:
{latitude:7.07874179E+8, longitude:215344742,
daylight savings:false, GMT delta:3600}

On second run, 'geo' contains:
{latitude:1.834484004E+9, longitude:-1.102053108E+9,
daylight savings:false, GMT delta:6031936}

And when I manually set the time zone back to "Stockholm" then, of course, the date and time flies all way. Does anybody know what's wrong?


Your interest is to set the time upon restart in the "opposite" direction to the way I have it, so leaving out the geographic/time zone setting, I guess the following should be your procedure: You would need to enable program linking in the remote computer and enter the access into a keychain in your computer, and you need Akua in your computer. Have the following script in your startup items:

try
tell application "Keychain Scripting"
unlock keychain "Link" with password "..."
quit
end tell
on error
tell application "AppleScript Output"
display "Couldn't open:
Keychain \"Link\""
end tell
return
end try
try
tell application "Finder" of machine "remoteComputer" to ,
set now to current date --standard additions in remote comp
adjust the clock to now --Akua Sweets in your computer
on error
tell application "AppleScript Output"
display "Couldn't set the time"
end tell
end try

______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware http://heb.bragit.com


  • Follow-Ups:
    • Akua Sweets geographic location/time zone corrupts the setting!?
      • From: Harald E Brandt <email@hidden>
    • Memory allocation of applets?
      • From: Harald E Brandt <email@hidden>
  • Prev by Date: Re: Setting insertion point in MS Word
  • Next by Date: Applescript and Novell printers
  • Previous by thread: Re: Setting insertion point in MS Word
  • Next by thread: Memory allocation of applets?
  • Index(es):
    • Date
    • Thread