Results 1 to 7 of 7

Thread: Automator Actions

  1. #1

    Default Automator Actions

    This is probably a big project, but I was wondering if we could have some automator actions. I know applescript and all, but sometimes making a workflow in automator is easier.

  2. #2

    Default

    Quote Originally Posted by cmoore View Post
    This is probably a big project, but I was wondering if we could have some automator actions.
    Could you give some examples of actions that you’d like to see?

  3. #3

    Default Some actions

    • Putting an incoming object into a specified folder in the library
    • If you had built-in ocr, ocr incoming pdf
    • Applying selected tags to an incoming item

    I know that you could do this with applescript, but it would be nice to take output from another application directly rather than use the to import folder, and then apply the above things. These are just some ideas

  4. #4

    Default

    Quote Originally Posted by cmoore View Post
    • Putting an incoming object into a specified folder in the library
    • If you had built-in ocr, ocr incoming pdf
    • Applying selected tags to an incoming item

    I know that you could do this with applescript, but it would be nice to take output from another application directly rather than use the to import folder, and then apply the above things. These are just some ideas
    I’d like to add some Automator actions, but I also want to point out that you can use EagleFiler from Automator via the “Run AppleScript” action. For example, to import into a particular folder and apply tags:

    Code:
    on run {_input, _parameters}
        tell application "EagleFiler"
            tell library document "EagleFilerTest.eflibrary"
                set _folder to library record "MyFolder" of root folder
                set _tags to {"unread", "from_automator"}
                import files _input container _folder tag names _tags
            end tell
        end tell
    end run
    To OCR and then import:

    Code:
    on run {_input, _parameters}
        tell application "EagleFiler"
            repeat with _file in _input
                my ocr(_file)
                tell library document "EagleFilerTest.eflibrary"
                    import files {_file}
                end tell
            end repeat
        end tell
    end run
    
    on ocr(_file)
        tell application "PDFpen"
            open _file as alias
            tell document 1
                ocr
                repeat while performing ocr
                    delay 1
                end repeat
                delay 1
                close with saving
            end tell
        end tell
    end ocr

  5. #5

    Default

    thanks for those scripts. I've had a brain storm. What do I need to change on those scripts to do a folder action. Especially the ocr to eaglefiler. The reason is my scanner does a lot but I can't seem to make it do anything but scan to a folder. The driver and app is not applescriptable. Replace the on run to the folder action handler for handling files?

    I understand if you don't want to get into an AppleScript tutorial here.

  6. #6

    Default

    Quote Originally Posted by cmoore View Post
    What do I need to change on those scripts to do a folder action. Especially the ocr to eaglefiler. The reason is my scanner does a lot but I can't seem to make it do anything but scan to a folder. The driver and app is not applescriptable. Replace the on run to the folder action handler for handling files?
    I think that would be sufficient. I’ve added such a handler here.

  7. #7

    Default

    that's what I thought would be needed. You didn't have to do that, but thanks anyway. More of a C, C++, Java programming teacher here. Just Getting used to Applescript.

Similar Threads

  1. Replies: 3
    Last Post: 02-29-2008, 04:15 PM
  2. Folder Actions
    By wjshack in forum EagleFiler
    Replies: 4
    Last Post: 05-30-2007, 12:21 PM
  3. Replies: 2
    Last Post: 04-29-2007, 02:29 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
  •