Ann: Script Panel replacement for CS5

I've been working on a fun project the last few weeks in the new Extension Builder for CS5.
Here's what I came up with (I think it's very cool!) :
http://in-tools.com/wordpress/script-bay/script-panel-replacement-for-the-entire-creative- suite
Harbs

I don't think Adobe pays very much for this stuff, unfortunately...
I'm gonna have some more fun with it yet. Stay tuned...
Harbs

Similar Messages

  • Panel replacement for W530

    Dear all,
    Some months ago, in this forum, I was requesting information about the compatibility of panels for the W530 wince my panel, AUO B156HTN01, is an underperforming panel. The contrast ratio I get is lower than 400:1 (average 330:1) and the colour cast I get from it is too blue. While I do have an X Rire i1 Display Pro to correct any casts with the LUT of the graphics card, I still have issues with viewing angles (quite poor) and a bit of a magenta cast and the low contrast ratio as well as the screen door effect which is annoying in white or near white surfaces.
    I am a photographer and I would love to trust this computer for field work and colour sensitive work but the difference between this and my NEC monitor is too great to ignore. So, hoping that the v4 or v7 will improve things compared to the panel I was given, I feel like I have nothing much to loose.
    So, I have researched a bit on trying to get my hands on a B156HW01 v4 panel or a v7 (glossy with better contrast ratio than v4) and besides the used ones cannibalized from other systems, I have never been able to get a good replacement.
    Until now. I managed to get one old stock seller through a contact in Asia and will be getting a v7 since v4s are really out of stock everywhere I can find. The ones that try to sell you v4s will likely send you a "compatible" part...but not the same panel.
    I know glossy isn't everyone's taste and it is certainly not mine, but I have colleagues that happily work on their very glossy macs and while they do appreciate the nice matt monitors, the gloss hasn't stopped any of them from working. The colour discrepancy in the B156HTN01 is definitively stopping me from working so I am going to give that a go. Better accuracy on glossy is better than a crap matt.
    I'll be posting differences on a before and after state of the computer. To make it very fair, I will re-install everything (windows and the lot) to make sure nothing from previous colour calibration is left behind on this computer to alter the perception of the panels.
    If anyone in the UK or EU is interested, I'd be happy to get another one and we can split the total. The panels would be coming to to the UK so if you are in the EU you would need to cover the postage from me to you.
    Solved!
    Go to Solution.

    Final part.
    For anyone in the UK, please be aware that your parcel may take around 10 days to clear customs and an extra 48hrs for Parcelforce to deliver the parcel to you.
    So, after that long wait, I received the new v7 panel and proceeded to make the exchange.
    Before that, however, to give the B156HTN01 panel a fair opportunity to prove itself, I took some photographs with the default colour management profile from Lenovo. See the first two images, blue cast, two angles.
    Now, to make my point, I ran a quick profile with the largest palette in i1 Profiler (Yes, I know it has its drawbacks, but for a quickie, the profile is not horribly wrong and the contrast ratio is persistent)
    This is the result.
    See the contrast ratio here is 247:1...very poor.
    I followed this gentleman's video to make the exchange.
    http://www.youtube.com/watch?v=Igk0MiqZ_ck
    To take the bezel out, however, I used a lens clening microfibre cloth to place my fingertips in between the screen and bezel and it popped out in an easier fashion than what that video shows. So if you go through with this, mind that.
    Test after replacement to see if it works.
    Glossy Display W530
    Default color management profile on new v7 panel vs NEC PA241w monitor for reference (the NEC screen is calibrated for 6500k, aRGB gamut and gamma 2.2)
    Now, profling with DispcalGUI takes a while, but, since we want to measure the success or failure of the new v7 panel, I ran it. The following screenshot shows the almost matching screens with the v7 and NEC monitor AFTER profliing with DispcalGUI.
    I was a bit tired so I missed the horizontal framing for these two photos. This is DiscalpGUI's report.
    Mind the 632:1 contrast ratio now and that the black luminance is not too bad at 0.2cd/m2. It is not an impressive contrast ratio by today's many 1000+:1 screens but it is very good for a 2 year old panel able to display most of Adobe RGB's colour gamut as seen in this comparison with NEC's Spectraview graph. DispcalGUI for v7 on the left and Spectraview for NEC PA241w on the right.
    On DispcaGUI, the dotted line is the AdobeRGB spectrum and in Spectraview's its the yellow line.
    Not bad, eh?

  • Touch Panel replacement for Ipod Touch 3G 8go

    Hello,
    My touch panel is crashed and i want to replace it.
    I would like to know if there is a difference between touch panel for my model 8Go and these for 16 and 32 Go.
    Thank you in advance
    Greg

    ... and what Illaass did not mention is that there is no such thing as an 8GB 3rd gen Touch.
    So if your Touch is 8GB, it's either a 4th gen (unlikely if you think it's 3rd gen) or more likely, a 2nd gen Touch. If you are ordering parts for your iPod, you will need to be accurate about which model you have or the parts may not fit or work.

  • CS4, script files are not showing in script panel

    I dont ever use scripts but I did have one i downloaded to use for CS3.  Its been a while but I thought I just dropped it into the Scripts folder and it would show up in the scripts panel in InDesign.  I just put that same script in my new CS4 scripts folder and its not showing up.  I even restarted ID to make sure and it still doesnt.  Is there something im forgetting?

    CS4 has a slightly different model.
    In the Scripts folder, there is a folder called "Scripts Panel". For scripts to show within the Scripts panel in InDesign, place your scripts within this internal folder.

  • Blank Preflight and Script Panel Indesign CS5

    This problem has reocurred - started after I first installed CS5 with a blank Preflight panel only, but has been stable for many months (actually stable is not a word I associate with CS5). Both the Preflight and the Script panel are now blank - when yesterday they were fully functioning. Can anyone help with this. If any more wheels fall off my CS5 I am going to bite the bullet and revert to CS4.
    Thanks.

    Just updated CS to latest and
    everything is working.

  • Is there a script for CS5 to export a multi-page InDesign Document to single page InDesign documents

    Hello,
    I am having trouble finding a script or utility that would allow me to export each page of an InDesign CS5 document as multiple single page InDesign documents. I have found one script that does this for CS3, but nothing for CS5. Thank you for any help.

    Generally speaking, if a script doesn't run in a later version, you can put it in a subfolder withteh correct version number as the name and it will work. For CS3 that would be "Version 5.0 Scripts" without the quotes.
    That said, if you have Acrobat pro, it's probably easier to use the extract pages command...

  • [CS5] replacement for Configure Plug-ins

    It appears that the (truly terrible, at least on the Mac) Adobe Extension Manager (AEM) CS5 is supposed to be the replacement for the "Configure Plug-ins" dialog and the Porting Guide does briefly talk about using it to Deploy plug-ins.
    However, if I install my plug-in(s) without using AEM using an alias or directly into the Plug-ins folder then it doesn't appear in AEM at all. This particular plug-in doesn't have a UI so need for my support people to see at least a version number.
    Can anyone point to some documentation on how to make your plug-ins appear in the AEM list?
    It also doesn't appear that the Debug version of InDesign even appears in the AEM list of applications.

    Adam,
    We aren't going to force our users to have to deploy using Adobe Extensions Manager and all of the InDesign plug-ins appear there. Maybe I just need to start looking at what they are doing to figure out what is going on.
    Thanks for the suggestion though, that is essentially what I did yesterday as a workaround.
    Nick

  • GPS Panel for CS5... isn't that a new feature?

    I thought that new features were strictly not allowed by FASB rules etc. Isn't the GPS Panel for CS5 that was just released a new feature added after the product shipped?

    does that give you enough time to fix the 32bit plugins?
    thanks

  • [Ann] Script to Open/Close Book Documents

    .. Is this finally possible in InDesign CS6? (Along with Browse By Table and Find Backwards...)
    If not, or it is but you are still on CS4 (as I am -- I didn't test on CS5, *way* too busy for that!), download the script "bookopenall.jsx" from
    http://www.jongware.com/binaries/bookopenall.zip
    and place it inside a folder named "Startup Scripts", which you should create at the same level as the "Scripts Panel" folder (which is where your own scripts are). Restart InDesign, open a book, and you'll find two new commands in the Book Panel menu:
    "Open Book Documents" will open all of the book's documents;
    "Close Book Documents" will... close all of the book's documents! (And prompt you when changed.)
    Useful? I should think so!
    (Based heavily -- well, almost totally -- on Marc Autret's "FileCloseAll": http://www.indiscripts.com/post/2010/02/how-to-create-your-own-indesign-menus)
    Message was edited by: [Jongware]
    Title changed, as this sounded like a request. (Which it is, but it solves it right away as well.)

    Fred, I'm on both -- but usually on Windows! Don't you just *hate* that workaround? First I have to select the top document, then scroll down the list and select the bottom one. One click too many and the list is de-selected, and you end up getting just one document opened. Annoying!
    Besides, the same trick does not work for closing all book documents, does it?

  • QuickJog 1.0 - Shuttle/Jog Replacement for Premiere CS6... almost

    quickJog 1.0 - "fixing what Adobe broke in CS6"
    a shuttle/jog replacement for Premiere/Prelude CS6
    * see below for download links and instructions *
    Introduction
    I'll waste no time in expressing my opinion on this one: I loved the jog control in previous versions of Premiere, and a small part of my heart died when I realised that those beloved controls couldn't be reinstated in CS6 (though an ever larger chunk died when I realised that Q and W don't work by default in Prelude... ).
    JKL is great as a concept, but in practice, not very responsive - it's difficult to make precise jumps in speed quickly, and I'd hate to log footage in CS6 using the JKL keys alone.
    It was whilst reading through a different thread on the forums that I had an idea. Why not just jog with the middle mouse button? REAPER uses a similar idea to great effect for scrubbing.
    And so the journey began.
    Installing/using quickJog
    Pre-requisites
    Glovepie is only available for Windows. The script, therefore, only works on Windows.
    Sorry Mac users.
    To use quickJog, you'll need to download the following:
    GlovePie, from glovepie.org. Doesn't matter whether you grab the version with or without emotiv support, as long as it's a recent version
    The quickJog script, from bit.ly/getQuickJog (unreserved thanks go to Creative Inlet Films for hosting this)
    A mouse with a middle-mouse button/clickable scroll wheel
    You'll also need to ensure:
    The JKL keys have not been re-mapped in Premiere. This is essential, as quickJog 'presses' the JKL keys to alter the jog speed in Premiere.
    Installation/usage
    Is currently as simple as...
    Start Glovepie
    From the File menu, select Open...
    Navigate to wherever you unzipped the quickJog script. Open it.
    Click the Run button
    Click the [ .] button at the end of the menu bar to minimise Glovepie to the system tray
    To shuttle, click on the program monitor, source monitor or trim monitor, and scroll the mouse wheel. This functionality is built-into Premiere. You can hold Shift for bigger jumps.
    To jog, click and hold the middle-mouse button over the source monitor, program monitor, or timeline, and move left or right to increase/decrese the jog speed (just like the old jog slider).
    QuickJog tracks the position of the mouse itself, not the position of your mouse cursor, so don't worry about the cursor touching the edge of your screen.
    Keep your eyes on the video, not the mouse!
    To exit, right-click the glovePie icon, and select Exit.
    quickJog works in Prelude too, which is pretty cool.
    Links/Misc
    HOW AWESOME WOULD SOME EXTRA BITS OF INFORMATION BE FOR THE WORLD? Like information on how to tweak the configuration variables??
    Pretty awesome, I'd say James. Have you thought about actually writing this section, then?
    Paha! Don't be crass.
    Aww.

    I stand humbly informed!
    In hindsight, I'm not surprised that the JKL keys are a popular choice amongst editors (especially for those who've moved across from other NLEs), but it does rest somewhat uncomfortably in my heart. It feels like Adobe have replaced the pedals and gearstick in my car with a keyboard: not great for those moments when a child runs into the road.
    The Shuttle Pro (and Bella to my knowledge?) controllers emulate left/right arrow keypresses to do their work, making the playback 'glitchy' during shuttle operations - I don't like that. I didn't particularly like the feel of the Shuttle Pro when I tried it either. I do like controllers like this (I have one), but have been working for some time on interfacing between the Sony 9-pin protocol and Premiere.
    As such, my intermediate preference has been to use a graphics tablet (with a keyboard) for NLE work - hence why having the jog/shuttle controls on screen was so darn useful! Now that I have quickJog mapped to the stylus eraser, edits are much faster.
    Quick aside: Huge commendations on just how much can be mapped to keyboard shortcuts in Premiere, huzzah!

  • Upgrading to CS4 web premium ... or wait for CS5 ?

    The actual question I have for anyone who may have some insight:  Is there anything groundbreaking in the works for Dreamweaver, Photoshop or Illustrator in CS5 which is due to be released in about 6 months ?
    We have CS3 Web Standard, and now want to upgrade to Web Premium so we can get Photoshop and Illustrator which we now need, but with some pain could probably find a way to hold off for another 6 months .... if it was worth the wait that is. We don't necessarily need (and can't afford) the latest Software version all the time, but has there been any discussion about Improvements or New Features in the next release that's going to make us regret not waiting .......... ?
    * We are a small home business, but don't want to miss out on any major changes if you know what I mean . . .

    If you cannot afford the latest software all the time, why would you want to jump from CS3 to CS4? That falls under the 'all the time' category by going for a consecutive upgrade. A more economical way to go would be to leap-frog releases (CS3 to CS5).
    The possible upgrade to CS5 may offer better integration of the apps. Since Adobe bough Macromedia a few years ago, it has been gradually blending the apps to be friendly with each other. It would not be a stretch of the imagination that a CS5 web design workflow might be better than with CS4.
    Many web designers find Fireworks a decent replacement for both Illustrator and Photoshop. If you want to explore other image editors, consider GIMP (gimp.org) as a substitute for Photoshop and Inkscape (inkscape.org) as a substitute for Illustrator until you really need to upgrade.

  • Another "will this set-op be OK for CS5.5?" post.

    This is yet another "is the computer I want good enough for CS5.5" question. Before I begin I'll ask you to please forgive my ignorance and the length of this post. I'm new to having to care about computer hardware. In the past any decent PC has met my needs, but I'm no longer finding that to be the case as I now have a need to edit video.
    So I'll start with my particular needs. I need portability. I'm a student and direct a summer camp. In my role at camp I have identified the need to improve our camp promotional material, and that's where the video editing comes in. I'll be shooting and editing several promotional shorts and a couple of documentary style shorts using DSLR footage and perhaps a little camcorder or two. After much research, and playing around with some free trial software, I've settled on CS5.5, but there's only one problem, my computer just isn't up to the task. Conveniently enough, my current computer has seen better days and it's time to upgrade anyways, so I've been researching and shopping around trying to find an appropriate computer. As portability is a must, and I can't afford a decent desktop and a laptop (and even if I could always transferring data back and forth would be annoying), I've been looking at laptops. It seems like any off-the shelf laptop that is well suited to run adobe isn't really all that portable. Sure you can transport it a lot easier than a desktop, but you can't expect to get a full day of battery life out of it, nor is it a reasonable weight to carry all over creation (my point is that a 17" laptop is out). So I did a little digging, and after reading a lot of posts on this forum and a lot of information from other sources I think I've come up with a solution. I'm looking for input into potential problems any tech-savvy people see with my idea, and sales reps for dell aren't tech savvy, so I figured this was a good place to find out how well adobe would run on my proposed set-up (I'm not a pro, and won't be editing feature length films, so I don't think I need the same performance as a tricked out desktop, I just need it to perform well with as few hold ups as possible).
    Here's what I've come up with:
         Dell XPS 14z:
    Intel core i-7 2640M (2.8GHz, with "turbo boost" up to 3.50GHz)
    8 GB Dual Channel DDR3 SDRAM
    750 GB SATA, 7200rpm  hard drive
    Nvidia Geforce 520M 1GB graphics card
    The only information on screen resolution I could find on the Dell web-site  was "true 720p HD display" after reading a few reviews, I found the specs were lower than the minimum recommended by Adobe, I forget exactly what they are though.
    So this computer is more than I would ever need for my non-video editing needs. On paper it's a nice little laptop, a little pricey ($1300!), but they can be had at a very reasonable price ($700 - $800) refurbished from the Dell online outlet. None-the-less I can see several problems with this set-up.
    First is the Display: it's inadequate. That's easily solved by using an external monitor, and you can get a pretty decent monitor off of tiger direct for less than $200. I can tolerate video editing at a desk, I need portability for other applications.
    Second is the hard drive. From reading this forum I understand that editing with only one hard drive can slow things down quite a bit. I was wondering how big a deal this really is for the casual editor? There are adaptors that allow you to place a second hard drive where the optical drive is in this laptop. If it's necessary, I plan on putting a second 750GB 7200 rpm HDD where the optical drive is. Problem solved, right? Does anyone see any problems with this idea? My next question about the hard drive topic is: how much would a third hard drive really benefit me? And would data transfer using an external HDD with a USB 3.0 connection be fast enough to be a viable option for a third drive? Either way I could pick up an appropriate hard drive and caddy for a little under $175 and around $100 for an external HDD with USB 3.0 to be used as a third drive if necessary.
    The third potential problem is the RAM. It seems there are a lot of opinions out there about how much is enough. Is 8 GB adequate? According to intel's web site this particular processor is compatible with up to 16GB of RAM, and after searching various forums I found a couple instances of people expanding their RAM on this computer to 16GB with no issues. I understand that I can replace the current 2x4GB set up with either 1x4GB + 1X8GB or 2x8GB to give either a total of 12 or 16GB of RAM. Is this necessary or even beneficial?  8GB would be more than enough for anything else I do, and since I have little experience with video editing I thought I'd ask those who know. Is a RAM upgrade necessary? Using this configuration I could update the RAM to 12 GB for around $100 and to 16 GB for around $200.
    Finally, the graphics card that comes with this computer isn't on the list of cards recommended by Adobe. I understand that this is because it doesn't support CUDA, how much of an issue is this? Will I be able to efficiently edit video without a recommended card?
    The point of all the numbers is this: 800+200+175+100=1,275. For $1275ish it seems to me I could get a very reasonable video editing set up that's still portable. That's less than the sticker price on these laptops, and a lot less than a mac book pro, which is everyone's first recommendation when I mention I want to use the computer for video editing. This seems like a very reasonable price for a laptop with an intel i7 2.8GHz, two 750GB 7200rpm HDD's, 12GB of RAM, and an external monitor for when I want to sit down and edit. Am I delusional in thinking this would run well using CS5.5?
    So I guess the point is this. Life is about trade offs, and since I primarily need portability and I'm not a professional (just an anal consumer with high standards :), I'm willing to trade a little bit of video editing performance for the improved portability. I want the opinion of those who have experience using CS5.5 with various set-ups, does my proposed set-up seem like a reasonable trade-off? Are the upgrades even neccessary? Would they be enough to provide a reasonable editing experience? Any other advice (besides buying a desktop or a wicked expensive 17" laptop that weighs two to three times as much and chews through battery life)?
    Thanks for sticking with this and giving me any feedback. It's appreciated!

    Benson,
    Glad the comments were helpful!
    Regarding RAM, the following test results were mine from an old thread:
    "...RAM size: increasing from 4GB to 8GB doubled the MPE GPU performance [11 sec. vs. 6 sec.] and improved the MPEG2-DVD performance [122 sec. vs. 91 sec.]; the other tests only improved marginally. Increasing from 8GB to 16GB made significant additional improvements to the MPEG2-DVD time [91 sec. vs. 37 sec.]; all other tests hardly changed at all". [Note that my testing, and current system, run 5.0.3, not 5.5, but I suspect that these results are still probably reasonable for your situation.]
    Thread was: http://forums.adobe.com/message/3465135 (How changes to CPU speed, RAM size, and drives impacted my PPBM5 score)
    Regarding graphics card RAM, either card would work just fine for you. User's that have a need for massive frame sizes might benefit from the 3GB model, but for normal HD work the 1.5 will be fine.
    Regards,
    Jim

  • Works in ExtendScript and not in Script Panel [JS, CS3]

    I've adapted the FindChangeByList script to work with a particular page.
    The trouble is a couple of text boxes need to be removed entirely.
    So I've included the lines:-
    var myDoc = app.activeDocument;
    var myPageItems = myDoc.allPageItems;
    for(var i=myPageItems.length-1;i>=0;i--)
        if(myPageItems[i].constructor.name.toString()=="TextFrame")
    if (myPageItems[i].contents == "WIN £50"||myPageItems[i].contents == "WIN £100") {
    myPageItems[i].select();
    myPageItems[i].remove();
    ... then the script gets down to doing the changes prescribed by the list
    myObject = app.documents.item(0);
    myFindChangeByList(myObject);
    When I run the script in ExtendScript the boxes vanish as intended.
    But when I run it from the InDesign scripts panel, the text frames stay where they are and their contents get changed along with the contents of the other text frames.
    I've alt clicked the script in the scripts panel to make sure I've got the right script. It's one of those head-scratchy-am-I-going-dafter affairs.

    After testing the box deletion part in the scripts panel and thus checking that it wasn't the culprit, I saved the box deleter script and the specialised FindChangeFromList script in the InDesign Scripts folder (so they don't appear in the Scripts Panel) and wrote an Applescript which does two "do scripts". When run from the scripts panel this script does the job. Inelegant, I know, but ours is not to reason why, ours is to get it working.

  • Mac Conversion for CS5 Nightmare

    After seeing the FCP Supermeet at NAB this year I decided to make the switch to CS5.5
    I took the following Mac and made these changes to upgrade the Mac in prep for CS5.5:
    Intel Mac 3,1 Quad Core 2008
    3Ghz
    Up'ed the Ram to 32Gb DDR2
    Clean Install (Erase/Reformat) 320Gb 7200RPM Operating System Drive and installed 64 bit Snow Leopard
    Installed updates to make Snow Leopard 10.6.7 version
    Installed base driver for new Quadro 4000 for the Mac graphics card (because of Apple partial support you have to use an older graphics card to install this driver BEFORE you install the Quadro 4000 physically)
    Physically installed the Quadro 4000
    Installed the Cuda driver
    Updated the Cuda driver to current driver using the Cuda Panel interface
    Installed CS5.5 from DVD disc set
    Have separate 750Gb 7200RPM media drives
    Have an external 600mbps read/write dual channed 0 Raid array for media as well
    NIGHTMARE!
    Can barely play 1 track of h.264 video/audio on an HDSLR timeline preset
    Can barely play 1 track fo video/audio on XDCAM EX 720p 24fps that comes with Adobe CS5 Classroom in a Book
    Playback stutters and drops frames, audio glitches even when Playback Resolution is dropped down to 1/2 and 1/4 resolution
    I have used both the Playback with Mercury and GPU acceleration and Mercury Engine Software only - same resulting stuttering playback
    Watching graphical CPU usage  when playing back single track and there seems to be plenty of headroom
    Media is stored on drive and raid separate from operating system drive. Scratch drive is on drive separate from Op Sys drive
    The only out of spec component with this Mac is I am missing "Core Audio sound card"
    But I have seen all sorts of Mac laptops running multiple tracks of HD with all kinds of effects applied and they played/scrubbed through the composition like butter.
    Any idea - this MacPro tower with 32Gb and Quadro 4000 cuda card should tear it up with CS5.5

    All our other edit bays are still at 32bit Leopard and are on jobs.
    We pulled this one and did the noted conversion that we are having the problems with.
    I guess your testing is both good news - the 3,1 model CAN be converted over and do a decent job.
    I assume your co-worker's 3,1 had a Quadro 4000 for the Mac graphics card?
    No choppy dropped frames at 1/2 or 1/4 playback resolution?
    Bad news is the only idea I have left is start all over again and see if that changes it.
    One new item to note, this morning on boot-up, when opening the "About this Mac" panel, the internal bong sound starts going off repeatedly (as if you are holding down a keyboard key continuously. And the scroll bars could not be used - when you drag one down and let go, they pop back up to the top. The only way to stop this all was to re-boot.
    Yesterday I re-installed FCP and that gave me back the codec for nanoFlash XDCAMHD 422 files (and probably a lot of other missing codecs).
    I then opened up a matching sequence in Premiere CS5.5 and was able to import one of these files now - so your advice on the missing codec helped here.
    But when I placed this file on the timeline - video only - no audio, it stuttered and dropped frames no matter what resolution used for playback,
    Then, here is the most telling thing, I rendered the "entire workspace" (1 clip of video only - 20 secs in length) it took 2mins/52 seconds with all 8 cores maxing out to render it.
    I then got the green line above the video in the timeline - AND STILL THE VIDEO PLAYED BACK STUTTERING AND DROPPING FRAMES EVEN THOUGH RENDERED!!
    That seems to indicate I either have something wrong with the video card or it's drivers? And maybe this morning's boot up demonstrates that as well?
    What do you folks think?
    Thank you so much Todd for making the extra effort to help with my problem.
    So anyone following this issue, it appears to not be a CS5.5 issue - but an issue with my individual machine - or graphics card or driver. Would be interested to know what graphics card and drivers you folks were using for this test.

  • Bash script to replace markers in file

    Hi,
    I have a file of the form (testfile.txt):
    here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here
    $file1.txt$
    Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more $file2.txt$
    Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here Some text in here and more here
    $file3.txt$
    I also have text files with names of the form "filen.txt" which have Markdown tables in them.
    age   weight   sex 
    15    45       m   
    20    56       f   
    25    65       f   
    30    72       m   
    I want to run a script to search for all the markers, and "inject" the relevant table at the marker by opening the file of that name in the same directory and doing a replace with it.
    I have the "shell" of the script (sorry about the pun). I cannot however get it to do the injecting part.
    I've tried Awk, sed, perl....you name it.
    The script so far is:
    #!/bin/bash
    line=""
    places=""
    while read -r line; do
        places=$(awk '/\$*\$/ { print $0 }')
    done < testfile.txt
    cp testfile.txt try.txt
    echo "$places" | {
        while read line; do
            strip=$(echo $line | sed 's/^\$//')
            strip=$(echo $strip | sed 's/\$$//')
            curtext=$(cat $strip)
             cat try.txt | {
                while read line; do
                # Something in here to take $strip add a $ at each end and replace
                #+with $curtext
                done
        done
    I would really appreciate some help to fill in the area where the comment is. I am successfully getting all the other bits to work.
    Many thanks
    Mike

    sed gives me a headache.  It has its place in the world, but I would never use it unless I had no other option. You do. Here's the same thing in AppleScript:
    -- set main paths
    set master_file to "/path/to/master file.txt"
    set main_folder to "/path/to/folder/"
    -- read master text, and break it down around '$' marks
    set master_text to read master_file
    set text_chunks to tid({input:master_text, delim:"$"})
    -- loop through chunks, replacing file names with file contents
    repeat with this_chunk in text_chunks
              if this_chunk ends with ".txt" then
                        set contents of this_chunk to (read (main_folder & this_chunk))
              end if
    end repeat
    -- write it all back out to the master file
    set fp to open for access master_file with write permission
    write tid({input:text_chunks, delim:""}) to fp
    close access fp
    on tid({input:input, delim:delim})
      -- generic handler for text delimiters
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid
    A bit wordier, but so much easier on the brain.

Maybe you are looking for

  • File folder with question mark.....

    In the UK, I do not have the back up disk, i am getting the file folder with the question mark. Anyone know what i can do?

  • How can I prevent any use to update Purchase order if status was "Approval"

    I have some users can update any purchasing order update after "Approval" Please I would any Purchasing oracle module expert to Assist me to get way to solve problem. How can I prevent any use to update Purchase order if status was "Approval"? Furthe

  • Nsert/Update and Add Column at the same Table and at the "same" Time

    Hello, I want Insert/Update and Add Column at the same Table and at the "same" Time but in different sessions. Example: At first the "insert/update" statement: Insert into TestTable (Testid,Value) values (1,5105); After that the "add" statement: Alte

  • NANO says its full and its not!

    When I open up Itunes and select my nano it shows that my nano is full even though it is not. The most I can load is about 220MB, wheres the rest? I have deleted everything on my nano that I can see and when I do the music is goone but it tells that

  • Can't download graphics tools for Xcode

    I've just downloaded Xcode 4.6.1 in hopes of getting Quartz Composer, which I've learned is available in a graphics tools download from the Developer website.  Unfortunately when I look through the downloads available, there is no graphics tools opti