Applescript float window

Matt's Avatar

Matt

01 Apr, 2012 06:11 PM

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.

  1. Support Staff 1 Posted by Brett on 07 Apr, 2012 02:13 PM

    Brett's Avatar

    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.

  2. Support Staff 2 Posted by Brett on 07 Apr, 2012 02:13 PM

    Brett's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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