Like many of From Concentrate Software’s applications, SiteTagger is applescriptable. This page describes some of the classes, attributes, and commands that SiteTagger makes available to scripters.
title - The title of the bookmark. Required.uri - The URL of the bookmark. Required.notes - Notes about the bookmark. Optional.tags - The tags associated with the bookmark. Optional but recommended.sync with browsers and SiteTagger will show the sync window and start the process.
sync with browsers, SiteTagger can synchronize its bookmarks with del.icio.us, Furl, and ma.gnolia. Invoking this command will show the sync window and start synchronizing SiteTagger with all available accounts.
associate command provides a mechanism for relating bookmarks and services. After being associated, bookmarks will be considered whenever syncing with a service happens.
tell application "SiteTagger"
set l to online services
set os to last item of l
set b to first bookmark
associate bookmark b with online service os
end
tell application "SiteTagger"
set l to online services
set os to last item of l
set b to first bookmark
disassociate bookmark b from online service os
end
tell application "SiteTagger"
set x to bookmarks sorted by date count 10
end
run script command. Here’s a simple example using the Python scripting plugin:
#!/usr/bin/env python
# Saved to ~/Desktop/reverse.py
selectedBookmark.setTitle_(selectedBookmark.title().reverse())
-- Applescript
run script at path "~/Desktop/reverse.py"
set every_bookmark to every bookmark, but that isn’t recommended. If you wanted to access a certain bookmark, you can use set bk to bookmark 1. You can also use the command get selected bookmark to access the bookmark that is currently selected in SiteTagger.
set n to name of bookmark bk; set name of bookmark bk to n).
name - The name of the bookmark.title - Also the name of the bookmark. Internally, applescript uses the “name” attributed which is related to the “title” attribute in SiteTagger.uri - The URI of the bookmark.tags - The tags of the bookmark.notes - The notes of the bookmark.date added - The date that the bookmark was added to SiteTagger.date modified - The last date that the bookmark was changed.page content - The content of the webpage to which the bookmark points. Only has content if page data has been received by SiteTagger.rating - The rating of the bookmark measured 0 trough 5.unique id - A string that represents the unique identifier of the bookmark.