Fixing Open Current File in Marked for BBEdit

's Avatar

dholschuh

24 Mar, 2012 02:35 AM

The Open Current File in Marked service that you supply with the Marked Bonus Pack wasn't working with BBEdit on my machine so I inserted a new line into the the AppleScript in the Service so it could correctly identify BBEdit:

...
else if frontApp is "TextEdit" then
    tell application frontApp to set f to path of document of window 1 as POSIX file
-- Inserted
else if frontApp is "BBEdit" then
    tell application frontApp to set f to file of document of window 1 as alias
-- Inserted
else
    tell application "System Events"
....

Now everything works great. Great app by the way!

Doug

  1. Support Staff 1 Posted by Brett on 24 Mar, 2012 12:23 PM

    Brett's Avatar

    great, thanks Doug!

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