The MP3car.com Store  

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.

Go Back   MP3Car.com > Mp3Car Technical > MacCar

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-11-2006, 09:11 PM   #1
Newbie
 
SanRemoRex's Avatar
 
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
My Photos: (0)
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.
SanRemoRex is offline   Reply With Quote
Sponsored Links
Old 01-12-2006, 05:11 AM   #2
atl
Newbie
atl's CarPC Specs
 
atl's Avatar
 
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
My Photos: (1)
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...
atl is offline   Reply With Quote
Old 01-12-2006, 06:12 AM   #3
Newbie
 
SanRemoRex's Avatar
 
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
My Photos: (0)
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.
SanRemoRex is offline   Reply With Quote
Old 01-12-2006, 06:32 AM   #4
atl
Newbie
atl's CarPC Specs
 
atl's Avatar
 
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
My Photos: (1)
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...
atl is offline   Reply With Quote
Old 01-12-2006, 06:11 PM   #5
Newbie
 
SanRemoRex's Avatar
 
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
My Photos: (0)
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.
SanRemoRex is offline   Reply With Quote
Old 01-12-2006, 07:54 PM   #6
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
My Photos: (29)
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.
Attached Files
File Type: zip StartMeUp.zip (17.6 KB, 108 views)
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 01-12-2006, 08:12 PM   #7
Newbie
 
SanRemoRex's Avatar
 
Join Date: Oct 2005
Location: Louisville/Evansville/West Lafayette
Vehicle: 2004 Subaru Impreza WRX (Sedan)
Posts: 53
My Photos: (0)
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.
SanRemoRex is offline   Reply With Quote
Old 01-12-2006, 08:22 PM   #8
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
My Photos: (29)
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.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 01-13-2006, 02:44 AM   #9
atl
Newbie
atl's CarPC Specs
 
atl's Avatar
 
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
My Photos: (1)
Make it simple.
  1. Install SleepWatcher
  2. Save a little AppleScript with ScriptEditor as program "play_itunes". The Script should contain following content:
    Code:
    tell application "iTunes" to play

  3. 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.
atl is offline   Reply With Quote
Old 01-13-2006, 10:40 AM   #10
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
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
iamgnat is offline   Reply With Quote
Sponsored Links
Old 01-13-2006, 12:42 PM   #11
atl
Newbie
atl's CarPC Specs
 
atl's Avatar
 
Join Date: Nov 2005
Location: Germany
Vehicle: 1995/Audi/A6 & 2003/Audi/A4 Cabrio
Posts: 38
My Photos: (1)
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...
atl is offline   Reply With Quote
Old 01-14-2006, 11:30 AM   #12
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
My Photos: (29)
Yeah, my iTunes simply pauses when you sleep it. Doesn't matter if it's desktop or car.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 01-15-2006, 12:07 AM   #13
Newbie
 
Join Date: Jan 2006
Posts: 54
My Photos: (0)
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
hotch is offline   Reply With Quote
Old 01-15-2006, 11:55 AM   #14
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,563
My Photos: (29)
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.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 01-15-2006, 12:23 PM   #15
Newbie
 
Join Date: Jan 2006
Posts: 54
My Photos: (0)
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
hotch is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Itunes com api - can't control the browser kykeon Software & Software Development 10 04-11-2006 12:24 AM
itunes music store and u2 ipod and voucher... SAScooby Off Topic 1 10-15-2005 01:41 PM
resuming music playback on hibernate/resume? GreenBeast Mobile Impact 6 08-08-2005 11:14 AM
Media player that works with iTunes? serendipity Software & Software Development 6 01-18-2005 07:47 AM
How can you make Media Engine resume playback after resuming from standby? psyclobe ME Archive 1 12-30-2003 08:28 PM


All times are GMT -5. The time now is 08:53 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics