I have created a bunch of apps using fluid. I recently discovered that when there is an update to fluid, each of those apps needs to be updated independently. Ideally, I would like to be able to update only one app and have that update propagate to all my fluid apps.
I tried to accomplish this by updating fluid itself, but that didn't seem to propagate the update to all my fluid apps.
Now, I'm convinced that I should update each of my fluid apps separately. That being said, I'd rather update all my fluid apps "in one go" rather than open each one when I need to and discover that it needs to be updated. And of course, rather than do this manually for each fluid app that I've created, I'd like to script this somehow (I'm thinking applescript - yay! I finally have a project that requires me to learn it).
So first things first, I need a list of all my fluid apps. There are two ways that I can think of for doing this:
- Keep a log in some text file on the file system, updating it as and when I create new fluid apps. This is inefficient
- There has to be an app or a script that I can write that will list all these apps for me. I don't know how to do this, can anyone point me to the right resources?
Once I have this list, I should update each app in the list. I'm thinking applescript is the way to go for this. How would I accomplish this? If I were to update manually, a fluid app called Foo.app, I would do this:
- Open the app
- Right away, there is a popup window informing me of an available update
- If this popup appears, click on the default choice ("update and relaunch")
- If this popup does not appear, click on "Foo" in the menubar and select "Check for updates"
- If an update is found, click on "update and relaunch"
- Else, close and quit the app
I know what needs to be done, but am just clueless as to how to implement my solution. I'd appreciate any pointers in the right direction.
PS: I hope I'm posting in the correct forum. I feel like parts of this post make it a good fit for stackoverflow.