dougscripts.com

launchd

January 31 2012 - 1:27 pm

Sync A Wi-Fi iPhone Follow Up

Several Correspondents have wired in to report that the Sync a Wi-Fi iPhone Once a Day With launchd tip is great and all but how can more than one Wi-Fi device be sync'd? Currently the script only targets a single iPhone or iPad. If you want to sync all connected devices you'll need a different script. (more…)

January 26 2012 - 10:22 am

Sync a Wi-Fi iPhone Once a Day With launchd

A while back, I retired my iPhone 3GS to the bedside table after buying an iPhone 4. I use the 3GS pretty much as a glorified clock radio-iPod Touch. I have a few radio apps on it and the Digital Clock app. I also have it set to sync and back up over Wi-Fi to my main iMac so I manually initiate a sync when I need to update Podcasts and apps and what have you.

This manual syncing has become tiresome. (I mean, if I used a traditional clock radio, I wouldn't have to update its content manually, right?)

It's simple enough to write an AppleScript to sync a connected iPhone but I want the script to run on a regular basis without me having to fire it. I like to listen to Podcasts in the evening so sometime during dinner would be a good time to update the 3GS with any Podcasts that have arrived during the day. For this, I can create a launchd agent to fire the AppleScript that syncs the 3GS in the background. Here's how to get all that to swing: (more…)

December 12 2011 - 11:37 am

UPDATED: Update Expired Podcasts v2.2 (and launchd project)

iTunes will stop updating a Podcast subscription if you haven't played at least one of its episodes in five days. Update Expired Podcasts v2.2 will go through every Podcast subscription and update it so you don't have to manually update each one individually.

This latest version adds a routine that checks to see if iTunes is running before proceeding with updating the Podcasts. Now, you may be asking yourself: if I'm running the script from the iTunes Script menu then why would the script need to check if iTunes is already running? Because: I'm going to show you how to regularly launch the script automatically and invisibly in the background and you may not want iTunes to run when the script fires. If you're not familiar with launchd then read on.

(more…)

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.