Can you add the Category IDs to the JavaScript interface??
From the AppleScript Dictionary:
primary category id (integer) : Its primary category id.
secondary category id (integer) : Its secondary category id.
primary store category id (integer, number, or text) : Its primary store category id.
secondary store category id (integer, number, or text) : Its secondary store category id.
Thanx,
Neal