How do I access the iTunes database from my application. I seems apple can access iphone and itunes from their apps. How do I do the same?
access music database from cocoa
731 views Asked by RW. At
2
There are 2 answers
0
Elise van Looij
On
Applescript will give you to access to iTunes and many other applications -- not sure how it works with iPhone. If you open the Applescript-Editor in the /Applications/Utilities folder, you will find the 'Open Dictionaries' command under the File menu. This will list all the applications you can access with Applescript and the methods and properties they support.
Apple has a special object, NSApplescript, that helps you integrate Applescript in your Cocoa app, see Technical Note TN2084 - Using AppleScript Scripts in Cocoa Applications. Applescript does have a bit of a steep learning curve, but examples are easily found on the internet and on your own computer in the /Library/Scripts folder
Related Questions in OBJECTIVE-C
- How do I customize NSOutlineView to have border color?
- UIWebView Screen Fitting Issue
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Image and Text locations in UIButton
- setting OpenGL version in objective-C
- Setup code for xibs in iOS. -awakFromNb:
- realm db, get parent link of object
- CFBundleDocumentType is not working in myproject-Info.plist file
- UIPopoverPresentationController not rendering properly
- Using Storyboard Reference
- Pass Data between two view controllers using 'Delegation' : Objective-C
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- Setting View orientation to portrait is ignored
- UITextField append / between dates while enforcing character limit
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
- Alarming memory increase with custom segue
- Display both alertTitle and AlertBody on a custom WatchKit notification
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- Cannot use CTRL+Drag for making a button action in Xcode?
- Labels properties changing in Xcode
Related Questions in ITUNES
- See if an app has Apple Watch support via API?
- How can I check for existence of Itunes track in Applescript without throwing error
- iOS App's Documents directory contents lost after Restore from Backup
- iOS app displaying incorrect date in Mac iTunes
- How to delete an app from the App Store with NEW iTunes Connect
- Is it possible to get list of my podcast subscriptions using iTunes search API?
- New iTunes Connect in-app purchases section not visible
- automatic download and install of iOS apps
- send message to apple regarding my app uploaded for review on iTunes
- Itunes connect demo account for reviewing
- Unable to find an app using iTunes api
- I want to launch iTunes on an iPhone from a Geo Fencing trigger
- Is iTunes Search API Rate Limit per device or per app?
- iOS app is not visible as a result in Google Search
- App crashing through iTunes
Related Questions in IPHOTO
- Is it possible to change the album of a photo in the camera roll?
- iOS: Store new photos using UIImagePickerController NOT in default album
- Black photos when exporting slideshow with iPhoto
- iOS Create a Unique Identifier for Pictures
- How to remove iPhoto auto open when device connects with USB?
- iPhone: iPhoto like tile view for image browsing
- iPhoto-like cropping of an image?
- Read from iPhoto Library programmatically
- Delete an Image in iPhoto having the Filename (incl. path)
- No thumbnail in iPhoto for images saved with UIImageWriteToSavedPhotosAlbum
- Get iPhoto to Enhance thousands of photographs?
- iPhoto album transition
- access music database from cocoa
- how to get name of iphoto album
- Access "keyword" element of photo within iPhoto - Applescript
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You might want to look into MPMediaLibrary Class Reference. This link might help you.
http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMediaLibrary_ClassReference/Reference/Reference.html