ive got an applescript which is used to get the program info from eyetv. What i want is just the short description. which is put into a variable in indigo. But i cant get just that part when i run the script.
perhaps someone can help me on my way on how to just extract one part of a outputted list in applescript.
- Code: Select all
tell application "eyetv"
if playing then
get program info of player_window playing
end if
end tell
output is this:
{currentShow:{startTime:date "Monday, October 15, 2012 5:05:00 PM", endTime:date "Monday, October 15, 2012 5:35:00 PM", title:"The king of Queens", shortDescription:"Amerikaanse comedyserie met Kevin James, Leah Remini, Jerry Stiller en anderen. De perikelen van Doug Heffernan, zijn vrouw Carrie en zijn schoonvader. Afl.: Bun dummy. "}, nextShow:{startTime:date "Monday, October 15, 2012 5:35:00 PM", endTime:date "Monday, October 15, 2012 6:05:00 PM", title:"Unhappily ever after", shortDescription:"Amerikaanse comedyserie met Geoff Pierson, Kevin Connolly, Nikki Cox en anderen. Afl.: Teacher's pet. Tiffany en Ryan ontvangen de resultaten van hun beroepskeuzetest. Tiffany is teleurgesteld met haar uitkomst; "}}
what i want is the 'shortdescription' part.
i hope someone has a clue for me, the internet has not been nice last week in helping me to find how to do this.
HenkJan