[OMC] Issues with output display again....

OnMyCommand discussion omc at abracode.com
Fri Dec 11 20:33:52 PST 2009


Sorry for delay in response. Crazy

Sent from my iPhone

On Dec 6, 2009, at 5:09 AM, OnMyCommand discussion <omc at abracode.com>  
wrote:

> Hi,
>
> Sorry to rehash this. I'm having trouble getting the output from  
> this command to display in an output window.
>
> It seems to output fine in the Terminal but when using a popen with  
> Output Window execution method I get nothing. Escaping issues again?  
> Redirecting output (2>&1)??
>
> Any insight would be helpful.
>
> Thanks.
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd 
> ">
> <plist version="1.0">
> <dict>
>    <key>COMMAND_LIST</key>
>    <array>
>        <dict>
>            <key>ACTIVATION_MODE</key>
>            <string>act_always</string>
>            <key>CATEGORIES</key>
>            <array>
>                <string>Tag</string>
>                <string>Metadata</string>
>            </array>
>            <key>COMMAND</key>
>            <array>
>                <string>action=$(/bin/echo -n </string>
>                <string>__DLG_INPUT_TEXT__</string>
>                <string> | cut -c 1-4)
> values=$(/bin/echo -n </string>
>                <string>__DLG_INPUT_TEXT__</string>
>                <string> | sed 's/'$action'//')
>
> if [ $action = lst ] ; then
>    openmeta $values "</string>
>                <string>__OBJ_PATH__</string>
>                <string>" | grep "tags" | sed 's/tags: //'
> elif [ $action = clr ] ; then
>    openmeta $values "</string>
>                <string>__OBJ_PATH__</string>
>                <string>"
> fi</string>
>            </array>
>            <key>ESCAPE_SPECIAL_CHARS</key>
>            <string>esc_none</string>
>            <key>EXECUTION_MODE</key>
>            <string>exe_popen_with_output_window</string>
>            <key>INPUT_DIALOG</key>
>            <dict>
>                <key>DEFAULT</key>
>                <string>List Tags</string>
>                <key>INPUT_MENU</key>
>                <array>
>                    <dict>
>                        <key>NAME</key>
>                        <string>List Items Tags</string>
>                        <key>VALUE</key>
>                        <string>lst -p</string>
>                    </dict>
>                    <dict>
>                        <key>NAME</key>
>                        <string>Clear Items Tags</string>
>                        <key>VALUE</key>
>                        <string>clr -s -p</string>
>                    </dict>
>                </array>
>                <key>INPUT_TYPE</key>
>                <string>input_popup_menu</string>
>                <key>MESSAGE</key>
>                <string>Select option:</string>
>            </dict>
>            <key>MULTIPLE_OBJECT_SETTINGS</key>
>            <dict>
>                <key>PREFIX</key>
>                <string></string>
>                <key>PROCESSING_MODE</key>
>                <string>proc_together</string>
>                <key>SEPARATOR</key>
>                <string> </string>
>                <key>SEPERATOR</key>
>                <string></string>
>                <key>SORT_METHOD</key>
>                <string>sort_none</string>
>                <key>SUFFIX</key>
>                <string></string>
>            </dict>
>            <key>NAME</key>
>            <array>
>                <string>MetaTag Tools (openmeta)</string>
>            </array>
>            <key>NOTES</key>
>            <string>openmeta version 0.1 by Tom Andersen code.google.com/p/openmeta/
>
> Usage: openmeta [options] -p PATH[s]
>
> Note that commas are to be used nowhere - tag lists use quotes for  
> two word tags in output
>
> example (list tags and ratings):  openmeta -p PATH
> example (list tags and ratings multiple):  openmeta -p PATH PATH
> example (list tags): openmeta -t -p PATH[s]
> example (add tags): openmeta -a foo bar -p PATH[s]
> example (add tags with spaces): openmeta -a "three word tag" "foo  
> bar" -p PATH[s]
> example (set tags):  openmeta -s foo bar -p PATH[s]
> example (clear all tags):  openmeta -s -p PATH[s]
> example (set managed):  openmeta -m Y -p PATH[s]
> example (set rating 0 - 5 stars):  openmeta -r 3.5 -p PATH[s]
> example (print rating):  openmeta -r -p PATH[s]
> example (clear rating):  openmeta -r 0.0 -p PATH[s]
> example (lousy rating):  openmeta -r 0.1 -p PATH[s]
>
>
> openmeta __DLG_INPUT_TEXT__ "__OBJ_PATH__" | grep "tags" | sed 's/ 
> tags: //'</string>
>            <key>OUTPUT_WINDOW_SETTINGS</key>
>            <dict>
>                <key>AUTO_CLOSE_ON_SUCCESS_ONLY</key>
>                <true/>
>                <key>AUTO_CLOSE_TIMEOUT</key>
>                <real>-1</real>
>                <key>BACKGROUND_COLOR</key>
>                <string>FFFFFF</string>
>                <key>TEXT_COLOR</key>
>                <string>000000</string>
>                <key>TEXT_FONT</key>
>                <string>Monaco</string>
>                <key>TEXT_SIZE</key>
>                <integer>10</integer>
>                <key>WINDOW_ALPHA</key>
>                <real>1</real>
>                <key>WINDOW_CLOSE_FADE_OUT</key>
>                <false/>
>                <key>WINDOW_HEIGHT</key>
>                <integer>200</integer>
>                <key>WINDOW_OPEN_FADE_IN</key>
>                <false/>
>                <key>WINDOW_POSITION</key>
>                <string>alert</string>
>                <key>WINDOW_TITLE</key>
>                <string>Tags List</string>
>                <key>WINDOW_TYPE</key>
>                <string>floating</string>
>                <key>WINDOW_WIDTH</key>
>                <integer>400</integer>
>            </dict>
>            <key>SUBMENU_NAME</key>
>            <string>System/Labels</string>
>            <key>VERSION</key>
>            <integer>1</integer>
>        </dict>
>    </array>
>    <key>VERSION</key>
>    <integer>2</integer>
> </dict>
> </plist>
>
>
>
>
> _______________________________________________
> OMC mailing list
> OMC at abracode.com
> http://abracode.com/mailman/listinfo/omc_abracode.com



More information about the OMC mailing list