Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > auto isync

auto isync
Thread Tools
smcgheek
Fresh-Faced Recruit
Join Date: Oct 2003
Location: CA Central Coast
Status: Offline
Reply With Quote
Jan 12, 2004, 09:13 PM
 
anybody know a good way to automatically run isync?
just got a bluetooth phone and id like it to sync without my intervention. ive seen places that list there is an option for it to run hourly, but i can't find it in the preferences (v1.3), has that been removed?

or, anyone know a way to have it sync when you log out? log in?
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Jan 12, 2004, 11:01 PM
 
The hourly setting is in the .Mac settings. I don't know whether or not this would also work with phones, etc...
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jan 12, 2004, 11:29 PM
 
If you want to automatically sync when you log in, save this script as an application and add it to your login items:

Code:
tell application "iSync" if syncing is false then synchronize end tell
     
smcgheek  (op)
Fresh-Faced Recruit
Join Date: Oct 2003
Location: CA Central Coast
Status: Offline
Reply With Quote
Jan 13, 2004, 12:55 PM
 
Originally posted by Sal:
If you want to automatically sync when you log in, save this script as an application and add it to your login items:

Code:
tell application "iSync" if syncing is false then synchronize end tell
awesome . that simple script is all i needed.
note to self: learn applescript. if Sal can do it, so can you
     
built2crawl
Fresh-Faced Recruit
Join Date: Nov 2003
Status: Offline
Reply With Quote
Jan 20, 2004, 07:18 PM
 
Great tip.

Is there away to automatically quit isync after syncing?

TIA
     
Nebrie
Mac Elite
Join Date: Apr 2001
Location: In my tree making cookies
Status: Offline
Reply With Quote
Jan 20, 2004, 09:43 PM
 
Originally posted by built2crawl:
Great tip.

Is there away to automatically quit isync after syncing?

TIA
Enable the menu icon? All I see is a little animated sync icon up there in my menu when it auto syncs, no isync app.
     
Terri
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jan 20, 2004, 10:41 PM
 
I set up a crontab for mine.

here is what it looks like
0 4 * * * osascript -e 'tell application "isync" to synchronize'
0 5 * * * osascript -e 'tell application "isync" to quit'
     
fisherKing
Professional Poster
Join Date: Jan 2001
Location: brooklyn ny
Status: Offline
Reply With Quote
Jan 21, 2004, 11:13 AM
 
Originally posted by Terri:
I set up a crontab for mine.

here is what it looks like
0 4 * * * osascript -e 'tell application "isync" to synchronize'
0 5 * * * osascript -e 'tell application "isync" to quit'


uh, could u translate that? what exactly do u do to make such an action take place??
(ie where do i place this script, etc..)
"At first, there was Nothing. Then Nothing inverted itself and became Something.
And that is what you all are: inverted Nothings...with potential" (Sun Ra)
     
Terri
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jan 21, 2004, 03:04 PM
 
Originally posted by fisherKing:
uh, could u translate that? what exactly do u do to make such an action take place??
(ie where do i place this script, etc..)
"0 4 * * * osascript -e 'tell application "isync" to synchronize'"

The numbers at the beginning tell cron what time to do its thing.

osascript allows us to the application's AppleScript libray.

The rest just tells it what I want the application to do.


Open up your terminal and type "crontab -e" without the quotes. This will get you into your user's crontab using Vi as the editor.

Using Vi
http://staff.washington.edu/rells/R110/

Crontab how to
http://www.php-scripts.com/php_diary/123002.php3

For more help in terminal type "man vi" and "man crontab" without the quotes.
     
Macanoid
Senior User
Join Date: Feb 2001
Location: macsterdam
Status: Offline
Reply With Quote
Jan 21, 2004, 05:42 PM
 
just get Salling Clicker and Proximity Sync!! It's all you want and it'll impress your Windows friends too
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jan 21, 2004, 07:01 PM
 
If you want a script that syncs and then waits for the sync to be done and quit iSync, add an Idle Handler to the script and save it as an application with the Stay Open option checked, as in this example that checks every minute to see if the sync has completed.

Code:
tell application "iSync" if syncing is false then synchronize end tell on idle tell application "iSync" set sync_status to syncing end tell if sync_status is false then ignoring application responses tell application "iSync" quit end tell end ignoring quit end if return 60 end idle
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 09:00 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,