Make OpenInMarked.scpt work with nvALT while full screen

n8henrie's Avatar

n8henrie

18 Jan, 2013 08:04 PM

While writing in nvALT, I use Quicksilver to run your OpenInMarked.scpt, which works great most of the time. However, I noticed that it fails if nvALT is running full screen, which I do a lot.

Found a simple fix. Change

-- Grab the text in the search field, hopefully this will be the filename
set p to value of text field 1 of group 1 of tool bar 1 of window 1

to

-- Grab the text in the search field, hopefully this will be the filename
try
    set p to value of text field 1 of group 1 of tool bar 1 of window 1
end try
try
    set p to value of text field 1 of group 1 of tool bar 1 of group 1 of window 1
end try

and it works fine in both regular and full screen mode (the attempt to set p for the other mode fails gracefully). Figured this would be an easy couple of lines to put in, and no real downside.

Thanks for a great couple of apps!

  1. Support Staff 1 Posted by Brett on 18 Jan, 2013 08:54 PM

    Brett's Avatar

    Thanks, I'll test it out!

    The next version of Marked actually automates this for you. Coming soon.

    -Brett

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