Applescript float window
Hi, I've been trying to use Applescript to float Marked so that it stays on top of other windowns, but I have not been able to get it working. Is there a code sample that you could provide? I am not an Applescript expert, and my first approach was to look in the dictionary. When I saw that there was a window property called floating, I tried setting that to true in my script. When that didn't work, I also tried telling window 1 "keystroke "f" using {shift down, command down}"
Thanks for any help / suggestions.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 07 Apr, 2012 02:13 PM
Sorry for the delayed response. There's no easy way to hit that button, but you should be able to hit command shift f when the window is foreground, as you tried. Did you activate Marked before running that command? I don't think system events will allow you to "tell window", you probably need to "tell Marked to activate" then "tell System Events to keystroke...". Let me know if that helps.
Support Staff 2 Posted by Brett on 07 Apr, 2012 02:13 PM
By the way, I do plan to expand the AppleScript dictionary for the next version, and I'll be sure to include a command to make that easier.