Hi Mark,
You can get the event 'summary' (Calendar dictionary term) by ui scripting the alert window in Notification Center.
You might be able to get it from the temporary file created whose reference is passed as a parameter to the run handler of the Calendar workflow script. Although I haven't tried looking at this temporary file yet. Here's an example of getting the passed parameters:
on run {input, parameters}
(* Your script goes here *)
display dialog "It works!"
--set c to class of parameters
--set c to (count input)
--display dialog (c as string)
tell application "Finder"
activate
set the clipboard to parameters
end tell
activate me
return input
end run
After the parameters are sent to the clipboard, you can get them with this from the Script Editor:
--set r to {a:1, b:2, c:3}
tell application "Finder"
activate
--set the clipboard to ""
set c to the clipboard
end tell
list of c
--
The result is something like this:
{"temporary items path", "/var/folders/r9/0t1l8pd17kd1275j1dwnbrdw0000gn/T/572D6A11-9937-4EB9-82AA-1DCBC CDE4AF3/1/com.apple.Automator.RunScript", "ignoresInput", false, "source", "on run {input, parameters}
(* Your script goes here *)
display dialog \"It works!\"
--set c to class of parameters
--set c to (count input)
--display dialog (c as string)
tell application \"Finder\"
activate
set the clipboard to parameters
end tell
activate me
return input
end run", "action", item id 1 of application "Finder"}
I wonder what is in that file? A simple read of that file might work.
gl,