{"json_modified": "2016-03-28T08:11:39.170159", "uuid": "2205ec88-e9b8-402f-aac8-f421d65c6c17", "title": "Add to iPhoto", "url": "/en-US/docs/Mozilla/js-ctypes/Examples/Add_to_iPhoto", "tags": ["js-ctypes", "Extensions", "Add-ons", "Mac OS X", "NeedsUpdate"], "translations": [], "modified": "2015-05-25T04:30:39", "label": "Add to iPhoto", "localization_tags": [], "locale": "en-US", "id": 12418, "last_edit": "2015-04-15T11:03:44", "summary": "This extension for Mac OS\u00a0X serves as a demonstration of how to use js-ctypes to call Mac OS\u00a0X Carbon, Core Foundation, and other system frameworks from an extension written entirely in JavaScript.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Declaring_the_APIs", "title": "Declaring the APIs"}, {"id": "Some_global_types", "title": "Some global types"}, {"id": "Core_Foundation", "title": "Core Foundation"}, {"id": "Initializing_Core_Foundation", "title": "Initializing Core Foundation"}, {"id": "Shutting_down_Core_Foundation", "title": "Shutting down Core Foundation"}, {"id": "Select_API_declarations", "title": "Select API\u00a0declarations"}, {"id": "CFRange", "title": "CFRange"}, {"id": "Generic_CFType_routines", "title": "Generic CFType routines"}, {"id": "CFString", "title": "CFString"}, {"id": "CFURL", "title": "CFURL"}, {"id": "CFArray", "title": "CFArray"}, {"id": "CFMutableArray", "title": "CFMutableArray"}, {"id": "Carbon", "title": "Carbon"}, {"id": "Application_Services", "title": "Application\u00a0Services"}, {"id": "Implementing_the_extension", "title": "Implementing the extension"}, {"id": "Hooking_up_to_the_context_menu", "title": "Hooking up to the context menu"}, {"id": "Responding_when_the_context_menu_is_clicked", "title": "Responding when the context menu is clicked"}, {"id": "Responding_when_the_Add_Image_to_iPhoto_option_is_chosen", "title": "Responding when the \"Add Image to iPhoto\" option is chosen"}, {"id": "Adding_the_image_to_iPhoto", "title": "Adding the image to iPhoto"}, {"id": "Creating_the_array_of_files_to_import", "title": "Creating the array of files to import"}, {"id": "Calling_Launch_Services_to_launch_iPhoto", "title": "Calling Launch\u00a0Services to launch iPhoto"}, {"id": "Downloading_the_image", "title": "Downloading the image"}, {"id": "Closing_remarks", "title": "Closing remarks"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/js-ctypes/Examples/Add_to_iPhoto", "review_tags": []}