Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: Open Path...

$
0
0
Having a single action that allows me to point anywhere is the natural way to go about this. Like I said it's a bit strange there's nothing allowing me to point anywhere in the Finder.

I don't quite understand what this means. What kind of behaviour do you want?

Here are a couple of ideas:

on handle_string(theString)
   tell application "Finder"
      activate
      make new Finder window
      set target of front window to (POSIX file theString)
   end tell
end handle_string


1. Bring up this script in LB.
2. Press space
3. Enter the path like "/users/rich/library/preferences/"
4. Press return
Result: A new Finder window will open revealing the item in that path.


on handle_string(theString)
   tell application "LaunchBar"
      remain active
      set selection to (POSIX file theString) as alias
   end tell
end handle_string

1. Bring up this script in LB.
2. Press space
3. Enter the path like "/users/rich/library/preferences/"
4. Press return
Result: LB will show you the item

Am I on the right path?

Viewing all articles
Browse latest Browse all 4524

Trending Articles