Need Table Script Help Please

Is there a script to distribute table columns evenly between guides or margins? Here is the issue I am having. I have a big catalog and I need to take the price column out of every item but then i have to (shift-Drag) the table to get it to fill the space where the price column was.
Thanks in advance for any help.

Hello. Thank you for your reply. I don't think i asked me question clearly so for that I apologize but I have mage an image to illustrate what I am trying to do.
1. This is that the table would look like before touching it
2. This is the table after taking out the price column which is always the last column in all of the tables
3. This is the table after evenly distributing the remaining column to fill the space where the price column was.
I have a script that does step 2, now I just need one that will do step 3 if possible? Basically I have a script that deletes the last column in every table in a document but I need one to distribute the columns after taking out the price one.
Thanks in advance for any help you can give me.

Similar Messages

  • Need a little help please    Airport Express

    Need a little help please.
    I am trying to set up a wireless network at my home using Airport Express.
    I have a regular phone line running in to I assume the modem. From there, there is an Ethernet cable running from that box to the back of the PC. My question is, I think, which of those do I unplug and plug into the Airport Express, the one on the back of the PC or the one that is in the back of the modem, or is this totally wrong.
    Any help would be appreciated…
    Thanks
    In advance…
    PS I have the manual but to me it is not very clear…

    Your connection sequence would look like this:
    Internet > Modem > AirPort Express >>>wireless to your computers.
    This means that you would unplug the cable that is now connected at the back of your PC and move that connection to the AirPort Express.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Continue to follow the guided setup. On the third page, you will choose the option to "Create a wireless network" and continue the setup.

  • Gallery script help, please

    Gallery script help, please
    Hello,
    I'm new to actionscript in general, I do know a little...
    I foung a gallery script, modified many things, the images
    open fine, everything is working, but here's the thing:
    the gallery is in 3 sections, red, blue and yellow.
    I would like to know how, what, and where to put a script so
    that if a "the small red image #1" is clicked, I can load any sort
    of a movie on top of the "the BIG red image #1" or #2 or 3 and so
    on...same goes for the blue and yellow...
    If I figured things correctly on my own...the small thumbnail
    images of the gallery are not buttons, that's why I can't attach a
    movie (let's say) to them...but it is all written in script, using
    the horizontal and vertical position of the mouse to open the large
    images of the gallery...
    So, I don't know how to figure things out, to attach a
    specific movie to a specific thumbnail...
    p.s.: I think the script that controls the gallery is in
    symbol 120
    I really would appreciate the help
    Merry Christmas in advance to everyone
    Sandra
    here are all the files...
    http://www.gentro.ca/sandra_test.zip

    There's a great tutorial on kirupa...
    click
    here for link

  • Trying to install windows 7, installation disc won't eject when it needs to. Help please?!?!?!

    When setting up bootcamp I install windows 7, it then asks me to eject the installation disc to continue the installation but at this point the disc will NOT eject. Help please?!?!?!
    If I cancel the installation it'll eject the disc but it is at this point that I need to in order to continue and it just won't eject. I've tried the eject button, cmd E, starting again but I don't seem to be getting anywhere :s

    Sorry I'm a little late, my e-mail notifications died, I was wondering why it was so quiet. Here I thought I was getting better at this.
    Have you tried the USB thumb drive W7 installer way? I know 10.7 has an option now for installing a W7 installer iso onto a USB thumb drive but I don't know if 10.6 does. Search Google/yahoo for more information. Basically just make an iso of the W7 installer and copy it to the USB drive and it will boot via USB.
    At least I think yours can? Not sure which models work.
    Have you tried one of those CD disk cleaners? I bought one years ago and worked like a charm. (if it's dirty) It has a row of real fine bristles.
    Other then that you may have a dying drive?
    As far as games, make sure they are updated to run W7, other then that, that's Windows for ya.....

  • Firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • SQL script help please - creating 'batches' of rows in a table

    I have a table, ADAM_TEST1, that contains just 1 column - AMOUNT:
    SQL> desc adam_test1;
    Name Null? Type
    AMOUNT NUMBER(12)
    ..I have 5000 rows in this table.
    I need to insert rows into another table, ADAM_TEST, which contains these values but also assign each item a unique item_number and a batch_id for every 1000 rows.
    SQL> desc adam_test;
    Name Null? Type
    BATCH_ID NUMBER(4)
    ITEM_NUMBER NUMBER(4)
    AMOUNT NUMBER(4)
    e.g. BATCH_ID 1 will contain 1000 rows with the amounts from ADAM_TEST1 with item_numbers of 1-1000, then BATCH_ID 2 with the next 1000 rows with item numbers 1-1000 etc ...
    I can populate the table with 1 batch_id and use a sequence to number them all but I'm having problems splitting them into their batches and resetting the sequence after each batch_id increment.
    Some help here would be great!
    Thanks,
    Adam

    technoarcanum wrote:
    Here's another way of doing it in a single SQL statement.
    Run this and you'll see I've batched my test data up into batches of 10:
    insert into test_109 select col_1
    ,row_number() over (order by col_1)
    ,ceil(row_number() over (order by col_1)/10)
    from test_108;
    select * from test_109;Unfortunately that doesn't reset the item number for each batch..
    SQL> ed
    Wrote file afiedt.buf
      1  select empno
      2        ,row_number() over (order by empno)
      3        ,ceil(row_number() over (order by empno)/10)
      4* from emp
    SQL> /
         EMPNO ROW_NUMBER()OVER(ORDERBYEMPNO) CEIL(ROW_NUMBER()OVER(ORDERBYEMPNO)/10)
          7369                              1                                       1
          7499                              2                                       1
          7521                              3                                       1
          7566                              4                                       1
          7654                              5                                       1
          7698                              6                                       1
          7782                              7                                       1
          7788                              8                                       1
          7839                              9                                       1
          7844                             10                                       1
          7876                             11                                       2
          7900                             12                                       2
          7902                             13                                       2
          7934                             14                                       2
    14 rows selected.
    SQL>Instead you need to MOD it...
    SQL> ed
    Wrote file afiedt.buf
      1  select empno
      2        ,mod(row_number() over (order by empno)-1,10)+1
      3        ,ceil(row_number() over (order by empno)/10)
      4* from emp
    SQL> /
         EMPNO MOD(ROW_NUMBER()OVER(ORDERBYEMPNO)-1,10)+1 CEIL(ROW_NUMBER()OVER(ORDERBYEMPNO)/10)
          7369                                          1                                       1
          7499                                          2                                       1
          7521                                          3                                       1
          7566                                          4                                       1
          7654                                          5                                       1
          7698                                          6                                       1
          7782                                          7                                       1
          7788                                          8                                       1
          7839                                          9                                       1
          7844                                         10                                       1
          7876                                          1                                       2
          7900                                          2                                       2
          7902                                          3                                       2
          7934                                          4                                       2
    14 rows selected.
    SQL>

  • Script Help please. Need to save as different filetype.

    I have a script that is currently saving files as jpgs.  I need it to save as a png.  Would someone be able to help me with this?
    var doc = app.activeDocument;
    var Path = doc.path; 
    var Name = doc.name.replace(/\.[^\.]+$/, ''); var Suffix = "_full_l"; var saveFile = File(Path + "/" + "full_l" + ".jpg"); SaveJPEG(saveFile, 8); 
    function SaveJPEG(saveFile, jpegQuality){ jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = jpegQuality; activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE); }

    Here you are...
    var doc = app.activeDocument;
    var Path = doc.path;
    var Name = doc.name.replace(/\.[^\.]+$/, '');
    var Suffix = "_full_l";
    var saveFile = File(Path + "/" + "full_l" + ".png");
    SavePNG(saveFile);
    function SavePNG(saveFile){
        pngSaveOptions = new PNGSaveOptions();
        pngSaveOptions.embedColorProfile = true;
        pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
        pngSaveOptions.matte = MatteType.NONE;
        pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false;
        pngSaveOptions.transparency = true;
    activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);

  • Need Scripting Help PLEASE

    Hi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
                        1. Techn outage
                        2.  Holidays
                        3.  Inclement Weather
                        4.  Emergency
                        0. Default Greeting    
    This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day.  So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script  and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in.  How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time?  I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
    james

    Hi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
                        1. Techn outage
                        2.  Holidays
                        3.  Inclement Weather
                        4.  Emergency
                        0. Default Greeting    
    This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day.  So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script  and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in.  How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time?  I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
    james

  • In need of advice&help PLEASE.

    I'm not sure how long this is going to be, so please bear with me.
    [I apologize if this question has been asked already].
    I'm having major problems with my first gen. ipod nano.
    I've had it since March 2006 [roughly], and it started failing me around Oct-Nov of 07. I had completely drained it and then left it uncharged for about a month-ish or so. I finally decided to charge it and when I did, I noticed that the Apple logo kept flashing and wouldn't stop, even when I unplugged it from my computer. After many failed attempts, I decided to do a restore, so everything on it erased.
    Now, before I proceed [I don't know if this is going to be helpful or not...but just in case]:
    I have a Windows XP, and an old USB port. The like...1.0 or 1.1? version.
    Something along those lines. I haven't got anywhere on this computer a USB 2.0 port. When I restored my ipod I also downloaded the latest version of iTunes-- before, I had been running on a really old version, one from 2006. After I restored my iPod, I didn't see anywhere a pop-up or whatever asking me to rename my iPod. So now, when I try plugging in my iPod, my computer recognizes that I've plugged something in, and so does my iTunes, and it opens. However, my songs won't bloody sync! Is it because my iPod doesn't have an "owner" so to speak? Or is it because I have a new ITunes version but an old USB port? Could it be a combination of the 3? Mind you, I think I may have the ITunes 7.5 version or something. Today I tried my iPod again and it asked me if I wanted to download the 7.6 version. Just to give you a hint of what iTunes version I have.
    I'm sorry if I come across a bit rude or impatient; this whole iPod thing has been driving me crazy. Pardon the length of the post as well.
    One more question though: if nothing works, can I take my iPod to an Apple technician or...do I just need to get a new one?
    I realllly hope someone can help me with all this! Thank you =)
    ...Oh! One more thing. How do I rename my iPod? I don't have a clue as to what to click.

    *How do I rename my iPod? I don't have a clue as to what to click*
    Connect your iPod to your computer
    When (or if, considering the problems you are having) it appears in the iTunes source list click on it's name once to highlight it
    Click on it's its name again.
    The text box will open for editing.
    Type a new name.
    Have a look here for more: How To Rename your iPod

  • Photoshop Elements 7:  Newbie Needs Drop Shadow Help, Please

    Hello.
    I'm brand new to Adobe Photoshop Elements 7 and need help with the Drop Shadow feature, please.
    I've read the documentation, but it's not crystal clear to me, so maybe someone can guide me through it.
    I want to create text on a blank white canvas, and add a little bit of drop shadow to it. That's all I want to do--plain and simple.
    I can create the text, but I can't for the life of me find any drop shadow options.
    The documentation I'm using is the on-line, web-based help. I type in Drop Shadow in Search, and select Add Text to a Slide.
    The third step says, "In the Properties palette, set any of the following options" and then offers some options, including Drop Shadow and Drop Shadow Color.
    I'll be darned if I can locate the Properties palette. Obviously, I'm not well-versed with Photoshop, so if anyone can just steer me towards this feature, I'll take things from there.
    I know this is probably rock-bottom basic, but I'm stumped. Thank you!
    J. Danniel

    I need a lot more help with this than I thought.
    The problem I'm having is this: After creating the drop shadow effect, when I try to save the image as a transparent GIF, it quite simply.... looks horrible.
    Here is what I'm doing in detail:
    1. New/Blank File.
    2. Blank File is set to transparent. (Is this the right way to make a transparent GIF?)
    3. Creating text.
    4. Cropping text.
    5. Selecting drop shadow effect.
    Now, here's where I get confused. Do I just select File/Save As, or File/Save For Web?
    When I just use File/Save As, and select the GIF format, the drop shadow effect in the final file looks horrible when I embed the image into a web page. The text looks good, and the file is transparent, but the effect is ugly.
    When I try to use Save for Web, there is a Before/After screen. The Before side looks decent; the After screen looks horrible, too.
    So, now I don't know what to do. Can you or anyone guide me through this a bit further, please? Thank you! Jd

  • Beachball - need to shutdown - help please

    Help. It's happened again and I'm embarassed to admit that I only have just over 10% free drive space.
    I was running VPC and inserted a USB diskette drive and now I've had a beach ball revolving for over an hour. I'd like to safely shut-down. The system clock has stopped.
    I have entered expose mode and can see several Safari windows, 2 Mail Windows, a Windows Excel window (running when I inserted the USB) and a VPC window. I can select any Mac application just by clicking the window and it shows me the control bar at the top of screen. However, I cannot get a cursor to access the controls.
    Pressing command - option - escape will not close any applications.
    I'm not sure what this will do to my open VPC image if I press the off switch.
    Any suggestions please?

    I've re-opened this thread, as the topic is similar.
    I cannot believe how instable my system is. I switched to Mac to get a reliable system, but I cannot do without Windows entirely, hence my heavy use of VPC.
    Today I got the small grey screen "You need to restart your computer". I was running VPC at the time. All apps were closed except Windows Explorer (the file system). The cause was merely unplugging my broadband connection. Wow!
    On rebooting VPC I got:
    "One of the specified disk images could not be opened. The disk image file is not the correct file type or uses a file format that is unsupported by this version of Virtual PC."
    I "detached" my "drives" 2+3, which were pointing to my Drive2.vhdp and Drive3.vhdp data "drives" and tried again. No luck.
    Drive 1 was pointing to Disk1.vhdp, which is a part of my Windows 2000.vpc package. I don't believe that it was pointing there before the crash.
    # side note #
    (The Windows 2000.vpc package is an old installation that I don't use but have not deleted. I currently use one called: "Windows 2000 copy 1-011105") which might or might not be a copy of "Windows 2000.vpc." I've had so many problems, it's hard to say.
    I then tried and successfully detached the Disk1.vhdp and received a warning:
    The hard drive data previously used by Drive 1 is no longer contained in this PC document. The data has been moved to a separate Virtual Hard Drive Document "Windows 2000 copy 1-011105 Disk1.vhdp".
    On examining the above package I find:
    BaseDrive.vhd 14.45GB (size about right) dated last night when I last closed VPC
    MainPackageFile Alias
    UndoDrive1.vud dated at the time of the problems.
    On examining my "Windows 2000 copy 1-011105.vpc7 I find:
    Configuration.plist
    IconCache
    MainPackageFile Alias
    StartMenu.plist
    Do you have a suggestion as to how I can rescue my above mentioned BaseDrive.vhd please? This is more recent than my last back-up.
    Many thanks in advance.

  • Wmii/dash scripting help please

    So heres the thing, I pretty much suck at scripting .
    I get by in tiling wm's simply by observing, modifying, and eventually learning through trial and error.
    So Ive been playing around with wmii lately and Ive hacked up my wmiirc to do what I want as best I can with what limited knowledge I have, but I need more.
    First problem, Im trying to make wmii have custom tag titles while still using alt + 0-9 instead of using alt + t and typing the title every time.
    heres what I did to achieve this
    # for i in 0 1 2 3 4 5 6 7 8 9; do
    # cat <<!
    #Key $MODKEY-$i # Move to the numbered view
    # wmiir xwrite /ctl view "$i"
    #Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
    # wmiir xwrite /client/sel/tags "$i"
    # done
    Key $MODKEY-1
    wmiir xwrite /ctl view "web"
    Key $MODKEY-Shift-1
    wmiir xwrite /client/sel/tags "web"
    Key $MODKEY-2
    wmiir xwrite /ctl view "ctrl"
    Key $MODKEY-Shift-2
    wmiir xwrite /client/sel/tags "ctrl"
    Key $MODKEY-3
    wmiir xwrite /ctl view "stat"
    Key $MODKEY-Shift-3
    wmiir xwrite /client/sel/tags "stat"
    Key $MODKEY-4
    wmiir xwrite /ctl view "msg"
    Key $MODKEY-Shift-4
    wmiir xwrite /client/sel/tags "msg"
    Key $MODKEY-5
    wmiir xwrite /ctl view "img"
    Key $MODKEY-Shift-5
    wmiir xwrite /client/sel/tags "img"
    Key $MODKEY-6
    wmiir xwrite /ctl view "vid"
    Key $MODKEY-Shift-6
    wmiir xwrite /client/sel/tags "vid"
    Key $MODKEY-7
    wmiir xwrite /ctl view "misc"
    Key $MODKEY-Shift-7
    wmiir xwrite /client/sel/tags "misc"
    Key $MODKEY-8
    wmiir xwrite /ctl view "misc1"
    Key $MODKEY-Shift-8
    wmiir xwrite /client/sel/tags "misc1"
    Key $MODKEY-9
    wmiir xwrite /ctl view "misc2"
    Key $MODKEY-Shift-9
    wmiir xwrite /client/sel/tags "misc2"
    Key $MODKEY-0
    wmiir xwrite /ctl view "misc3"
    Key $MODKEY-Shift-0
    wmiir xwrite /client/sel/tags "misc3"
    Now this does work, but the problem is that now tags are listed on the tag bar alphabetically rather then numerically like I intended. Example alt + 1 (which is now web) actually ends up being the last tag in the list rather then the first because web starts with w.
    I.E [crtl][msg][stat][web] instead of [web][ctrl][stat][msg] like I intended.
    So I guess the question is how can I fix this so theyre listed in accordance with the key thats pressed rather then alphabetically? Is this possible in wmii?
    Also I dont want to change the keys (i.e. make web 9 instead of 1 so its last on the keyboard too). I like the web=1,ctr=2l,stat=3,msg=4 layout that I chose in my config, I just dont like how theyre out of order on the bar.
    Next problem, I want to autostart specific applications on specific tags and in a specific arrangement.
    heres what I did to achieve this
    # Autostart (this is ghetto, I know)
    echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
    urxvtc -e ssh [email protected] -p 228 &
    sleep 1.5 && urxvtc &
    sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
    sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
    sleep 2.5 && urxvtc -e alsamixer &
    sleep 3 && urxvtc -e htop &
    sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
    sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
    sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
    This also works, but it seems a bit too hackish if you ask me. It also takes a while to go through the tags and open things one at a time like this. Surely there must be a way to achieve the same results without all the sleep and manual client placement commands. Im looking for a way to open everything simultaneously and have it go directly where its supposed to.
    So what would be the better way to do this?
    And lastly heres the complete wmiirc for reference. If anybody has any tips or suggestions about anything please share.
    #!/bin/dash -f
    # Configure wmii
    wmiiscript=wmiirc # For wmii.sh
    . wmii.sh
    # Configuration Variables
    MODKEY=Mod1
    UP=k
    DOWN=j
    LEFT=h
    RIGHT=l
    # Bars
    noticetimeout=5
    noticebar=/rbar/!notice
    # Colors tuples: "<text> <background> <border>"
    export WMII_NORMCOLORS='#a7a15e #262626 #3e3e3e'
    export WMII_FOCUSCOLORS='#262626 #a7a15e #3e3e3e'
    export WMII_BACKGROUND='#262626'
    set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
    # Font
    export WMII_FONT='xft:Terminus-8'
    #export WMII_FONT='-dec-terminal-bold-*-*-*-*-*-*-*-*-*-*-*'
    # Terminal
    export WMII_TERM="urxvtc"
    # Menu history
    hist="${WMII_CONFPATH%%:*}/history"
    histnum=5000
    # Column Rules
    wmiir write /colrules <<!
    /.*/ -> 58+42
    # /.*/ -> 62+38 # Golden Ratio
    # Tagging Rules
    wmiir write /rules <<!
    # Apps with system tray icons like to their main windows
    # Give them permission.
    #/^Pidgin:/ allow=+activate
    # Float Apps
    /MPlayer/ floating=on
    /feh/ floating=on
    /gimp/ floating=on
    /^Pidgin:/ floating=on
    # ROX puts all of its windows in the same group, so they open
    # with the same tags. Disable grouping for ROX Filer.
    #/^ROX-Filer:/ group=0
    # Status Bar Info
    status() {
    echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date +%a' '%b' '%d' '%r)
    # Generic overridable startup details
    startup() { witray & }
    local_events() { true;}
    wi_runconf -s wmiirc_local
    startup
    echo $WMII_NORMCOLORS | wmiir create $noticebar
    # Event processing
    events() {
    cat <<'!'
    # Events
    Event CreateTag
    echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
    Event DestroyTag
    wmiir remove "/lbar/$@"
    Event FocusTag
    wmiir xwrite "/lbar/$@" "$WMII_FOCUSCOLORS" "$@"
    Event UnfocusTag
    wmiir xwrite "/lbar/$@" "$WMII_NORMCOLORS" "$@"
    Event UrgentTag
    shift
    wmiir xwrite "/lbar/$@" "*$@"
    Event NotUrgentTag
    shift
    wmiir xwrite "/lbar/$@" "$@"
    Event LeftBarClick LeftBarDND
    shift
    wmiir xwrite /ctl view "$@"
    Event Unresponsive
    client=$1; shift
    msg="The following client is not responding. What would you like to do?$wi_newline"
    resp=$(wihack -transient $client \
    xmessage -nearmouse -buttons Kill,Wait -print \
    -fn "${WMII_FONT%%,*}" "$msg $(wmiir read /client/sel/label)")
    if [ "$resp" = Kill ]; then
    wmiir xwrite /client/$client/ctl slay &
    fi
    Event Notice
    wmiir xwrite $noticebar $wi_arg
    kill $xpid 2>/dev/null # Let's hope this isn't reused...
    { sleep $noticetimeout; wmiir xwrite $noticebar ' '; }&
    xpid = $!
    # Menus
    Menu Client-3-Delete
    wmiir xwrite /client/$1/ctl kill
    Menu Client-3-Kill
    wmiir xwrite /client/$1/ctl slay
    Menu Client-3-Fullscreen
    wmiir xwrite /client/$1/ctl Fullscreen on
    Event ClientMouseDown
    wi_fnmenu Client $2 $1 &
    Menu LBar-3-Delete
    tag=$1; clients=$(wmiir read "/tag/$tag/index" | awk '/[^#]/{print $2}')
    for c in $clients; do
    if [ "$tag" = "$(wmiir read /client/$c/tags)" ]; then
    wmiir xwrite /client/$c/ctl kill
    else
    wmiir xwrite /client/$c/tags -$tag
    fi
    if [ "$tag" = "$(wi_seltag)" ]; then
    newtag=$(wi_tags | awk -v't='$tag '
    $1 == t { if(!l) getline l
    print l
    exit }
    { l = $0 }')
    wmiir xwrite /ctl view $newtag
    fi
    done
    Event LeftBarMouseDown
    wi_fnmenu LBar "$@" &
    # Actions
    Action showkeys
    echo "$KeysHelp" | xmessage -file - -fn ${WMII_FONT%%,*}
    Action quit
    wmiir xwrite /ctl quit
    Action exec
    wmiir xwrite /ctl exec "$@"
    Action rehash
    wi_proglist $PATH >$progsfile
    Action status
    set +xv
    if wmiir remove /rbar/status 2>/dev/null; then
    sleep 2
    fi
    echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
    while status | wmiir write /rbar/status; do
    sleep 1
    done
    # Key Bindings
    KeyGroup Moving around
    Key $MODKEY-$LEFT # Select the client to the left
    wmiir xwrite /tag/sel/ctl select left
    Key $MODKEY-$RIGHT # Select the client to the right
    wmiir xwrite /tag/sel/ctl select right
    Key $MODKEY-$UP # Select the client above
    wmiir xwrite /tag/sel/ctl select up
    Key $MODKEY-$DOWN # Select the client below
    wmiir xwrite /tag/sel/ctl select down
    Key $MODKEY-space # Toggle between floating and managed layers
    wmiir xwrite /tag/sel/ctl select toggle
    KeyGroup Moving through stacks
    Key $MODKEY-Control-$UP # Select the stack above
    wmiir xwrite /tag/sel/ctl select up stack
    Key $MODKEY-Control-$DOWN # Select the stack below
    wmiir xwrite /tag/sel/ctl select down stack
    KeyGroup Moving clients around
    Key $MODKEY-Shift-$LEFT # Move selected client to the left
    wmiir xwrite /tag/sel/ctl send sel left
    Key $MODKEY-Shift-$RIGHT # Move selected client to the right
    wmiir xwrite /tag/sel/ctl send sel right
    Key $MODKEY-Shift-$UP # Move selected client up
    wmiir xwrite /tag/sel/ctl send sel up
    Key $MODKEY-Shift-$DOWN # Move selected client down
    wmiir xwrite /tag/sel/ctl send sel down
    Key $MODKEY-Shift-space # Toggle selected client between floating and managed layers
    wmiir xwrite /tag/sel/ctl send sel toggle
    KeyGroup Client actions
    Key $MODKEY-f # Toggle selected client's fullsceen state
    wmiir xwrite /client/sel/ctl Fullscreen toggle
    Key $MODKEY-Shift-c # Close client
    wmiir xwrite /client/sel/ctl kill
    KeyGroup Changing column modes
    Key $MODKEY-d # Set column to default mode
    wmiir xwrite /tag/sel/ctl colmode sel default-max
    Key $MODKEY-s # Set column to stack mode
    wmiir xwrite /tag/sel/ctl colmode sel stack-max
    Key $MODKEY-m # Set column to max mode
    wmiir xwrite /tag/sel/ctl colmode sel stack+max
    KeyGroup Running programs
    Key $MODKEY-a # Open wmii actions menu
    action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
    Key $MODKEY-p # Open program menu
    eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
    Key $MODKEY-Return # Launch a terminal
    eval wmiir setsid $WMII_TERM &
    KeyGroup Other
    Key $MODKEY-Control-t # Toggle all other key bindings
    case $(wmiir read /keys | wc -l | tr -d ' \t\n') in
    0|1)
    echo -n "$Keys" | wmiir write /keys
    wmiir xwrite /ctl grabmod $MODKEY;;
    wmiir xwrite /keys $MODKEY-Control-t
    wmiir xwrite /ctl grabmod Mod3;;
    esac
    KeyGroup Tag actions
    Key $MODKEY-t # Change to another tag
    wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
    Key $MODKEY-Shift-t # Retag the selected client
    # Assumes left-to-right order of evaluation
    wmiir xwrite /client/$(wi_selclient)/tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
    # for i in 0 1 2 3 4 5 6 7 8 9; do
    # cat <<!
    #Key $MODKEY-$i # Move to the numbered view
    # wmiir xwrite /ctl view "$i"
    #Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
    # wmiir xwrite /client/sel/tags "$i"
    # done
    Key $MODKEY-1
    wmiir xwrite /ctl view "web"
    Key $MODKEY-Shift-1
    wmiir xwrite /client/sel/tags "web"
    Key $MODKEY-2
    wmiir xwrite /ctl view "ctrl"
    Key $MODKEY-Shift-2
    wmiir xwrite /client/sel/tags "ctrl"
    Key $MODKEY-3
    wmiir xwrite /ctl view "stat"
    Key $MODKEY-Shift-3
    wmiir xwrite /client/sel/tags "stat"
    Key $MODKEY-4
    wmiir xwrite /ctl view "msg"
    Key $MODKEY-Shift-4
    wmiir xwrite /client/sel/tags "msg"
    Key $MODKEY-5
    wmiir xwrite /ctl view "img"
    Key $MODKEY-Shift-5
    wmiir xwrite /client/sel/tags "img"
    Key $MODKEY-6
    wmiir xwrite /ctl view "vid"
    Key $MODKEY-Shift-6
    wmiir xwrite /client/sel/tags "vid"
    Key $MODKEY-7
    wmiir xwrite /ctl view "misc"
    Key $MODKEY-Shift-7
    wmiir xwrite /client/sel/tags "misc"
    Key $MODKEY-8
    wmiir xwrite /ctl view "misc1"
    Key $MODKEY-Shift-8
    wmiir xwrite /client/sel/tags "misc1"
    Key $MODKEY-9
    wmiir xwrite /ctl view "misc2"
    Key $MODKEY-Shift-9
    wmiir xwrite /client/sel/tags "misc2"
    Key $MODKEY-0
    wmiir xwrite /ctl view "misc3"
    Key $MODKEY-Shift-0
    wmiir xwrite /client/sel/tags "misc3"
    wi_events events local_events
    # WM Configuration
    wmiir write /ctl <<!
    font $WMII_FONT
    focuscolors $WMII_FOCUSCOLORS
    normcolors $WMII_NORMCOLORS
    grabmod $MODKEY
    border 1
    # Misc
    progsfile="$(wmiir namespace)/.proglist"
    action status &
    wi_proglist $PATH >$progsfile &
    wmiir xwrite /ctl "colmode default"
    xsetroot -solid "$WMII_BACKGROUND" &
    # Autostart (this is ghetto, i know)
    echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
    urxvtc -e ssh [email protected] -p 228 &
    sleep 1.5 && urxvtc &
    sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
    sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
    sleep 2.5 && urxvtc -e alsamixer &
    sleep 3 && urxvtc -e htop &
    sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
    sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
    sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
    # Setup Tag Bar
    IFS="$wi_newline"
    wmiir rm $(wmiir ls -p /lbar) >/dev/null
    seltag=$(wmiir read /tag/sel/ctl | sed 1q)
    unset IFS
    wi_tags | while read tag
    do
    if [ "$tag" = "$seltag" ]; then
    echo "$WMII_FOCUSCOLORS" "$tag"
    else
    echo "$WMII_NORMCOLORS" "$tag"
    fi | wmiir create "/lbar/$tag"
    done
    wi_eventloop
    Also I should mention this is wmii-hg. I like hg better then 3.9 because in 3.9 the columns are all screwed up.
    I.E I like fixed column sizes where the right column is always smaller then the left no matter which side you move the client to. (difficult to explain)
    Last edited by tjwoosta (2010-07-01 03:23:06)

    Mike,
    You were close. Split returns an array, not a string.
    // form1.page1.subform1.foo::exit - (JavaScript, client)
    var wordCnt = new Array();
    var str = this.rawValue;
    wordCnt = str.split(" ");
    xfa.host.messageBox("There are " + wordCnt.length + " words.");
    Steve

  • Check box script help please

    I'm going to give this one more try. I have been trying to get the script below to work to have a check box make a text field visable and hidden when it's checked and unchecked.
    if (checkbox.rawValue==1)
         textbox.presence="visable"
    else
         textbox.presence="hidden"
    I get errors "missing ) after condition
    1: at line 2"
    I really need some help, if someone could give me hand. Thanks

    Try this in the 'MouseUp' event for your checkbox:
    if (event.target.value=="Off") {
         this.getField("textbox.presence").display = display.hidden
    } else {
         this.getField("textbox.presence").display = display.visible

  • EEM / Tcl Script Help Please

    Hello Community,
    I have been evaluating a Tcl Script posted here sometime ago, designed to help monitor track interfaces and routes, see attached.
    I believe I have applied the configurations correctly, however when I test the script by shutting down interfaces nothing happens.
    I'm sure its something very simple that I'm missing.
    I wonder if someone could take a look at the configs and let me know what I'm doing wrong. I have also attached a diagram.
    Cheers
    Carlton

    Joseph,
    I did read again and I got it to work :-)
    Cheers
    On a slightly different topic, is it possible to 'track' a static ip address?
    For example, I have the following tracking configured:
    track 1 ip route 0.0.0.0 0.0.0.0 reachability
    track 2 interface FastEthernet0/0 ip routing
    track 3 interface FastEthernet0/1 ip routing
    track 4 ip route 180.80.8.4 255.255.255.255 reachability
    track 5 ip route 170.70.7.4 255.255.255.255 reachability
    R3#show track brie
    Track   Object                         Parameter        Value
    1       ip route  0.0.0.0/0            reachability     Up (static)
    2       interface FastEthernet0/0      ip routing       Up
    3       interface FastEthernet0/1      ip routing       Up
    4       ip route  180.80.8.4/32        reachability     Down (no route)
    5       ip route  170.70.7.4/32        reachability     Down (no route)
    However, you will see that track 4 and 5 are down. This is because, although I can ping 180.80.8.4 and 170.70.7.4 the actual ip addresses don't appear in the routing table:
    Gateway of last resort is 0.0.0.0 to network 0.0.0.0
         170.70.0.0/24 is subnetted, 1 subnets
    C       170.70.7.0 is directly connected, FastEthernet0/0
         10.0.0.0/24 is subnetted, 1 subnets
    C       10.1.1.0 is directly connected, FastEthernet1/0
         180.80.0.0/24 is subnetted, 1 subnets
    C       180.80.8.0 is directly connected, FastEthernet0/1
         150.50.0.0/24 is subnetted, 1 subnets
    C       150.50.5.0 is directly connected, Ethernet2/0
    S*   0.0.0.0/0 is directly connected, FastEthernet1/0
    R3#
    Therefore, is there way of creating a track for /32 ip addresses?
    I hope that makes sense.
    Cheers

  • Auto refresh with apple script- help please

    can any one help me please
    i use multiple windows in safari at one time and can any one help me to refresh these pages (two windows) automatically using apple script.
    also if I click manually to refresh these pages i get the following note"
    "To open this page again, Safari must resend the form you completed to open the page the first time. This may cause the website to repeat actions it took the first time you sent the form."
    and i have click send for this to happen
    any help from you all will be appreciated as this will help me a lot with the present work that i am doing

    Not sure about the "automatic" reload - Opera allows you to set a refresh time interval for each tab, but not Safari. Also, Safari Extender gives you a single click contextual menu option to "reload all tabs".
    here is an AppleScript for a one-page auto reload. You might be able to alter the script to auto reload all open tabs.
    Not sure about the "warning" message. Can you post a URL so I can have a look?

Maybe you are looking for