So it used to work. Here's what I'm trying... now if I post the string in the browser it correctly opens to the right song in the browser. But alas the code opens the iTunes but fails to open the album or song.
I'm using Yosemite 10.10.4 and iTunes 12.2.1.16.
maciTunesStr = #"itunes.apple.com/us/album/allegro-from-prelude-fugue/id982291206?i=982291615";
[self showProductPageForID:maciTunesStr];
THANKS!!!
well the following worked, but halfway. It opens a browser window with the song highlighted. This isn't the same as opening the iTunes app itself, but about 60% as good. I would still appreciate a better answer but for now this will suffice.
This is the most modern link format I got from the iTunes link maker.
https://linkmaker.itunes.apple.com
musicDownloadLink = ["https://geo.itunes.apple.com/us/album/sonata-in-c-major/id982291206?i=982291616&mt=1&app=music" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:musicDownloadLink]];
Related
I am displaying all my macOS apps in App Store by a single line like this:
NSString *finalLink = #"http://appstore.com/mac/JiulongZhao"
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:finalLink]];
It works until macOS Mojave 10.14. the webpage jumps but App Store just hanging there or "Cannot Connect to AppĀ Store".
BTW, the visit of each app is still available like this:
NSString *finalLink = #"macappstore://itunes.apple.com/us/app/Overlay/id653092846"
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:finalLink]];
Any advice?
Yes, a statement in browser like this is still working:
macappstore://itunes.apple.com/us/app/Overlay/id653092846
The following recommended answer does not work well, I will upload my answer soon.
The following link works to open all apps made by Apple on the Mojave Mac App Store:
https://itunes.apple.com/us/developer/apple/id284417353?mt=12&uo=4&at=11l6hc&app=itunes&ct=fnd
Found via the links created by the fnd.io tool:
https://fnd.io/#/us/search?mediaType=all&term=Apple
Suggested in the accepted answer here:
Open Developer Page in Mac App Store on macOS Mojave
So I tried both the old standby - here:
Attempt 1:
How can I set the icon for a Mac Application in Xcode?
Attempt 2: Also tried the new way, which is filling out the Images.xcassets...
Results: both times in the App Store the icon is greyed out. Both times the art is shown on the Mac binary .app that's placed in my production folder.
Would sure appreciate an answer!!
Ah found the answer... another post had the solution...
Mac app icon not displayed in itunes connect
Looks like iTunes currently has a bug that needs you to submit the app in order to get the icon loaded. no biggie.
It's been few days now that I have been looking for the section where you upload the Icon.
I have done this for iphones and it is in the modal screen when you clik edit.
Mac has very similar Itunes connect interface, but that piece is missing for me:
Im so confused, please advise. Here is the default icon:
I found the related documentation, it states:
If you are adding an OS X app, the Uploads section displays only one
option, Desktop Screenshot, which is required and shown next. You will
not be asked to provide a large icon when adding your OS X app because
it will be uploaded later as part of the binary.
Documentation Link
Is there (now) a officially supported way to change the OSX Notification Center's Icon for NSUserNotifications while my App is running?
I searched the web, but the answers weren't really "recent", so I just wanted to double check.
I'd like to show the currently playing spotify track's Artwork next to it's title / name
What I tried until now is really ugly:
temporarily replacing the CFBundleIconFile of my app with a IconFamily generated .icns file (I know i shouldn't modify anthing inside the bundle, but I'm not aiming to get the app to the App Store)
restart Notification Center to "forget" it's eventually cached icons
NSRunningApplication* notificationCenter = [NSRunningApplication runningApplicationsWithBundleIdentifier:#"com.apple.notificationcenterui"];
[notificationCenter terminate];
(i know I REALLY SHOULDN'T do this)
If you are NOT going to submit your app to App Store, there's a private API in 10.9 that does what iTunes did:
NSUserNotification *notification = [NSUserNotification new];
[notification setValue:anImage forKey:#"_identityImage"];
Links to iTunes store items like apps, launched from from Safari on OS X, first
open a web page for the item, and then
launch iTunes and open the corresponding page there.
Is there a way to represent the second step?
This might be what you're looking for...
http://gigaom.com/apple/how-to-stop-itunes-web-links-from-opening-itunes/