Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

heghead

macrumors member
May 30, 2010
33
0
Australia
As I said, I really love this little app. I modified it to get the title "Now Playing" in the notification center to show up in my language by this:

I made a new folder in Now Playing.app/Contents/Resources/Now Playing.app/Contents/Resources/hu.lproj/
(hu is my language)

I copied the "InfoPlist.strings" file from Chess.app/Contents/Resources/hu.lproj/
into the newly created folder, then I keeped only CFBundleDisplayName section in the file and modified the value of it to say "now playing" in my language.

result:
Image

So my suggestion is that it could be translated into various language.:)

And another thing:
I looked into the script file and I found this:
Code:
tell application "System Events" to (name of processes) [B]contains[/B] appName

So if "iTunes Helper" running only, it's also triggers the script. Or am I wrong?

Multiple translations sounds like a great idea!! If you would like to send me your version via private message, I can host it on the MediaFire server and distribute it with the other builds if you'd like? (Also, anyone else out there who would like to provide different versions in different languages, feel free to send them in too).

Regarding the process name point. When I call the appIsRunning sub-routine you'll notice I call it with ("iTunes"). When the processes are sent from System Event, they are supplied with quote marks around them. When calling appIsRunning the quote marks are not used in the same way as you would use them with a variable, they are actually also being sent to the sub-routine. Therefore, because "iTunes" (including the quote marks) is not contained in "iTunesHelper" (including the quote marks), iTunes Helper is not detected.

Thanks for the feedback and suggestions :)
 
Last edited:

nyolc8

macrumors regular
Jul 20, 2012
205
1
Multiple translations sounds like a great idea!! If you would like to send me your version via private message, I can host it on the MediaFire server and distribute it with the other builds if you'd like? (Also, anyone else out there who would like to provide different versions in different languages, feel free to send them in too).

Regarding the process name point. When I call the appIsRunning sub-routine you'll notice I call it with ("iTunes"). When the processes are sent from System Event, they are supplied with quote marks around them. When calling appIsRunning the quote marks are not used in the same way as you would use them with a variable, they are actually also being sent to the sub-routine. Therefore, because "iTunes" (including the quote marks) is not contained in "iTunesHelper" (including the quote marks), iTunes Helper is not detected.

Thanks for the feedback and suggestions :)
I sent a PM with the translated app. The method that I used is capable to have only one app that contains all the different translations, and OSX itself selects the app language to the system language. So we don't need different versions to each language. :)
 

heghead

macrumors member
May 30, 2010
33
0
Australia
This is fantastic. How hard do you think it would be to make a version that would notify Spotify track changes?

Coming right up :) I've got it almost perfect. Just having some issues with spotify crashing, as soon as I've figured those out "NowPlaying" will send notifications for iTunes AND Spotify :)
 

Soundflunky

macrumors regular
Apr 29, 2012
241
0
Great app. Really appreciated. :)

I seem to have come across some more character-based bugginess.

Song is "(Don't Fear) The Reaper".
 

Attachments

  • Screen Shot 2012-08-09 at 20.32.07.png
    Screen Shot 2012-08-09 at 20.32.07.png
    230 KB · Views: 145

apptel

macrumors newbie
Jun 22, 2012
10
0
Absolutely awesome! Just one thing, is there a smart way to start and close the app whenever i start up or close iTunes?

Thanx again!
 

heghead

macrumors member
May 30, 2010
33
0
Australia
Absolutely awesome! Just one thing, is there a smart way to start and close the app whenever i start up or close iTunes?

Thanx again!

Due to the tiny amount of resources which it uses, there is no need for it to do that. In the upcoming release, the app even goes into a low resource sleep mode when iTunes isn't open.. :)
 

nyolc8

macrumors regular
Jul 20, 2012
205
1
I have created a similar app. It uses less CPU since it is not a loop checking for current song. Normally between 0.0% and 0.2% of the CPU.

http://onible.com/blog/2012/08/13/itunification-itunes-integration-with-notification-center-in-os-x-mountain-lion/

Nice but I think that icon is really ugly (sorry). (I wanted to change the title and the icon for myself but the app immediately gets broken and unusable.)
So I'll use Now Playing instead, until these gets fixed.

edit.: I managed to modify the icon and the title, it looks ok now :) I like the 0,0% CPU usage :)

The only problem is when I stop,pause,quit iTunes, the notification stays there.
 
Last edited:

a.rabbani

macrumors newbie
Aug 13, 2012
4
0
Nice but I think that icon is really ugly (sorry). (I wanted to change the title and the icon for myself but the app immediately gets broken and unusable.)
So I'll use Now Playing instead, until these gets fixed.

edit.: I managed to modify the icon and the title, it looks ok now I like the 0,0% CPU usage

The only problem is when I stop,pause,quit iTunes, the notification stays there.

Thanks for your feedback. I also hate the icon. I didn't actually spend much time for that.

The issue with pause, stop, quit is solved. The next version will have a nice icon as well as support for Spotify.
 

geoffm33

macrumors 6502
Dec 27, 2010
308
145
Thanks for your feedback. I also hate the icon. I didn't actually spend much time for that.

The issue with pause, stop, quit is solved. The next version will have a nice icon as well as support for Spotify.

Excellent! Thanks.
 

heghead

macrumors member
May 30, 2010
33
0
Australia
Hi Everyone!!

I'm currently working on an easier way to download and update the app. It's looking pretty cool.

I'll get back to you as soon as it's set up!
 

jphotography

macrumors newbie
Aug 15, 2012
2
0
... one thing I have noticed

First of all: Thank you very much for this little tool. I really love it!

I have just noticed one little thing. After installing the version 1.4 you find two Now Playing Apps in the notification center setup. Yon can of course tell the old version (which is really not existing anymore) not to show up in the notification center ... but you can not delete it in that setup panel. that is ... well not so nice ;(

or did i do anything wrong?
 

Senseotech

macrumors 6502a
Nov 23, 2009
785
28
NC
First of all: Thank you very much for this little tool. I really love it!

I have just noticed one little thing. After installing the version 1.4 you find two Now Playing Apps in the notification center setup. Yon can of course tell the old version (which is really not existing anymore) not to show up in the notification center ... but you can not delete it in that setup panel. that is ... well not so nice ;(

or did i do anything wrong?

I have two, but one is for iTunes and the other for Spotify. Did you by change end the process for before installing the new one? If not, its very likely they're both running.
 

iRobby

macrumors 6502a
Mar 22, 2011
994
6
Fort Myers, FL USA
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!

Is this in the Mac App Store?
 

ourcore

macrumors regular
Aug 4, 2012
131
1
This is amazing, thank you so much for this! I have a similar tweak on my iPhone that displays notifications on song changes, which also doubles as a music controller with gestures, so it's great to have the same function on my Mac.

The only thing I've noticed is that curved brackets in song titles are rather awkwardly aligned in that the bottom end of the bracket doesn't surpass the adjacent letters, as much as it does at the top - of course this is a minor aesthetic detail, but I thought I'd bring it up in case it's more of a Notification Center issue rather than the tweak's. There also seem to be excessive spaces added just before the bracket (see screenshot attached).

Is it also possible to change the Notification heading to just "Now Playing"? I feel like the icon is enough indication as to where the music is being played.

Thanks!

EDIT: It appears that this is an issue with Now Playing as it doesn't occur with iTunification. Now if I can only change it horrible icon :p

EDIT 2: After uninstalling Now Playing, it still appears in the "In Notification Center" list - how can I remove this? Does anybody also know how to change the widget title in the Notification Center? Cheers
 

Attachments

  • nowplaying.jpg
    nowplaying.jpg
    47.7 KB · Views: 878
Last edited:

jphotography

macrumors newbie
Aug 15, 2012
2
0
I have two, but one is for iTunes and the other for Spotify. Did you by change end the process for before installing the new one? If not, its very likely they're both running.

@Senseotech: Both Apps in my notification center are from Now Playing. One is called Now Playing (I think this is the old version) and the other is called Now Playing on iTunes. I installed the new version after I quit the old process and deleted from the application folder. after that I also rearranged the start up settings. The old process is also not listed in the activities panel.



...

EDIT 2: After uninstalling Now Playing, it still appears in the "In Notification Center" list - how can I remove this? Does anybody also know how to change the widget title in the Notification Center? Cheers

@ourcore: That is exactly the same problem as mine. The old app stays in the notification center set up list.


And I just noticed one more little thing: When you are listening to previews in the iTunes Shop ... than Now Playing gets activated again but shows the last title you have played from your music library and not the title you are just previewing.
 

Kaske

macrumors newbie
Dec 20, 2012
6
0
iTunes 11

Hi Everyone!!

I'm currently working on an easier way to download and update the app. It's looking pretty cool.

I'll get back to you as soon as it's set up!

Will you be working on a iTunes 11 update any time soon? It seems that NoWPlaying doesn’t yet work with it.

Great little gem of an app., appreciate your effort!
 

3282868

macrumors 603
Jan 8, 2009
5,281
0
Will you be working on a iTunes 11 update any time soon? It seems that NoWPlaying doesn’t yet work with it.

Great little gem of an app., appreciate your effort!

Just installed 1.4, seems to be working well. What's happening your end?

Running iTunes 11.0.1 on 10.8.3 current DP/Beta on a 12-Core Mac Pro
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.