Results 1 to 4 of 4

Thread: Running scripts using Launchbar?

  1. #1

    Default Running scripts using Launchbar?

    I am not sure whether it would be possible, and, if so, how. My scenario would be:

    I select a file in EagleFiler -> Send it to LaunchBar -> Run an AppleScript, e.g. change title to file name

    I tried but no success. Any workaround?

    Thanks,
    SL

  2. #2

    Default

    Quote Originally Posted by sooinlee1 View Post
    I am not sure whether it would be possible, and, if so, how. My scenario would be:

    I select a file in EagleFiler -> Send it to LaunchBar -> Run an AppleScript, e.g. change title to file name

    I tried but no success. Any workaround?
    You can do something like this:

    tell application "EagleFiler"
    set selectedRecords to (get front browser window's selected records)
    set selectedRecord to item 1 of selectedRecords
    get selectedRecord's file as alias

    then you have a file you can work with in your script.

  3. #3

    Default

    Quote Originally Posted by sooinlee1 View Post
    I select a file in EagleFiler -> Send it to LaunchBar -> Run an AppleScript, e.g. change title to file name
    When you use LaunchBar to send files to a script, it expects a script that has an open handler to receive the files. Most of the sample EagleFiler scripts do not have open handlers because they are designed to operate on the selected records of the frontmost window. To run this kind of script with LaunchBar, you can simply press the LaunchBar shortcut, type the name of the script, and press Return.

  4. #4

    Default

    @nriley, thank you for the reply that, along with Michael's, helps me to understand how EagleFiler works .

    @Michael, it simply works! Thanks.

Similar Threads

  1. Scripts for duplicates in EF
    By Paul Davis in forum EagleFiler
    Replies: 2
    Last Post: 02-12-2013, 07:20 PM
  2. Importing note via Launchbar & script
    By jas in forum EagleFiler
    Replies: 5
    Last Post: 11-23-2010, 07:04 PM
  3. Replies: 5
    Last Post: 11-23-2010, 06:16 PM
  4. Replies: 5
    Last Post: 06-29-2010, 03:21 PM
  5. scripts 101
    By CTS in forum EagleFiler
    Replies: 2
    Last Post: 05-21-2010, 05:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •