SiteTagger can be enhanced by using applescript-based plugins. Currently, these plugins are used to provide rollover actions to the items in the bookmark editing sheet.
Plugins can be installed in ~/Library/Application Support/SiteTagger/Plugins/. These plugins should be normal .scpt files. If the folder does not exist, go ahead and create it. After moving a plugin to this location, quit and relaunch SiteTagger for the changes to take effect.
Plugins are normal applescript files and can be created using an application such as Script Editor (located in /Applications/AppleScript/). SiteTagger references these files using set handlers. More information about these handlers can be found in SiteTagger’s scripting dictionary (drag the SiteTagger application bundle onto Script Editor to view). The text to a simple example plugin follows.
(* This line is necessary *)
using terms from application "SiteTagger"
(*
SiteTagger calls this to figure out when to call this plugin.
This plugin will be called for the contextual menu for the "title" attribute in the bookmark editing sheet.
A full list of properties is available in SiteTagger's scripting dictionary.
*)
on action property
return "title"
end action property
(*
Returns whether or not this plugin should be available for the given bookmark.
'bkmk' represents the selected bookmark. 'value' is the value of the current property. For this example, it would be the 'title' attribute of the current bookmark.
*)
on action enable for bkmk with value
return true
end action enable
(* This will return the title that will be used in the contextual menu. *)
on action title for bkmk with value
return "action title: " & value
end action title
(*
If the menu item representing this bookmark is selected, this handler will be called.
This is a simple method that displays the given value (here, the "title" attribute of the selected bookmark).
*)
on action perform for bkmk with value
display dialog value
end action perform
end using terms from