Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Auto-sync to do lists (or any file) across machines' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-sync to do lists (or any file) across machines
Authored by: alblue on Nov 23, '05 01:53:48PM

I suspect that you mean 'passwordless ssh authentication' since the whole purpose of this is to enable a passwordless login, using a key.



[ Reply to This | # ]
Auto-sync to do lists (or any file) across machines
Authored by: tinker on Nov 26, '05 10:25:47AM
Oops! Yes, thanks. Was thinking "keyed" and "passwordless" and managed to jumble them.

After submitting this hint I noticed something odd. I turned the script into an application, and the application occasionally neglected to open the file, though the script always did. No idea why. But the fix is to open the file with the application rather than the Finder. It's a little uglier, as a blank document pops up and then disappears (unless you want to fix this in Prefs), but it works. To do this, replace the first part of the script,

do shell script "rsync -tru username@remote.host:'remote/path/to/file/kgtd.oo3/' local/path/to/file/kgtd.oo3/"
tell application "Finder"
open document file "kgtd.oo3" of folder "file" of folder "to" of folder "path" of folder "local" of startup disk
end tell
set targetapp to "OmniOutliner Professional"

tell application "System Events" ...

with

do shell script "rsync -tru username@remote.host:'remote/path/to/file/kgtd.oo3/' local/path/to/file/kgtd.oo3/"
set targetapp to "OmniOutliner Professional"
set the_file to "local:path:to:file:kgtd.oo3"

tell application targetapp
activate
close document 1
open the_file
end tell

tell application "System Events" ...

Once that's done, the application version works without a hitch.

[ Reply to This | # ]