Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Resuming iTunes playback?

  1. #1
    Newbie SanRemoRex's Avatar
    Join Date
    Oct 2005
    Location
    Louisville/Evansville/West Lafayette
    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.

  2. #2
    atl
    atl is offline
    Newbie atl's Avatar
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    39
    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...

  3. #3
    Newbie SanRemoRex's Avatar
    Join Date
    Oct 2005
    Location
    Louisville/Evansville/West Lafayette
    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.

  4. #4
    atl
    atl is offline
    Newbie atl's Avatar
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    39
    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...

  5. #5
    Newbie SanRemoRex's Avatar
    Join Date
    Oct 2005
    Location
    Louisville/Evansville/West Lafayette
    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.

  6. #6
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    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 Attached Files
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  7. #7
    Newbie SanRemoRex's Avatar
    Join Date
    Oct 2005
    Location
    Louisville/Evansville/West Lafayette
    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.

  8. #8
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    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.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  9. #9
    atl
    atl is offline
    Newbie atl's Avatar
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    39
    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...

  10. #10
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    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

Page 1 of 3 123 LastLast

Similar Threads

  1. Itunes com api - can't control the browser
    By kykeon in forum Software & Software Development
    Replies: 10
    Last Post: 04-11-2006, 12:24 AM
  2. itunes music store and u2 ipod and voucher...
    By SAScooby in forum Off Topic
    Replies: 1
    Last Post: 10-15-2005, 01:41 PM
  3. resuming music playback on hibernate/resume?
    By GreenBeast in forum Mobile Impact
    Replies: 6
    Last Post: 08-08-2005, 11:14 AM
  4. Media player that works with iTunes?
    By serendipity in forum Software & Software Development
    Replies: 6
    Last Post: 01-18-2005, 07:47 AM
  5. Replies: 1
    Last Post: 12-30-2003, 08:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •