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


Click here to return to the 'an extention of this script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
an extention of this script
Authored by: jonesy on Sep 30, '04 04:31:49PM
Try wrapping it in a handler:

on update_pod()
	tell application "iTunes"
		try
			update "iPod"
		end try
	end tell
end update_pod

update_pod

tell application "Finder" to eject "iPod"

---
Grrrr!!!!!

[ Reply to This | # ]

an extention of this script
Authored by: kjell on Sep 30, '04 04:51:40PM
that's not working for me, it disconnects the ipod without updating it. but if i insert a 10 second delay in between the two parts of the script, it works alright. ten seconds is generally long enough for me, but you guys can replace it with whatever you want.
tell application "iTunes"
	try
		update "kjell_ipod"
	end try
end tell
delay 10
tell application "Finder" to eject "kjell_ipod"


[ Reply to This | # ]