A tool for splitting app sales

For the past few months I have been using MyAppSales to track my day to day sales volume of my iPhone applications. In a recent update the developer, Oliver Drobnik aka Dr. Touch, added the ability to see your total sales.

I have kept all the weekly sales reports going back to when my applications were first available. So I was hoping I would finally be able to see my grand total for each app. The only problem is that the grand total is based on daily reports, not weekly reports.
So I created a small command line tool called SplitWeek that would break each week file into 7 daily files.

Each sale is assigned randomly to one of the seven days in the weekly period, so there are no rounding errors.

Operation is simple. Just run the command from Terminal, passing the path to the weekly file as the first argument:

./build/Debug/SplitWeek reports/S_W_20080825.txt

The 7 files will then be generated and saved to the current working directory.

2009-10-29 11:05:36.933 SplitWeek[53735:903] S_D_20080825.txt
2009-10-29 11:05:36.934 SplitWeek[53735:903] S_D_20080826.txt
2009-10-29 11:05:36.935 SplitWeek[53735:903] S_D_20080827.txt
2009-10-29 11:05:36.935 SplitWeek[53735:903] S_D_20080828.txt
2009-10-29 11:05:36.936 SplitWeek[53735:903] S_D_20080829.txt
2009-10-29 11:05:36.937 SplitWeek[53735:903] S_D_20080830.txt
2009-10-29 11:05:36.937 SplitWeek[53735:903] S_D_20080831.txt

Once you have created all your daily files, zip them up, and upload them to MyAppSales using the web server built in to the application.

And speaking of the built in web server, here is a quick tip on how to connect to it. When you enable the server, it will show the IP and port you need to enter into Safari to connect. In the screen shot here, I’m using the simulator, so it doesn’t even give an IP.

MyAppSales_1.png

Instead of entering the IP and port, just use the Safari Bonjour support, and you will find it listed under Webpages.

MyAppSales_2.png

MyAppSales_3.png

This entry was posted in iPhone. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Both comments and trackbacks are currently closed.
  • iChat Status