Currently Being ModeratedNov 27, 2012 11:36 PM (in response to kap_australia)
do I understand it correctly that you want to close the EyeTV window, but not close the app by using the COMMAND_W?
In the script, you are setting the command in the block where you are launching EyeTV, shouldn't it be in the block below where you tell FInder to hide EyeTV?
Currently Being ModeratedNov 27, 2012 11:42 PM (in response to Jiri Krecek)
Yes you understand correctlyt, all I want to do is close the eye tv window with command w. If i place the script "keystroke "w" using command down" in the block telling application finder, it give me a compile error.....expected end of line but found indentifier.
Currently Being ModeratedNov 28, 2012 3:51 AM (in response to kap_australia)
if application "EyeTV" is running then
tell application "System Events"
tell process "EyeTV"
set visible to true
set frontmost to true
keystroke "W" using command down
set visible to false
tell application "XBMC"
your use of tell blocks was overly complex.
Currently Being ModeratedNov 28, 2012 6:57 AM (in response to kap_australia)
I have written this script but for some reason the like keystroke command w does not work
This does not work because the "W" is a uppercase character, you must use a lowercase character
This will work:
keystroke "w" using command down