The Artima Developer Community
Sponsored Link

Agile Buzz Forum
The iTunes Alarm App

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
The iTunes Alarm App Posted: Sep 3, 2008 9:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: The iTunes Alarm App
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

As it happens, the silly little iTunes alarm thing is an application my wife wanted - she was interested in having iTunes play music in the morning. I'm sure there are other solutions to that problem around, but it was simple enough to do. First, I created this UI:

That serves as a way to specify settings for an AppleScript that gets generated and executed at the appropriate time. Here's what that looks like:


#!/usr/bin/osascript
tell application "System Events" to set volume without output muted
set volume 2
tell application "iTunes"
activate
play playlist "casts"
end tell


I had to do some googling to figure out how to unmute and set the volume, but that's it - works nicely. If you're curious, the Smalltalk code that does this is in the public Store - ITunesAlarmClock.

Technorati Tags: ,

Read: The iTunes Alarm App

Topic: Seaside in Canada Previous Topic   Next Topic Topic: ReSharper 4.1 is released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use