Fluid 0.8.6 Released with Plug-in API and more JS API

With 0.8.6, I’ve finally released the Cocoa Plug-in API for Fluid! Unfortunately, I’ve only released one very simple Plug-in for now: the Clipboard Plug-in. I doubt anyone will be blown away by this particular Plug-in… but the other Plug-in I’m working on has been holding me up for weeks now, so I figured it’s better to just get the API out there.

However, I’m hoping the Clipboard Plug-in will get developers excited about the possibilities when developing Cocoa UI plug-ins for a WebKit-based browser/SSB. The really great thing about Fluid’s Plug-in API is that your plug-in can appear in multiple places in the UI. As the developer, you get to decide which places are allowed for your plug-in, and the user can choose her preferrred placement from the allowed placements in the Preferences window.

To help devs along, I’ve released the source code to the Clipboard Plug-in as an example.

Also in this release is lots of JavaScript API for Userscripters. See the changelog below.

  • FluidInstance.app: Plug-In API!
  • FluidInstance.app: Clipboard Plug-In.
  • FluidInstance.app: “Photo Browser” added for iPhoto-like image browsing. Main Menu -> View -> Photo Browser (control-option-command-b)
  • FluidInstance.app: Preference to “Open new links from other Applications” in new tab or new window.
  • FluidInstance.app: “Create TinyURL” from context menu when you right click a link.
  • FluidInstance.app: “New Userscript” menu item creates a new Userscript template, places it in this SSB’s Userscripts dir, activates it, and opens it in your default text editor.
  • FluidInstance.app: JS API: fluid.dockBadge = “foo” - The dockBadge feature is now exposed as a read/write property of the fluid object, rather than a method. The method is deprecated, but will probably remain.
  • FluidInstance.app: JS API: fluid.hide() - Hide this SSB application. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.unhide() - Unhide this SSB application. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.activate() - Bring this SSB application to the front. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.terminate() - Quit this SSB application. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.include(pathStr) - Eval a local JavaScript file located at the given path. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.applicationPath - a string path to this SSB’s .app bundle directory (“/path/to/MySSB.app/”). Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.resourcePath - a string path to this SSB’s Resources directory (“/path/to/MySSB.app/Contents/Resources/”). Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.userscriptPath - a string path to this SSB’s Userscripts (“/Users/Mandy/Library/Application\ Support/Fluid/SSB/Campfire/Userscripts”) directory. Available only to local Userscripts.
  • FluidInstance.app: JS API: fluid.log(obj) - This method is now only available from Userscripts.

About this entry