//Hello! Finds any text that has been given a Skew of anything other than 0°, and marks it up in bold and red.
//Useful for: A lot of the older Veloce books seem to use a STAGGERING variety of skew degrees in the same book, which makes it very painful to search for when making the eBook. This makes them all nice and visible in one go.

var doc = app.activeDocument;

if (app.activeDocument.swatches.itemByName("SkewHighlight").isValid) {
	var highlightColour = app.activeDocument.swatches.itemByName("SkewHighlight");
} else {
	var highlightColour = doc.colors.add();
	highlightColour.colorValue = [0,100,100,0];
	highlightColour.name = "SkewHighlight";
}
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;  
app.findTextPreferences.skew = 0;  
app.changeTextPreferences.strikeThru = true;  
app.activeDocument.changeText();
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;   
app.findTextPreferences.strikeThru = false;
app.changeTextPreferences.fontStyle = "Bold";
app.changeTextPreferences.skew = 12;
app.changeTextPreferences.fillColor = highlightColour;
app.activeDocument.changeText();
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.fontStyle = "Italic";
app.changeTextPreferences.fontStyle = "Bold";
app.changeTextPreferences.skew = 12;
app.changeTextPreferences.fillColor = highlightColour;
app.activeDocument.changeText();
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.strikeThru = true;
app.changeTextPreferences.strikeThru = false;  
app.activeDocument.changeText();
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;