Activate F11 key in X11 with applescript
My work only does dictations in the olympus proprietary *.dss files - which i thought express scribe for mac was able to use, as in the PC version, but it doesn't. So I have decided to run Darwine and X11 to run the Express Scribe PC version.( www.nch.com.au/scribe ) It works totally fine, loads the files and plays them, apart from I cannot use the function keys to control it when in Word which is very frustrating.
So I am trying to write an applescript and redirecting a System wide all applications hotkey using the application Spark. So what I need is to tell the X11 application to press F9 for play when the applescript is activated - but not to activate expose. And obviously another two applescripts to press F7 for fastforward and F8 for rewind and F4 for stop.
When trying to write the applescript:
Tell Application "X11" to key code 101
which is what I got from google, it says syntax error, A identifier can’t go after this property.
Please help i'm quite desperate
Macbook pro 15" 2007 model, Mac OS X (10.6.1)