Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
01-11-2006, 09:11 PM
|
#1
|
|
Newbie
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
|
Resuming iTunes playback?
Well, I officially have the Macindash up and running, using iTunes for my media, VPC and iGuidance for GPS, and soon, an iSight and QT Pro for video aquisition. It's running great, with the exception of the occasional Windows hiccup (surprise surprise, somebody please make iGuidance Mac native!), and one other nagging issue. I've heard a lot of you say your iTunes resumes playback automatically when you start the car and wake the Mini. For whatever reason, mine does not. Is there a setting I need to change somewhere, or workflow I need to build or something? I searched for an answer to this and found no useful results. Thanks for any help you can give, I appreciate it.
~JD
__________________
MY04 Subaru WRX, San Remo Red,
Mac Mini carputer (Macindash) nearly complete. Current capabilities: Media playback, touchscreen interface, dual OS via VPC, iGuidance navigation. Future plans: Video capture, OBD-II interface, more racing stuff.
|
|
|
01-12-2006, 05:11 AM
|
#2
|
|
Newbie
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
|
I've an AppleScript application, which tells iTunes to resume playing, set up and running if the Mac mini wakes up. This application does many other things more like reactivating GPS in Route66, etc...
A simple AppleScript would contains follow command:
Code:
tell application "iTunes" to play
And with SleepWatcher you can run applications on wakeup and sleep. :-)
ByE...
|
|
|
01-12-2006, 06:12 AM
|
#3
|
|
Newbie
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
|
Thanks! I had a feeling something like that would work. Looks like I now need to pick up a book on AppleScript syntax. 5 programming languages under my belt and it's not one of them, how useful am I? Haha.
__________________
MY04 Subaru WRX, San Remo Red,
Mac Mini carputer (Macindash) nearly complete. Current capabilities: Media playback, touchscreen interface, dual OS via VPC, iGuidance navigation. Future plans: Video capture, OBD-II interface, more racing stuff.
|
|
|
01-12-2006, 06:32 AM
|
#4
|
|
Newbie
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
|
Quote: Originally Posted by SanRemoRex
Thanks! I had a feeling something like that would work. Looks like I now need to pick up a book on AppleScript syntax. 5 programming languages under my belt and it's not one of them, how useful am I? Haha.
For the first steps, no book is needed.  Open ScriptEditor... enter the line... save as Programm... Done!
ByE...
|
|
|
01-12-2006, 06:11 PM
|
#5
|
|
Newbie
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
|
Right, I'm just not sure about the syntax for conditionals, and however it detects a wakeup. Would it be something like this?
if computer wakes from sleep
tell application "iTunes" to play
end tell
end if
__________________
MY04 Subaru WRX, San Remo Red,
Mac Mini carputer (Macindash) nearly complete. Current capabilities: Media playback, touchscreen interface, dual OS via VPC, iGuidance navigation. Future plans: Video capture, OBD-II interface, more racing stuff.
|
|
|
01-12-2006, 07:54 PM
|
#6
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
|
No. It's more difficult than that because Applescript can't detect when you've gone to sleep or not. Thus, the need for the sleep watcher app.
There is a way, however, for you to do using only AS. You simply write an applescript that does an infinite loop and leave it running. Here's the code:
repeat
tell application "iTunes"
if player state is paused or player state is stopped then
play
end if
end tell
end repeat
Simply open the Script Editor (It's in your Applescript folder in the Applications folder). Paste this into the editor window and hit run.
Save it and put it on your desktop. Launching it will automatically launch iTunes and start it playing. You can set it as a startup item if you want.
-->Edit: Nevermind. Here it is attached. Try it out. Try pausing iTunes while it's running. I just tested it on my desktop Mac and it worked fine.
|
|
|
01-12-2006, 08:12 PM
|
#7
|
|
Newbie
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
|
Ok, I see. I do like having the ability to pause for calls and such though. I will try combining it with that SleepWatcher app and see how it works. Won't get to try it until this weekend though, I need to get back on campus so I can have wifi access, haha.
__________________
MY04 Subaru WRX, San Remo Red,
Mac Mini carputer (Macindash) nearly complete. Current capabilities: Media playback, touchscreen interface, dual OS via VPC, iGuidance navigation. Future plans: Video capture, OBD-II interface, more racing stuff.
|
|
|
01-12-2006, 08:22 PM
|
#8
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
|
Right. You can fix that pause issue but it just requires a little more coding. You'll need to graduate to an Applescript application that let's you do that. It's not real hard, but anytime you're dealing with a new language, the initial learning curve is pretty steep.
|
|
|
01-13-2006, 02:44 AM
|
#9
|
|
Newbie
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
|
Make it simple.
- Install SleepWatcher
- Save a little AppleScript with ScriptEditor as program "play_itunes". The Script should contain following content:
Code:
tell application "iTunes" to play
- Create a .wakeup File in your home directory containing following commands:
Code:
#!/bin/sh
# runs after wakeup from sleep
open "/path/to/play_itunes.app"
This will execute the AppleScript-Application after every wake up and you have don't worry about pausing iTunes. 
ByE...
Last edited by atl; 01-13-2006 at 10:07 AM.
|
|
|
01-13-2006, 10:40 AM
|
#10
|
|
CarFrontEnd Creator
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
|
Quote: Originally Posted by SanRemoRex
I've heard a lot of you say your iTunes resumes playback automatically when you start the car and wake the Mini. For whatever reason, mine does not.
Does the Mini not do this well for some reason? My old TiBook, my new AlBook, and my Dual 800 all continue playing iTunes when they wake up. Does it maybe have something to do with the car environment (i.e. any other weird sleep related issues)? Just curious as this (how well OSX sleeps compared to Windows) is usually the hook when i'm talking to a Mac hater that makes then stop short
-dave
|
|
|
01-13-2006, 12:42 PM
|
#11
|
|
Newbie
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
|
Quote: Originally Posted by iamgnat
Does the Mini not do this well for some reason? My old TiBook, my new AlBook, and my Dual 800 all continue playing iTunes when they wake up. Does it maybe have something to do with the car environment (i.e. any other weird sleep related issues)? Just curious as this (how well OSX sleeps compared to Windows) is usually the hook when i'm talking to a Mac hater that makes then stop short 
Hmm, I'm sure, all my Macs (TiBook 500, Dual800 and the mini in the car) doesn't resume playing in iTunes after wakeup.  But it's not a problem, because only in the car I want to play music automatically in iTunes (after boot or wakeup).
ByE...
|
|
|
01-14-2006, 11:30 AM
|
#12
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
|
Yeah, my iTunes simply pauses when you sleep it. Doesn't matter if it's desktop or car.
|
|
|
01-15-2006, 12:07 AM
|
#13
|
|
Newbie
Join Date: Jan 2006
Posts: 54
|
question... what would you guys recommend if i wanted it to automatically bring me back into frontrow and to the "now playing" screen?
essentially trigger it to open frontrow (apple-esc), then hit return twice
|
|
|
01-15-2006, 11:55 AM
|
#14
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
|
Is front row Applescriptable? If so, you can write a script to do that.
To find out, open Script editor (it should be in your Applications folder) and got to File --> Open Dictionary. Try to select front row. If it is apple scriptable, you'll be able to see all of the commands you can give it using AS.
|
|
|
01-15-2006, 12:23 PM
|
#15
|
|
Newbie
Join Date: Jan 2006
Posts: 54
|
Code:
tell application "System Events"
tell application "Front Row" to activate
key code 53 using {command down}
delay 0.0
key code 53
delay 3.0
key code 36
delay 3.0
key code 36
end tell
works... now to make sleepwatcher work
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:53 AM.
|
|