Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 4, 2012, 01:43 PM   #1
Blackened Apple
macrumors regular
 
Join Date: Jun 2012
iTunes support for notification center (song changes, etc.)

Hey everyone,

Can anyone tell me if iTunes sends out notifications for events like song changes?
Blackened Apple is offline   0 Reply With Quote
Old Aug 4, 2012, 01:45 PM   #2
tkermit
macrumors 68020
 
tkermit's Avatar
 
Join Date: Feb 2004
It doesn't.
__________________
___🏃_
tkermit is offline   0 Reply With Quote
Old Aug 4, 2012, 04:12 PM   #3
Blackened Apple
Thread Starter
macrumors regular
 
Join Date: Jun 2012
Ok, thank you very much. I'd appreciate if it were available, other music apps have similar on-screen notifications...
Blackened Apple is offline   0 Reply With Quote
Old Aug 4, 2012, 04:16 PM   #4
Blaine
macrumors 6502a
 
Blaine's Avatar
 
Join Date: Dec 2007
Location: Abilene TX
Yeah, this would be pretty cool.
Blaine is offline   0 Reply With Quote
Old Aug 4, 2012, 04:28 PM   #5
tkermit
macrumors 68020
 
tkermit's Avatar
 
Join Date: Feb 2004
You could look for an app that sends out Growl notifications and then install Hiss, which converts them to proper ML notifications (no need for Growl to be installed).

__________________
___🏃_
tkermit is offline   0 Reply With Quote
Old Aug 4, 2012, 07:20 PM   #6
hafr
macrumors 68020
 
Join Date: Sep 2011
Quote:
Originally Posted by Blackened Apple View Post
Hey everyone,

Can anyone tell me if iTunes sends out notifications for events like song changes?
Quote:
Originally Posted by tkermit View Post
You could look for an app that sends out Growl notifications and then install Hiss, which converts them to proper ML notifications (no need for Growl to be installed).

Image
Install Hiss, then install Bowtie. http://bowtieapp.com

Tada.
hafr is offline   0 Reply With Quote
Old Aug 6, 2012, 02:26 AM   #7
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
I've created an app which uses AppleScripts and Terminal-Notifier (https://github.com/alloy/terminal-notifier) to display track names as notification centre notifications when the song changes.

I've put it all into a neat little application package for people to easily install and use themselves (see the instructions file inside the ZIP archive).

Here's the link to the ZIP file containing everything you need.

http://www.mediafire.com/?9h01wlo18ptly

Give it a go and let me know how it goes!
Attached Thumbnails
Click image for larger version

Name:	fe4766427530.jpg
Views:	236
Size:	40.3 KB
ID:	351624  

Last edited by heghead; Aug 7, 2012 at 09:46 PM. Reason: Updating URL to new host
heghead is offline   16 Reply With Quote
Old Aug 7, 2012, 08:40 AM   #8
nyolc8
macrumors regular
 
Join Date: Jul 2012
Quote:
Originally Posted by heghead View Post
I've created an app which uses AppleScripts and Terminal-Notifier (https://github.com/alloy/terminal-notifier) to display track names as notification centre notifications when the song changes.

I've put it all into a neat little application package for people to easily install and use themselves (see the instructions file inside the ZIP archive).

Here's the link to the ZIP file containing everything you need.

https://www.dropbox.com/s/5h9ebi25ec...NowPlaying.zip

Give it a go and let me know how it goes!
I just Love it! Thank you!
nyolc8 is offline   0 Reply With Quote
Old Aug 7, 2012, 10:17 AM   #9
hafr
macrumors 68020
 
Join Date: Sep 2011
Quote:
Originally Posted by heghead View Post
I've created an app which uses AppleScripts and Terminal-Notifier (https://github.com/alloy/terminal-notifier) to display track names as notification centre notifications when the song changes.

I've put it all into a neat little application package for people to easily install and use themselves (see the instructions file inside the ZIP archive).

Here's the link to the ZIP file containing everything you need.

https://www.dropbox.com/s/5h9ebi25ec...NowPlaying.zip

Give it a go and let me know how it goes!
Wow, that was great, thanks a lot! But a reboot is not necessary

I compared it, and Hiss + Bowtie that I recommended took several hundred MB's of RAM, your app only uses 8,4 MB...
hafr is offline   0 Reply With Quote
Old Aug 7, 2012, 10:23 AM   #10
roland.g
macrumors 601
 
roland.g's Avatar
 
Join Date: Apr 2005
Location: One mile up and soaring
Send a message via AIM to roland.g
That's great. I might try that.

But my main question is does the notification go away or do you need to clear it.

One of my beef's with Notifications in iOS is that if it tells me I have new mail and then I read the new mail in the mail app independent of going through the notification to get to it, when I pull down the notification center later on my phone, it still shows. GameCenter does this a lot too. Once I read the mail item or delete it or whatever, I want notification center to be on the same page.

Maybe I have something set up wrong.

Will your app just keep producing a list of songs I needs to remove from the list?
__________________
I know this because Tyler knows this.
You are not a beautiful snowflake. You are the same decaying matter as everything else.
roland.g is offline   0 Reply With Quote
Old Aug 7, 2012, 11:36 AM   #11
nyolc8
macrumors regular
 
Join Date: Jul 2012
roland.g: notification dissapears automatically from the notification center as soon the music stopped or paused.
nyolc8 is offline   0 Reply With Quote
Old Aug 7, 2012, 06:57 PM   #12
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
Quote:
Originally Posted by roland.g View Post
Will your app just keep producing a list of songs I needs to remove from the list?
Right before a new track notification is sent to Notification Centre, the previous one is removed.

Quote:
Originally Posted by nyolc8 View Post
I just Love it! Thank you!
Quote:
Originally Posted by hafr View Post
Wow, that was great, thanks a lot! But a reboot is not necessary

I compared it, and Hiss + Bowtie that I recommended took several hundred MB's of RAM, your app only uses 8,4 MB...
Thanks for the positive feedback everyone!
heghead is offline   0 Reply With Quote
Old Aug 7, 2012, 08:19 PM   #13
Icy1007
macrumors 6502a
 
Join Date: Feb 2011
Location: Las Vegas, NV
It seems that if I press forward or backwards multiple times it only shows an alert for the first song. I'd have to wait for the alert to disappear before pressing forward/backward for the next song to appear.

EDIT: Hmm, nm. It seems that it has an issue with some song names. Most songs prompt an alert, but some songs won't display an alert.

EDIT2: It seems a pattern of songs that have artists that start with a [ don't display an alert.

EDIT3: Yep, I removed the [ from the beginning of the artist and now it prompts an alert.

Just thought you'd want to know.
__________________
15" 2011 MacBook Pro, 2.2 GHz i7 Quad, 8GB DDR3, 1GB Radeon HD 6750M, 750GB HDD; 32GB iPhone 5

Last edited by Icy1007; Aug 7, 2012 at 08:25 PM.
Icy1007 is offline   0 Reply With Quote
Old Aug 7, 2012, 08:28 PM   #14
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
Quote:
Originally Posted by Icy1007 View Post
It seems that if I press forward or backwards multiple times it only shows an alert for the first song. I'd have to wait for the alert to disappear before pressing forward/backward for the next song to appear.

Hmm, nm. It seems that it has an issue with some song names. Most songs prompt an alert, but some songs won't display an alert.
I have the same issue. It's caused because of the way the script is written. I tested running the script continually (which would dramatically improve the responsiveness of the notifications) however instead of using 0.5%-2% CPU it used 30+% CPU.

As a compromise the script only runs once every second, dramatically decreasing resources needed, but slowing down the responsiveness of the notifications.

If you do have any songs in particular which don't show a notification, let me know what their names are and I can edit the script to fix it

EDIT: Okay, I'll look into a fix for the [ issue! Thanks!!
heghead is offline   0 Reply With Quote
Old Aug 7, 2012, 08:37 PM   #15
Icy1007
macrumors 6502a
 
Join Date: Feb 2011
Location: Las Vegas, NV
Activity Monitor is reporting NowPlaying as using between 0.5% and 0.7% of my CPU (Max of 800%).

Does seem right? Just wondering.

EDIT: And it seems to be using more cpu% when no song is playing... using 1.0% when nothing is playing.

Anyway, it's not that big a deal 0.5-1.0 is nothing. Thanks for the script
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-08-07 at 6.36.25 PM.png
Views:	83
Size:	110.2 KB
ID:	351965  
__________________
15" 2011 MacBook Pro, 2.2 GHz i7 Quad, 8GB DDR3, 1GB Radeon HD 6750M, 750GB HDD; 32GB iPhone 5

Last edited by Icy1007; Aug 7, 2012 at 08:43 PM.
Icy1007 is offline   0 Reply With Quote
Old Aug 7, 2012, 08:45 PM   #16
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
Quote:
Originally Posted by Icy1007 View Post
Activity Monitor is reporting NowPlaying as using between 0.5% and 0.7% of my CPU (Max of 800%).

Does seem right? Just wondering.
Yep, that looks fine to me, same as what I see most of the time

I'm looking into the bracket issue now - thanks so much for picking it up. I will have a revision uploaded in a few hours.
heghead is offline   0 Reply With Quote
Old Aug 7, 2012, 08:49 PM   #17
Icy1007
macrumors 6502a
 
Join Date: Feb 2011
Location: Las Vegas, NV
Quote:
Originally Posted by heghead View Post
Yep, that looks fine to me, same as what I see most of the time

I'm looking into the bracket issue now - thanks so much for picking it up. I will have a revision uploaded in a few hours.
I noticed only 2 of my 1000+ songs have a [ as the first character of the artist name. lol.

I just happened to play one of those two when I first started up NowPlaying.
__________________
15" 2011 MacBook Pro, 2.2 GHz i7 Quad, 8GB DDR3, 1GB Radeon HD 6750M, 750GB HDD; 32GB iPhone 5
Icy1007 is offline   0 Reply With Quote
Old Aug 7, 2012, 09:50 PM   #18
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
Hi Everyone,

Please click the link below to download the new version of NowPlaying. It is now hosted on MediaFire so that I can monitor downloads and upload new versions easily.

New to v1.1:
  • Fixed Square Bracket bug - Thanks to Icy1007 for discovering the bug!

http://www.mediafire.com/?9h01wlo18ptly
heghead is offline   0 Reply With Quote
Old Aug 7, 2012, 10:02 PM   #19
diogolg
macrumors member
 
Join Date: Jun 2012
Quote:
Originally Posted by heghead View Post
Hi Everyone,

Please click the link below to download the new version of NowPlaying. It is now hosted on MediaFire so that I can monitor downloads and upload new versions easily.

New to v1.1:
  • Fixed Square Bracket bug - Thanks to Icy1007 for discovering the bug!

http://www.mediafire.com/?9h01wlo18ptly

Perfect!
diogolg is offline   0 Reply With Quote
Old Aug 7, 2012, 10:07 PM   #20
bndoarn
macrumors 6502a
 
Join Date: Mar 2008
Quote:
Originally Posted by heghead View Post
I've created an app which uses AppleScripts and Terminal-Notifier (https://github.com/alloy/terminal-notifier) to display track names as notification centre notifications when the song changes.

I've put it all into a neat little application package for people to easily install and use themselves (see the instructions file inside the ZIP archive).

Here's the link to the ZIP file containing everything you need.

http://www.mediafire.com/?9h01wlo18ptly

Give it a go and let me know how it goes!
Thank you so much for this. I spent hours trying to do this the other day (while also trying to learn how to write apple scripts) and I failed miserably. It functioned fine but the CPU usage was ridiculous. However, I did mange to write an applescript by myself that will open your app when iTunes opens and quit when iTunes quits, lol. Thank you again.
__________________
White iPhone 5 64GB | Black iPad mini 16GB | 13" MacBook Air 2011 | AppleTV 3G
bndoarn is offline   0 Reply With Quote
Old Aug 7, 2012, 10:16 PM   #21
Icy1007
macrumors 6502a
 
Join Date: Feb 2011
Location: Las Vegas, NV
Quote:
Originally Posted by heghead View Post
Hi Everyone,

Please click the link below to download the new version of NowPlaying. It is now hosted on MediaFire so that I can monitor downloads and upload new versions easily.

New to v1.1:
  • Fixed Square Bracket bug - Thanks to Icy1007 for discovering the bug!

http://www.mediafire.com/?9h01wlo18ptly

Thanks. I took a look at your script. I like how you fixed the "Bracket Bug".


EDIT: Not sure how adding a space before and/or after the symbol fixes it, but whatever works. lol
__________________
15" 2011 MacBook Pro, 2.2 GHz i7 Quad, 8GB DDR3, 1GB Radeon HD 6750M, 750GB HDD; 32GB iPhone 5
Icy1007 is offline   0 Reply With Quote
Old Aug 7, 2012, 10:20 PM   #22
heghead
macrumors member
 
Join Date: May 2010
Location: Australia
Quote:
Originally Posted by Icy1007 View Post
Thanks. I took a look at your script. I like how you fixed the "Bracket Bug".


EDIT: Not sure how adding a space before and/or after the symbol fixes it, but whatever works. lol
Haha thanks The issue is actually with the terminal-notifier app I use to send the notifications, so there's no way I can fix it properly

I didn't actually add a space, I had to use a different unicode character which looks just like a square bracket with a space before it... lol it was the only solution which I could find which actually worked..
heghead is offline   1 Reply With Quote
Old Aug 7, 2012, 10:27 PM   #23
garbeth
macrumors regular
 
Join Date: Apr 2010
Location: Brisvegas
Quote:
Originally Posted by heghead View Post
Hi Everyone,

Please click the link below to download the new version of NowPlaying. It is now hosted on MediaFire so that I can monitor downloads and upload new versions easily.

New to v1.1:
  • Fixed Square Bracket bug - Thanks to Icy1007 for discovering the bug!

http://www.mediafire.com/?9h01wlo18ptly
And this is why I love this community! Thanks!
garbeth is offline   0 Reply With Quote
Old Aug 7, 2012, 10:42 PM   #24
Icy1007
macrumors 6502a
 
Join Date: Feb 2011
Location: Las Vegas, NV
Quote:
Originally Posted by heghead View Post
Haha thanks The issue is actually with the terminal-notifier app I use to send the notifications, so there's no way I can fix it properly

I didn't actually add a space, I had to use a different unicode character which looks just like a square bracket with a space before it... lol it was the only solution which I could find which actually worked..
Oh, really? lol That's interesting.
__________________
15" 2011 MacBook Pro, 2.2 GHz i7 Quad, 8GB DDR3, 1GB Radeon HD 6750M, 750GB HDD; 32GB iPhone 5
Icy1007 is offline   0 Reply With Quote
Old Aug 8, 2012, 12:00 AM   #25
aziatiklover
macrumors 68000
 
aziatiklover's Avatar
 
Join Date: Jul 2011
Location: 8.8.8.8 and 8.8.4.4
Pretty epic! Thanx
__________________
ppleholic
aziatiklover is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac OS X > OS X 10.8 Mountain Lion

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

Forum Jump


All times are GMT -5. The time now is 04:09 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC