Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-18-2005, 05:01 AM   #1
JayBee
Major Leaguer
 
Join Date: Jan 2002
Location: Edinburgh, Scotland
Posts: 437
Question running .mac sync from the command line?

Picture the scene:

* I'm at work
* I have my work machine set to sync on the hour
* my home machine (with a bunch of "to review" URLs in my Safari bookmarks) is on manual sync
* I forgot to sync it with .Mac this morning
* I'm now logged into my home machine via SSH

Does *anyone* know how to trigger the .Mac sync process remotely (note, this is _not_ the same as triggering iSync in these post-Panther days) so that I can get at my bookmarks?

Cheers in advance!

-J
__________________
JayBee
--

It's all relative, you know
JayBee is offline   Reply With Quote
Old 08-28-2008, 02:37 PM   #2
jaysoffian
Prospect
 
Join Date: Jan 2003
Posts: 4
I know this is an ancient query, but I just needed to do this and the following applescript works. I wrapped it in a shell script to make it easier to run remotely:

Code:
#!/bin/sh
cat <<EOF | osascript
tell application "System Preferences"
    activate
    set current pane to pane "MobileMe"
    tell application "System Events"
        tell process "System Preferences"
            click radio button "Sync" of tab group 1 of window "MobileMe"
            click button "Sync Now" of tab group 1 of window "MobileMe"
        end tell
    end tell
    quit
end tell
EOF
jaysoffian is offline   Reply With Quote
Old 09-06-2008, 01:02 PM   #3
mark hunte
MVP
 
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
Thumbs up

I've posted a Hint on the macosXhints main site for a way to do this via the CLI.
__________________
MH.
mark hunte is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.