An open API service indexing awesome lists of open source software.

https://github.com/danasilver/giphy-messages

gif me messages
https://github.com/danasilver/giphy-messages

giphy hack imessage

Last synced: 26 days ago
JSON representation

gif me messages

Awesome Lists containing this project

README

          

## Giphy Messages

#### Powered by [Giphy](http://giphy.com/)

### Install

0. Download and mount [Giphy Messages.dmg](https://github.com/danasilver/giphy-messages/releases/latest)

0. Move the app to your Applications folder

0. Double click to open the app

0. Go to **Messages > Preferences > AppleScript Handler** and select **Giphy.applescript**

### Hack

All the code is interpreted and exposed in *Giphy Messages.app* with no external
requirements, so it should be easy to open up the app bundle and hack however
you'd like. You can open the app bundle by right clicking on
*Giphy Messages.app* and selecting *Show Package Contents*. If you make a change
you think other users would appreciate, fork the repository and create a Pull
Request!

### Details

*Giphy.applescript* must be copied into
*~/Library/Application\ Scripts/com.apple.iChat* then selected under
**Messages > Preferences > AppleScript Handler**.

*Giphy.applescript* expects *giphy.py* and *send_message.applescript* to live
inside the app in the */Applications* directory. Change `theScript` in
*Giphy.applescript* if you'd like to develop with the *giphy.py* and
*send_message.applescript* elsewhere.

We distribute an app since it's the easiest way to make sure we can find
*giphy.py*. AppleScript doesn't have the support to make and parse web requests.

The dmg is generated with [create-dmg](https://github.com/andreyvit/create-dmg).
Follow the installation instructions there then run `./dmg.sh` to create
*Giphy Messages.dmg*.

The multi-resolution *dmg-background.tiff* for the background of the dmg is
generated with:

```
tiffutil -cathidpicheck assets/dmg-background.png assets/dmg-background@2x.png -out assets/dmg-background.tiff
```