You are not logged in.
#1 Nov 27, 2009 6:47 pm
[Cycript] Papilio 1.1.2 by Sakurina

Click through to the site for downloads, an API reference, a Bowlet/Cydget conversion howto, and more info...
Papilio is a reimplementation of Bowtie's public APIs for Cycript on the iPhone.
If that doesn't mean anything to you, here's a (longer, but easier to understand) plain English description:
Bowtie, as you probably know, is an iTunes controller for OS X that can be themed. Those themes are called Bowlets, and are composed of HTML, CSS, and JavaScript. Bowtie exposes some functionality to JavaScript; those are the Bowtie APIs.
The Bowtie APIs are tied to iTunes, and are closed-source, so anyone wanting to create something similar to Bowtie would have to reinvent the wheel.
So why reinvent the wheel? People already know how to create Bowlets, so why not expose the same functionality as Bowtie does in the same way? That is what Papilio does.
Papilio can be embedded into Cydgets to give them music controls or information on the currently playing track. It can also be used to convert existing Bowlets into Cydgets with minimal effort, or to use the familiar Bowtie APIs in any other Cycript projects.
•
Papilio is written in Cycript, and can be used from anywhere Cycript can be used. It is open-source and distributed under the ISC License.
If you like Papilio, or any of my work, please consider donating towards a new iPod touch, as my current one is slowly dying. Thank you.
•
Just some notes from my testing over the course of the day:
- Some Bowlets had some weird string truncation code the iPhone OS did not like at all; stripping that truncate function out fixed it.
- If you switch between two Papilio-powered Cydgets, you may run into some pixellated album art; there is one shared cache for album art, so if your previous Cydget specified a small album art size, it's trying to reload the same small images. Go delete all image files beginning with "AA-" in /tmp to empty the cache. (I will eventually build something in to split the caches per Cydget.)
Looking forward to seeing what you guys build with this. ![]()
Coming soon: a demo Cydget by Plizzo that'll show you the basic structure of one a Papilio-powered Cydget, and surely more compatibility fixes.
Last edited by Sakurina (Nov 29, 2009 12:20 pm)
Offline
#2 Nov 27, 2009 6:54 pm
- BenjiC
- Member
- From: Murdetown, USA.
- Joined: Nov 12, 2007
Re: [Cycript] Papilio 1.1.2 by Sakurina
This looks highly promising, keep it coming. ![]()
Offline
#3 Nov 27, 2009 7:04 pm
- iAlbert

- Member
- Joined: Apr 16, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
I love you ![]()
Thanks so much.
Offline
#4 Nov 28, 2009 3:38 pm
- Bruno Maia

- Member
- From: Luxembourg
- Joined: Apr 6, 2009
- Website
Re: [Cycript] Papilio 1.1.2 by Sakurina
Very nice release, congrats Sak.
Offline
#5 Nov 28, 2009 3:44 pm
Re: [Cycript] Papilio 1.1.2 by Sakurina
While MacThemes was down, I released Papilio 1.1, which slightly modified the steps to follow in the Bowlet conversion howto; please upgrade, as it greatly improves compatibility, and reread the how to.
Offline
#7 Nov 29, 2009 11:20 am
Re: [Cycript] Papilio 1.1.2 by Sakurina
1.1.1 is out; fixes some issues with the LCD code, otherwise the rest of it is pretty much the same.
Also, Plizzo and I are working on finishing up the demo theme you can see in the first post so hopefully it'll be up by the end of the day.
Offline
#9 Nov 29, 2009 11:58 am
- lukester78

- Member
- From: Connecticut
- Joined: Jun 13, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
just a question, say im using the setup in your screenshot in the original post, what happens if i double click the home button?
if i had the time id definitely make some themes with this
Offline
#10 Nov 29, 2009 12:05 pm
Re: [Cycript] Papilio 1.1.2 by Sakurina
lukester78 wrote:
just a question, say im using the setup in your screenshot in the original post, what happens if i double click the home button?
if i had the time id definitely make some themes with this
Home button actions are intercepted by Cydget, so it would pressing it twice would cycle through the next two Cydgets.
edit:
1.1.2 is out and fixes some problems with the artwork callbacks; when tracks had no artwork, Cydgets were being sent incorrect artwork URLs. This has been fixed.
Last edited by Sakurina (Nov 29, 2009 12:21 pm)
Offline
#11 Nov 29, 2009 12:35 pm
- Buffy6

- Member
- From: New York
- Joined: Jul 8, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
This is great thanks!!!!! I hope to see more themes for this!!!!
Also, special thanks to Plizzo for helping you with this. ![]()
Last edited by Buffy6 (Nov 29, 2009 12:43 pm)
Offline
#12 Nov 29, 2009 12:44 pm
Re: [Cycript] Papilio 1.1.2 by Sakurina
http://r-ch.net/dropbox/PapilioDefault.tar if you want the example theme Plizzo and I worked on.
Offline
#13 Nov 29, 2009 1:04 pm
- lukester78

- Member
- From: Connecticut
- Joined: Jun 13, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
Sakurina wrote:
lukester78 wrote:
just a question, say im using the setup in your screenshot in the original post, what happens if i double click the home button?
if i had the time id definitely make some themes with thisHome button actions are intercepted by Cydget, so it would pressing it twice would cycle through the next two Cydgets.
edit:
1.1.2 is out and fixes some problems with the artwork callbacks; when tracks had no artwork, Cydgets were being sent incorrect artwork URLs. This has been fixed.
oh, right, my mistake
im gonna take a look at that default theme, just to see how it works
edit: how would i add it to the list of cydgets? what folder would it go in? thanks, sorry
Last edited by lukester78 (Nov 29, 2009 1:21 pm)
Offline
#14 Nov 29, 2009 1:23 pm
- Buffy6

- Member
- From: New York
- Joined: Jul 8, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
It goes in /System/Library/LockCydgets
Then you activate it in settings. ![]()
Offline
#15 Nov 29, 2009 1:24 pm
- lukester78

- Member
- From: Connecticut
- Joined: Jun 13, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
Buffy6 wrote:
It goes in /System/Library/LockCydgets
Then you activate it in settings.
thanks
couldnt seem to find it before
Offline
#16 Nov 29, 2009 3:40 pm
- lukester78

- Member
- From: Connecticut
- Joined: Jun 13, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
im having trouble modifying this bowlet, its called CD jewelcase Popup, found here: http://macthemes2.net/forum/viewtopic.p … 39&p=1
anyone think they could attempt to mod it for me? its greatly appreciated ![]()
edit: woops, didnt realize i was the last one to post before this
![]()
Last edited by lukester78 (Nov 29, 2009 3:41 pm)
Offline
#17 Nov 29, 2009 5:45 pm
- Silenus

- Member
- Joined: Dec 21, 2008
Re: [Cycript] Papilio 1.1.2 by Sakurina
Thanks for providing that theme Sakurina.
Looks great.
Good bye Snowcover.
OMG I did it on my first try.
Pins.
tap cover to show artist and rating stars, can rate it.
Reference.
http://macthemes2.net/forum/viewtopic.php?id=16800441
You are great Sakurina.
Will not release this, because I haven't asked for permission to the original bowlet author.
Last edited by Silenus (Nov 29, 2009 6:16 pm)
Offline
#19 Nov 29, 2009 9:52 pm
- pinoy_408

- Member
- From: Bay Area Ca
- Joined: Mar 26, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
okay im a noob on this kinds of stuff anyone wanna break it down for me...
also on how to install this.. thanx
Offline
#20 Nov 29, 2009 9:57 pm
Re: [Cycript] Papilio 1.1.2 by Sakurina
pinoy_408 wrote:
okay im a noob on this kinds of stuff anyone wanna break it down for me...
also on how to install this.. thanx
Instructions: http://r-ch.net/iphone/papilio/bowletconversion.html
Offline
#21 Nov 29, 2009 10:00 pm
- pinoy_408

- Member
- From: Bay Area Ca
- Joined: Mar 26, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
^ so i need cydget installed?
Offline
#22 Nov 30, 2009 3:20 am
- Phlooo

- Member
- From: Toulouse, France
- Joined: Jul 31, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
Is there a way to integrate a papilio into a smartscreen widget ?
So we could move it anywhere !
Offline
#23 Nov 30, 2009 3:35 am
- observer365
- Member
- Joined: Mar 21, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
Call me stupid that's okay...but what to download and where to put them....thanks
Offline
#24 Nov 30, 2009 3:43 am
- kthnxshwn

- Banned
- Joined: Jul 7, 2009
Re: [Cycript] Papilio 1.1.2 by Sakurina
Are you guys not reading the instructions? All the questions asked here are in them.
Offline
#25 Nov 30, 2009 3:59 am
- pignosepower
- Member
- From: ☂
- Joined: Nov 10, 2008
Re: [Cycript] Papilio 1.1.2 by Sakurina
This is terriffic! epic work sakurina.
Offline

