iCal to iPod manually

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
頭像
oeyvind
嗜冰客
文章: 1990
註冊時間: 10/03/2001 1:01 am
來自: 大馬/星洲
聯繫:

iCal to iPod manually

#1 文章 oeyvind »

iCal to iPod manually, hope this help until iSync comes along.

Will try to write a small app to automate this once I figured out how to check if iPod is mounted, anyone with any idea?

[ 09-12-2002: 留言編輯者: oeyvind ]
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

iCal to iPod manually

#2 文章 »

oeyvind,

>> how to check if iPod is mounted

Unix way, write a daemon to monitor /Volumes.

Applescript way, attach a folder action script to /Volumes; or use an idle handler.

However, using folder action script, System Events crashes when the firewire disk is disconnected (well, I don't have an iPod).

Anyway, below is the relevant applescript to your shell script in your homepage, have fun [img]images/smiles/icon_smile.gif[/img]


-- script starts
-- change the following line to match the name of your iPod
set iPodName to "iPod"
set sourceFolder to (((path to current user folder) as string) & "Library:calendars:")
tell application "Finder" to duplicate alias sourceFolder to disk iPodName with replacing
-- script ends
頭像
oeyvind
嗜冰客
文章: 1990
註冊時間: 10/03/2001 1:01 am
來自: 大馬/星洲
聯繫:

iCal to iPod manually

#3 文章 oeyvind »

stupid me, forgotten that Script Menu.menu does UNIX shell scripts as well... ^^

Updated now with a way to automate the iCal to iPod syncing.

See here for more info.
回覆文章