Script to find a specific section in file & insert text below - how?

I am dealing with kind of a problem here - I am using pekwm as my window manager and I use menumaker to automatically update the menu on every startup. My problem is that the original pekwm, the first two sections called 'terminal' and 'Run' and the last two sections called 'Go To' and 'pekwm' are overwritten/modified by mmaker so that there's only the applications submenues and  'pekwm' with the 'Themes' section erased and I want to somehow preserve all that. I was thinking of creating a bash script that does the mmaker thing and then use 'sed' or 'echo' to insert the code back into the appropiate areas of ~/.pekwm/menu.
All I really need to know is how to find a particular string of code in the menu file and insert a block of text below that line using sed or echo.
Any ideas?
Last edited by lostinpurdy (2010-07-10 02:32:38)

Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
mmaker --no-desktop -vf pekwm
sed {
        find-and-goto-line-below-'root menu'-declaration, insert-text {
                                                                                                       entry for 'terminal'
                                                                                                       entry for 'run"
       ~/.pekwm/menu
sed {
         find-line-below-'pekwm'-submenu-declaration, insert-text {
                                                                                                   entry for 'themes'
       ~/.pekwm/menu
Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
Last edited by lostinpurdy (2010-07-10 03:48:10)

Similar Messages

  • What script to find associated program for a file type?

    Hi friends,
    I am looking for OSX commands that can do the following:
    - return name of associated program for a particular file type, i.e "QuickTime' for .mov
    - return path of the executable file of the program name returned above.
    I hope to get some ideas/suggestions from you.
    Thanks and have a nice day!

    Microsoft has a recover pst program that you can get from their
    site. But when I worked on a help desk and used the program, it might have worked about once out of 15 times. When I contacted Microsoft about it, they stated that they knew that the program really did not work and there was no rush on revising it. Saying
    that, we are talking about five years ago when I was on the help desk. Or use Outlook Restore Toolbox from  
    http://www.outlook.restoretools.com/
    http://www.filerepairforum.com/forum/microsoft/microsoft-aa/outlook/1168-does-anyone-have-any-ideas-for-solution-this-problem

  • Script to add description and keywords to files from text file

    Can anyone write something up for me? I will admit I cannot do it myself, I do not know Javascript.
    I need to add keywords and a description to 1000's of images. I have a text file formatted as such for each 100 images. The script would need to ask for an input file (or I can hardcode the path into the script) and then apply to the current folder of images shown in bridge.
    Text file example:
    1000 - Bright Sunset Over City. (sun;city;sky;mountain;) .
    1001 - Dawn Behind Mountain And Lake. (sun;mountain;water;sky;) .
    1002 - Bright Red Sunset, Light Edged Clouds. (sun;sky;tree;clouds;) .
    1003 - Tree Framing Sunset Over Bay. (tree;sun;lake;bay;) .
    1004 - Sun Behind Gull On Pilings. (seagull;sun;sea;pilings;) .
    images are named 1000.tif, 1001.tif, 1002.tif etc
    Running on a Mac with CS3 and CS4.
    Thanks,
    Chris

    Hi Paul,
    This is nice example, but your script incorrectly sets both dc:description and dc:subject as ordered arrays. Description should be an alt-text type property, and subject is an unordered array (or 'bag'). Some software might not tolerate the incorrect XMP data types.
    Here's an example showing the wrong and write way to set these two properties using the XMP Script API:
    // load the library
    if (ExternalObject.AdobeXMPScript == undefined) {
        ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var Desc = "Test Description";
    var Keys = ["One","Two","Three"];
    // The wrong way to set the Description. and Keywords...
    var bogusXmp = new XMPMeta();
    bogusXmp.appendArrayItem(XMPConst.NS_DC, "description", Desc, 0,XMPConst.ARRAY_IS_ORDERED);
    for(var s in Keys){
          bogusXmp.appendArrayItem(XMPConst.NS_DC, "subject", Keys[s], 0,XMPConst.ARRAY_IS_ORDERED);
    $.writeln( bogusXmp.dumpObject() );
    // The correct way to set the Description and Keywords
    var correctXmp = new XMPMeta();
    correctXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Desc );
    for(var s in Keys){
          correctXmp.appendArrayItem(XMPConst.NS_DC, "subject", Keys[s], 0,XMPConst.PROP_IS_ARRAY);
    $.writeln( correctXmp.dumpObject() );
    Thanks,
    David

  • I can't find the specific music/song I want in iTunes, how should I get them?

    There is always a time that you would want to listen to specific songs,
    the problem from iTune is, some songs can't be found.
    For example, Christians song? Japanese songs and etc etc.
    I would like to know what and how should I do in order iTunes will have those songs available?
    Is there any form, or request that I can post to Apple?
    Or things is just the way it is, I can't do anything about it?
    Thanks and sorry for 'lame post'.

    Please note that while you can request music be carried in the iTunes Store, the owners of the tracks have to be willing to license them to the iTunes Store. Not all artists/record companies are willing, and not all artists have representation at all in some countries. So don't be surprised if nothing happens in response to your request. You may have to look to other download stores, many of which offer music in a format iTunes can accept, or import the music from CDs.
    Regards.

  • Why does a specific web archive file show in a finder search by a specific person's name?

    When searching by specific person's name in Finder, a specific .web archive file saved from a Safari browsing session appears. Why is this? Was the person's name entered into the browsing session? Was the .web archive file sent to the person?

    Thank you for your initial response. Is there a way to view the web archive to see what is in the archive in detail? Cheers,

  • Un masque pour faire défiler du texte

    Je me suis insipré d'un script utilisant un masquer pour
    faire défiler du texte. Or tout fonctionne bien jusqu'au
    moment où je veux inclure une CSS externe our un truck du type
    monDiplay_mc.maListe_mc.monScrollingBlock_mc.monText_txt.
    setTextFormat(monStyle);
    pour mettre mon texte en forme : celui ci disparait de
    l'affichage !
    Attention : il ne disparait que si j'utilise un masque, sinon
    tout marche bien
    Mais voilà, j'ai besoin de ce masque pour en faire un
    texte défilant
    Je recherche donc la solution pour atteindre mon texte dans
    le clip contenant le masque. ou une autre solution qui me permette
    de créer une boite de texte à laquelle je peux ajouter un
    scrolling (pas avec la scroll bar des composants)
    merci d'avance pour votre aide

    Hello :)
    1 - quelle est ta version de flash ?
    2 - ton masque est rectangulaire ?
    3 - Tu utilises la m�thode MovieClip.setMask() ? Si
    c'est pas le cas
    fait le :)
    4 - Tu utilises une police "embed" ? (lis dans l'aide tout ce
    qui
    concerne TextField et TextFormat et surtout
    TextField.embedFonts = true :)
    EKA + :)
    > Je me suis insipr? d'un script utilisant un masquer pour
    faire d?filer du
    > texte. Or tout fonctionne bien jusqu'au moment o? je
    veux inclure une CSS
    > externe our un truck du type :
    >
    monDiplay_mc.maListe_mc.monScrollingBlock_mc.monText_txt.
    > setTextFormat(monStyle);
    > pour mettre mon texte en forme : celui ci disparait de
    l'affichage !
    > Attention : il ne disparait que si j'utilise un masque,
    sinon tout marche bien
    > Mais voil?, j'ai besoin de ce masque pour en faire un
    texte d?filant
    >
    > Je recherche donc la solution pour atteindre mon texte
    dans le clip contenant
    > le masque. ou une autre solution qui me permette de
    cr?er une boite de texte ?
    > laquelle je peux ajouter un scrolling (pas avec la
    scroll bar des composants)
    > merci d'avance pour votre aide
    >
    >

  • Script for finding characters in a folder or file name

    I need some help on writing a script that will search thru users folders and files and replace characters in the names with a different character. Our users folders go back to when the users used OS 9 and they used / \ * ? in the file and folder names, I want to write a script that will replace these characters with an _ . Obviously I will need to be logged in as the root user.
    The server is OS 10.3.9
    Thanks,
    Jeff
      Mac OS X (10.3.9)  

    Hi Roger,
       There's a flaw in your regular expression and that is the absence of alternation. You want to replace any one of these characters with an underscore. That can be accomplished by putting the characters in a character class. Since the class matches a single character, you'll get an underscore for each.
       Your regular expression only matches a group of all of the characters, side-by-side, in the order you typed them and then it replaces the entire group with a single underscore.
       Oh, there's one other possible flaw. I think that the find utility creates lists of files in relatively large groups and then acts on them. If you change a directory that contains a file you want to change, it's possible that the change to the directory will not be reflected in the path to the file, causing a "file not found" error. A depth first search and acting only on the basename would eliminate that possibility.
    Hi Jeff,
       I recommend a command like the following:
    find -d /Users -regex ".[\:*?]." -exec echo 'mv "{}" "$(dirname "{}")"/"$(basename "{}" | sed '\''s/[\\:*?]/_/g'\'' )"' \; | sh
    That uses the same character class in the -regex option of the find command. That way, nothing will be invoked unless necessary. The method of creating the text of a complex command and using the -exec switch to echo that into a shell is an old trick from O'Reilly's UNIX Power Tools.
       I substituted a colon for a forward slash. As the path separator, the forward slash isn't a valid filename character on a UNIX system. However, old Apple tools, including the Finder, still use a colon as the path separator. Therefore the system presents the allowable character as a forward slash to Apple tools and a colon to UNIX tools. Thus using the colon in the command above will have the effect you want on files that the Finder says has a forward slash in the name.
    Gary
    ~~~~
       James Joyce -- an essentially private man who wished his total
       indifference to public notice to be universally recognized.
             -- Tom Stoppard

  • VB Script to find the last modified file and time in a directory

    Hi,
    I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get the latest file and last modifed time.

    Thanks it worked for me Get-ChildItem C:\Users\sujith.reddy.komma\Desktop\Suj1\* -recurse |?{-not $_.PsIsContainer} |Sort LastWriteTime -desc | select -first 1 now in my script i have hard coded the directory i need to run this script in different
    servers from one location i will put all the different paths in one text file and ineed to pass them to this script can you help me with this?
    Essentially you are incrementally asking us to write each line for you.  I recommend freeing yourself of this misery and leraning PowerShell.  THe answers to all of your questions are learned in the first few hours of study.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • Need an app or a script to find a list of files and retrieve them

    A few years ago at an old job I used an application that could search a hard drive for a list of images all in one shot. The names of the images were typed into a txt file. the text file was used as the search list and the application would report back if the images were found and it would retrieve them. Where can I get my hands on something like This or can it be built in Automator?

    'I used an application that could search a hard drive for a list of images all in one shot ... and it would retrieve them.' - desired result is too vague.
    'Where can I get my hands on something like this ... - perform a 'Google' or equivalent search.
    "... or can it be built in Automator?' - possibly yes.
    On your behalf the above request is re-written below.
    Can someone assist me in AppleScript scripting. I am trying to open a '.txt' file which lists on each line a file to search for, and if found - to open its containing folder. Is such a process also possible with 'Automator'? Thank you for any assistance.
    One possible AppleScript solution:
    -- Code starts here --
    set tFile to read (choose file) -- One was to obtain the file, to open.
    set tPars to paragraphs of tFile -- create a list of paragraphs of selected file.
    repeat with i in tPars -- Cycle through the list of paragraphs.
    with timeout of 0 seconds -- Prevent AppleScript timeout error.
    set tItems to paragraphs of (do shell script ("locate " & (quoted form of i))) -- Obtain list of found filename files.
    end timeout
    repeat with j in tItems -- Cycle through the list of found file.
    try
    set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"} -- Extract container of file.
    set fPath to text items 1 through -2 of j
    set AppleScript's text item delimiters to "/"
    set fPath to fPath as string
    set AppleScript's text item delimiters to oAStid
    do shell script ("open " & fPath) -- Open container of file.
    end try
    end repeat
    end repeat
    -- Code ends here --
    If the above sample code is not exactly what you seek - then edit the code accordingly; and / or post requests with specific details.
    'Is such an action also possible with 'Automator'?' - please post an properly constructed request to the 'Tiger - Automator'
    forum.

  • Script to find files with same names with in a folder and it sub folders.

    Looking for script to find files with same names with in a folder and it sub folders.

    Are you just looking to find if any two files underneath a folder have the same name?
    If you just want to know that a file named "whatever" exists in two folders, that's not too difficult, but you probably want to know the full path names.
    Here's one attempt:
    $ perl -MFile::Find -le 'find(\&w, "."); while (($n,$p)=each %file) {if(@{$p}>1){print join(" ",@{$p})}} sub w{push @{$file{$_}},$File::Find::name;}'That will print the pathnames on the same line of any files with the same name that appear anywhere underneath your current directory.
    It's a bit long for a "one-liner", but functional.
    Darren

  • Script to find out important ports in an xml file.

    Is there any script to find out important ports detail in the xml file ??

    928983 wrote:
    Is there any script to find out important ports detail in the xml file ??Use the grep command -- http://bit.ly/KqYTVf
    Thanks,
    Hussein

  • How to Parse this XML File and require below mentioned value as output using powershell script

    Need values for below as an output for below xml file so help me with the script:
    Under Criteria Tag-
    TimeStamp Display Value
    OID corresponding to display value for nodes "Criterion"
    Under Report Body Tag--
    name in Report Section and OID value
    <?xml version="1.0" encoding="UTF-8"?>
    <ReportOutput>
        <ReportHead>
            <Report name="Execution Action" type="detailedchanges_rpt">
                <Description></Description>
            </Report>
            <Criteria>
                <TimestampCriterion name="date" displayvalue="08/10/14 23:08">
                    <Timestamp displayvalue="08/10/14 23:08">1412780929000</Timestamp>
                </TimestampCriterion>
                <MatchCriterion name="approvalId" displayvalue="Not applied" operator="contains" />
                <MatchCriterion name="promotionComment" displayvalue="Not applied" operator="contains" />
                <SelectCriterion name="changeWindow" displayvalue="Not applied" />
                <SelectCriterion name="auditEvents" displayvalue="(Any)">
                    <String>auditEventAny</String>
                </SelectCriterion>
                <SelectCriterion name="attributeDisplay" displayvalue="Changed attributes">
                    <String>changed</String>
                </SelectCriterion>
                <SelectCriterion name="versionCompare" displayvalue="Version with current baseline">
                    <String>disabled</String>
                </SelectCriterion>
                <BooleanCriterion name="showContentDiff" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <BooleanCriterion name="displayUsers" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <BooleanCriterion name="displayPackages" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <BooleanCriterion name="displayCustomProperties" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <BooleanCriterion name="strictPackageMatch" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <BooleanCriterion name="displayCriteriaAtEnd" displayvalue="No">
                    <Boolean value="false" />
                </BooleanCriterion>
                <SelectCriterion name="elementExists" displayvalue="Not applied" />
                <IntegerCriterion name="maxLinesPerBlock" displayvalue="10">
                    <Integer>10</Integer>
                </IntegerCriterion>
                <NodesCriterion name="nodes" displayvalue="TripwireENT.demo.net">
                    <OID>-1y2p0ij32e8bw:-1y2p0ij32e7cu</OID>
                </NodesCriterion>
                <MatchCriterion name="nodeName" displayvalue="Not applied" operator="contains" />
                <CustomPropertiesCriterion name="nodeProps" displayvalue="Not applied" />
                <RulesCriterion name="rules" displayvalue="Critical System Files">
                    <OID>-1y2p0ij32e7q2:-1y2p0ij31snh6</OID>
                </RulesCriterion>
                <MatchCriterion name="ruleName" displayvalue="Not applied" operator="contains" />
                <MatchCriterion name="elementName" displayvalue="Not applied" operator="contains" />
                <CustomPropertiesCriterion name="elementProps" displayvalue="Not applied" />
                <CustomPropertiesCriterion name="versionProps" displayvalue="Not applied" />
                <AttributesCriterion name="attributes" displayvalue="Not applied">
                    <Integer name=".missingImpliesFailure">1</Integer>
                </AttributesCriterion>
                <ContentCriterion name="content" displayvalue="Not applied" />
                <MatchCriterion name="auditEventUserName" displayvalue="Not applied" operator="contains" />
                <IntegerCriterion name="changeType" displayvalue="Added, Modified, Removed">
                    <Integer>7</Integer>
                </IntegerCriterion>
                <SeverityRangeCriterion name="severity" displayvalue="1 - 10000">
                    <Integer name="min">1</Integer>
                    <Integer name="max">10000</Integer>
                </SeverityRangeCriterion>
                <BooleanCriterion name="currentVersionsOnly" displayvalue="Yes">
                    <Boolean value="true" />
                </BooleanCriterion>
                <TimeRangeCriterion name="timeRange" displayvalue="All time" />
                <PackagesCriterion name="packages" displayvalue="Not applied" />
                <SortCriterion name="sortNodes" displayvalue="Name, ascending" isascending="true">
                    <String>name</String>
                </SortCriterion>
                <SortCriterion name="sortRules" displayvalue="Name, ascending" isascending="true">
                    <String>name</String>
                </SortCriterion>
                <SortCriterion name="sortElements" displayvalue="Name, ascending" isascending="true">
                    <String>name</String>
                </SortCriterion>
                <SortCriterion name="sortVersions" displayvalue="Date, descending" isascending="false">
                    <String>date</String>
                </SortCriterion>
            </Criteria>
        </ReportHead>
        <ReportBody>
            <ReportSection name="TripwireENT.demo.net" category="node">
                <OID>-1y2p0ij32e8bw:-1y2p0ij32e7cu</OID>
                <String name="typeName">Windows Server</String>
                <ReportSection name="Critical System Files" category="rule">
                    <OID>-1y2p0ij32e7q2:-1y2p0ij31snh6</OID>
                    <String name="typeName">Windows File System Rule</String>
                    <ReportSection name="C:\Temp" category="element">
                        <OID>-1y2p0ij32e8dr:-1y2p0ij32e586</OID>
                        <ReportSection name="08/10/14 22:48" category="version">
                            <OID>-1y2p0ij32e8du:-1y2p0ij32e3ho</OID>
                            <Integer name="changeType">1</Integer>
                            <String name="changeTypeName">Added</String>
                            <Integer name="severity">10000</Integer>
                            <String name="severityName">High</String>
                            <Timestamp name="changeTime" displayvalue="08/10/14 22:48">1412779682000</Timestamp>
                            <String name="approvalId"></String>
                            <ReportSection name="attributes" category="attributes">
                                <ReportSection name="DACL" category="added">
                                    <String name="observed">Inherits Entries: true
    NT AUTHORITY\SYSTEM, Access Allowed:
     Standard rights:
      Full Control
      Modify
      Read &amp; Execute
      List Folder Contents
      Read
      Write
      Delete
      Read Control
      Write DAC
      Write Owner
      Synchronize
     Specific rights:
      Full Control
      Traverse Folder / Execute File
      List Folder / Read Data
      Read Attributes
      Read Extended Attributes
      Create Files / Write Data
      Create Folders / Append Data
      Write Attributes
      Write Extended Attributes
      Directory Delete Child
      Read Permissions
      Change Permissions
      Take Ownership
     Header flags:
      Object Inherit
      Container Inherit
      Inherited
    BUILTIN\Administrators, Access Allowed:
     Standard rights:
      Full Control
      Modify
      Read &amp; Execute
      List Folder Contents
      Read
      Write
      Delete
      Read Control
      Write DAC
      Write Owner
      Synchronize
     Specific rights:
      Full Control
      Traverse Folder / Execute File
      List Folder / Read Data
      Read Attributes
      Read Extended Attributes
      Create Files / Write Data
      Create Folders / Append Data
      Write Attributes
      Write Extended Attributes
      Directory Delete Child
      Read Permissions
      Change Permissions
      Take Ownership
     Header flags:
      Object Inherit
      Container Inherit
      Inherited
    BUILTIN\Users, Access Allowed:
     Standard rights:
      Read &amp; Execute
      List Folder Contents
      Read
      Read Control
      Synchronize
     Specific rights:
      Traverse Folder / Execute File
      List Folder / Read Data
      Read Attributes
      Read Extended Attributes
      Read Permissions
     Header flags:
      Object Inherit
      Container Inherit
      Inherited
    BUILTIN\Users, Access Allowed:
     Specific rights:
      Create Folders / Append Data
     Header flags:
      Container Inherit
      Inherited
    BUILTIN\Users, Access Allowed:
     Specific rights:
      Create Files / Write Data
     Header flags:
      Container Inherit
      Inherited
    CREATOR OWNER, Access Allowed:
     Generic rights:
      Generic All
     Specific rights:
      Full Control
      Traverse Folder / Execute File
      List Folder / Read Data
      Read Attributes
      Read Extended Attributes
      Create Files / Write Data
      Create Folders / Append Data
      Write Attributes
      Write Extended Attributes
      Directory Delete Child
      Read Permissions
      Change Permissions
      Take Ownership
     Header flags:
      Object Inherit
      Container Inherit
      Inherit Only
      Inherited
    </String>
                                </ReportSection>
                                <ReportSection name="Group" category="added">
                                    <String name="observed">TRIPWIREENT\None</String>
                                </ReportSection>
                                <ReportSection name="Owner" category="added">
                                    <String name="observed">BUILTIN\Administrators</String>
                                </ReportSection>
                                <ReportSection name="Read-Only" category="added">
                                    <String name="observed">false</String>
                                </ReportSection>
                                <ReportSection name="SACL" category="added">
                                    <String name="observed">(null)</String>
                                </ReportSection>
                                <ReportSection name="Type" category="added">
                                    <String name="observed">Directory</String>
                                </ReportSection>
                            </ReportSection>
                        </ReportSection>
                    </ReportSection>
                    <ReportSection name="C:\Windows\System32\drivers\etc\hosts" category="element">
                        <OID>-1y2p0ij32e8dr:-1y2p0ij32e4kp</OID>
                        <ReportSection name="08/10/14 23:08" category="version">
                            <OID>-1y2p0ij32e8du:-1y2p0ij32e3hk</OID>
                            <Integer name="changeType">2</Integer>
                            <String name="changeTypeName">Modified</String>
                            <Integer name="severity">10000</Integer>
                            <String name="severityName">High</String>
                            <Timestamp name="changeTime" displayvalue="08/10/14 23:08">1412780929000</Timestamp>
                            <String name="approvalId"></String>
                            <ReportSection name="attributes" category="attributes">
                                <ReportSection name="SHA-1" category="modified">
                                    <String name="expected">de375d8a456a7345323babee88975ca567a2d5c4</String>
                                    <String name="observed">3c5520382f91cb1cd898fee2da4eba3fa338d982</String>
                                </ReportSection>
                                <ReportSection name="Size" category="modified">
                                    <String name="expected">829</String>
                                    <String name="observed">854</String>
                                </ReportSection>
                            </ReportSection>
                        </ReportSection>
                    </ReportSection>
                </ReportSection>
            </ReportSection>
            <ReportSection name="reportTotals" category="reportTotals">
                <Integer name="summary.nodeCount">1</Integer>
                <Integer name="summary.ruleCount">1</Integer>
                <Integer name="summary.elementCount">2</Integer>
            </ReportSection>
        </ReportBody>
    </ReportOutput>

    Hi Ritehere,
    I know this is simple but am beginner in Powershell Script so I was looking for logic to go through however the output you provided is not what i am looking for and your script is too complicated, as under timestamp i wanted display value and correspoding
    to display value the OID name and then name value correspoding to that OID. May be u got it wrong.
    Thanks anyways.

  • Click on a image in the swf and go to a specific section of the page

    Can any one help me with this.
    I do have an SWF file (in the main html page) with 6 time
    frames. Each frame has 3 images. On the other hand I do have a
    second html page that is nothing but the main title and 18
    sections. Every section describes one the SWF’s images.
    What I am looking for is whenever I click on one of the
    images of the SWF file; I want to go to the specific section that
    describes the image I have just clicked on.
    Thanks alot

    I am trying to do this as well. I have a drop down menu that
    I have as an embedded SWF in my html page, and I want one of the
    buttons to take you to a specific part of the html page. Does
    anyone know how to do this? Using the #name like in html does not
    appear to work. Can't find the answer anywhere!!!
    Text

  • Bridge CS6 Script to Find Multiple Images in Multiple folders.

    Is it possible to have a script to find multiple images within multiple folders that is on a external hard drive?
    For instances I have a external hard drive assuming it's for a library of pictures.
    Inside this hard drive has folders named as below
    1-1000
    1001-2000
    2001-3000
    3001-4000
    If I had a perfect csv file for example that calls out for specific pictures for example 2, 10,1500 and 2000 (remember think big, it may be a larger list than this it could be hundreds or thousands of pictures); is there a script that would allow me to find these images and save a copy of them on to my desktop so that way I don't have to hunt for them in the old fashion way? I can read scripts but writing them is a different story.

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • Script to change page to section in entire document

    Hi,
    using CS2 (WIN) I have a problem with setting sections which might sound trivial. From time to time I have to set-up a questionnaire containing forms. These forms will be filled in later by the user. In order to give some advice on how to fill in the forms correctly, completion instructions will be provided as well. The problem now is that I have to create the forms first on numbered pages. After they have been reviewed, the instructions are added next to each questionnaire form and these must not have page numbers. Up to now I use two masterpages (one with and one without page numbers) but it is very time-consuming to set a new section for each numbered page manually (several 100 pages), so I was wondering if there is a possibility to let a script do the "splitting into sections" work once the numbered pages have bee set up, before I add the completion instruction pages.
    Thanks for your help in advance.
    Angus

    Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
    mmaker --no-desktop -vf pekwm
    sed {
            find-and-goto-line-below-'root menu'-declaration, insert-text {
                                                                                                           entry for 'terminal'
                                                                                                           entry for 'run"
           ~/.pekwm/menu
    sed {
             find-line-below-'pekwm'-submenu-declaration, insert-text {
                                                                                                       entry for 'themes'
           ~/.pekwm/menu
    Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
    Last edited by lostinpurdy (2010-07-10 03:48:10)

Maybe you are looking for

  • Birthday calendar problem

    There is one birthday that I can't get into my iPad's / iPhone's Calendar.app, although it appears on my Mac. I have already deleted the birthday entry in my Address Book, re-created it: no difference. Weird. The Birthday calendar is activated and bo

  • Date format in Oracle 10g XE

    I'm using Oracle 10g XE on Windows Vista and I'm curious as to what determines the date format. According to the globalization section in the Oracle installation guide the NLS_DATE format is dependent on the NLS_LANGUAGE setting. In my database the N

  • Adcfgclone.pl dbTier ADX  connection error

    Hello, I got this error message in the Netservicehandler.log at the end of perl adcfgclone.pl dbTier. Platform config is as follows: Host: 64bit sun solaris apps: 11.5.9 db: 9.2.0 Log file follows:-- $ moreNetServiceHandler.logNetServiceHandler.log m

  • Intercompany Invoice with different currency

    Hi, I would like to ask for intercompany sales, i.e. there is an invoice (F2) from Company Code A to a customer and there is an invoice from Company Code B to Company Code A (IV). The F2 invoice has to be in GBP and the IV invoice has to be in EUR. H

  • How to catch a SQLException like this

    HI,guys I'm now connection a mysql database with jdbc.for I had set a column unique,if I insert the column with same word twice,it will throw a SQLException.the Exception Message is below: -------------------------------------------------------------