local v = hs.canvas.new{x = 0, y = 0, w = 90, h = 90 }
-- Add a black background:
frame = { h = "100%", w = "100%", x = 0, y = 0 },
fillColor = { alpha = 1, red = 0, green = 0, blue = 0 },
-- Write the first Keyword from the FCPX Preferences file:
local keywords = cp.apple.finalcutpro.preferences.FFKeywordGroups
local keywordOne = keywords and keywords[1] and keywords[1][1] or ""
frame = { h = "100%", w = "100%", x = 0, y = 0 },
text = "\n\n" .. keywordOne,
textAlignment = "center",
textColor = { white = 1.0 },
-- Convert the Canvas into an icon:
local icon = v:imageFromCanvas()