Search for string in paragraph and apply a new character style?

I'm searching for a way to find a specific string in a specific text frame and make it bold. so my thought was to search and then apply a character style from my template doc. I thought this would work, but I went wrong somewhere.
newDoc is my document. 
//something like
var Bios = "Representative Biography:\r want to leave this text normal.";
var myTextFrameBios = newDoc.pages.item(i).textFrames.add({geometricBounds:[4.5277, 2.36, 8.625, 5.375], contents:Bios});
var myTextObjectBios = myTextFrameBios.parentStory.texts.item(0);
// IS THIS CONFLICTING with my change below? Can I apply a character style within a par styled frame?
myTextObjectBios.appliedParagraphStyle = newDoc.paragraphStyles.item("CompanyProfile");
                                                  //Clear the find/change preferences.
                                                app.findGrepPreferences = NothingEnum.nothing;
                                                app.changeGrepPreferences = NothingEnum.nothing;
                                                app.findTextPreferences.findWhat = "Representative Biography:";
                                                app.changeTextPreferences.changeTo = "Representative Biography:";
                                                app.findGrepPreferences.appliedCharacterStyle = newDoc.characterStyles.item("BoldBioHead");
                                                // Perform the operation
                                                app.documents.item(0).changeGrep();
                                                app.findGrepPreferences = NothingEnum.nothing;
                                                app.changeGrepPreferences = NothingEnum.nothing;

@caseyctg – If you want to apply a character style to a text object in a specific text frame, you could restrict the scope of your script to that specific text frame:
Example with the variable "myTextFrame" you have to define before:
myTextFrame.changeText();
Btw.: you are doing a text search and clearing your GREP find/change preferences at the start of the snippet? Why is that?
You could do a:
app.changeTextPreferences = app.findTextPreferences = NothingEnum.nothing;
or:
app.changeTextPreferences = app.findTextPreferences = null;
set before the search and after the change, if you want to be on the safe side…
Uwe

Similar Messages

  • Is it possible to search for strings containing spaces and special characters?

    In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
    When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes.  Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
    Is there a way to search for strings containing spaces and special characters?

    In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
    http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Search for mai in gmail and copy text

    I am having hard time to copy text. Basically, I need to search for mail in gmail and copy text to be sent as text message or copy as note.
    1 In ff and default browser, I can search for mail, but no select option
    2 In Nokia messaging there is no option for even search.
    When I swipe from left to right, whole scree is moving. Appreciate any help.

    Check out the Scout, for searches in Contacts/ Conversations, etc....
    /t5/Maemo-Devices/Scout-released-for-N900/td-p/739629
    For Copy-Pasting from Gmail, I am not aware of the technique of doing the same from a browser. The copy-paste function works well from a text-field to another text-field.
    So, I just forward the Gmail message, so that the body of the text appears on a text-filed inside the browser......and then I copy-paste it................without really forwarding the message to anyone

  • SharePoint 2010 Enterprise Search for User Profile tags and Notes

    Hi,
    Actually my requirement is, "Sharepoint Enterprise Search for User Profile tags and Notes".
    I would like to use the Tags and Notes in enterprise search.
    Is it possible?
    Thanks & Regards
    Poomani Sankaran

    Check if this helps
    http://blogs.msdn.com/b/spses/archive/2011/02/05/social-computing-part-3-activity-feeds-social-ratings-tags-and-notes.aspx
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/

  • We are using apple tv to try to access our itunes account on the computer.  We see our library of music but when we click on the song it searches for a long time and then says that it cannot access the itunes store.  Any ideas on what we are doing wrong?

    We are using apple tv to try to access our itunes account on the computer.  We see our library of music but when we click on the song it searches for a long time and then says that it cannot access the itunes store.  Any ideas on what we are doing wrong?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • HT5071 Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Why isn't my newly published book coming up when I search for it by title and by author on iTunes and iBooks?

    Thanks, but it turns out iTunes just needed another 24 hours. Now when I search in iTunes by my name or book title, it comes up!
    Do you happen to know why it doesn't list my name on itunes? It shows the title and then By (blank). Grr.
    bit.ly/1aveWcg

  • My mac is infected with viruses, Safari can not normally search for constantly appear commercials and some unknown site. What to do? antivirus free program that you recommend?

    my mac is infected with viruses, Safari can not normally search for constantly appear commercials and some unknown site. What to do? antivirus free program that you recommend?

    You may have installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • [svn:fx-4.0.0] 13391: Updating OSMF for the ASDoc updates and taking a new SWC and RSL.

    Revision: 13391
    Revision: 13391
    Author:   [email protected]
    Date:     2010-01-08 16:12:48 -0800 (Fri, 08 Jan 2010)
    Log Message:
    Updating OSMF for the ASDoc updates and taking a new SWC and RSL.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/air-config.xml
        flex/sdk/branches/4.0.0/frameworks/flex-config.xml
        flex/sdk/branches/4.0.0/frameworks/libs/osmf.swc
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/AudioElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/AudioSeekableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundAdapter.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundDownloadableTrai t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeAudibl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeBuffer ableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeMetada ta.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositePausab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositePlayab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeSeekab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeSpatia lTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeTempor alTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeViewab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSeekabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSpatial Trait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSwitcha bleTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelViewabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSeekableT rait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSpatialTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSwitchabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialViewableT rait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentLoadedContex t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/MediaElementSprite. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/MediaPlayerSprite.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScalableSprite.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScaleMode.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScaleModeUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/drm/DRMServices.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/AudioEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/BufferEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/ContentProtectionEve nt.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/DimensionEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/FacetValueChangeEven t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/FacetValueEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/GatewayChangeEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/LoadEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaError.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaErrorEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaPlayerCapabilit yChangeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaPlayerStateChan geEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MetadataEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/NetConnectionFactory Event.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/NetNegotiatorEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PausedChangeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PlayingChangeEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PluginLoadEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/SeekEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/SwitchEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/TimeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/ViewEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/gateways/HTMLGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/gateways/RegionGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/image/ImageElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/image/ImageLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/AbsoluteLayoutFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/AnchorLayoutFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/DefaultLayoutRendere r.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutRenderer.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutTarget.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutAttributesFace t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutContextSprite. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutRendererBase.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutRendererFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/MediaElementLayoutTa rget.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/PaddingLayoutFacet.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/RegistrationPoint.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/RelativeLayoutFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/ILogger.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/ILoggerFactory.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/Log.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/TraceLogger.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/TraceLoggerFactory. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/IContainerGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaPlayer.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaPlayerState.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/URLResource.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/IFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/IIdentifier.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/KeyValueFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MediaType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/Metadata.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataNamespaces .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataWatcher.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/ObjectFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/ObjectIdentifier.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/StringIdentifier.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalFacetEvent .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalIdentifier .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetClient.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetConnectionCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetConnectionFactory.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetNegotiator.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamAudibleTrait.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamBufferableTrai t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamContentProtect ableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamDownloadableTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamPausableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamPlayableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamSeekableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamTemporalTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/StreamType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Droppe dFramesRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cNetStream.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingItem.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingNetLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingNetLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingResource.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/INetSt reamMetrics.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/ISwitc hingRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Insuff icientBandwidthRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Insuff icientBufferRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Metric sProvider.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/NetStr eamSwitchableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Suffic ientBandwidthRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingDetail.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingDetailCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingRuleBase.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/DynamicPluginLoader. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/IPluginInfo.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginClassResource. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginLoadedContext. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/StaticPluginLoader.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/swf/SWFElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/swf/SWFLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/tracking/Beacon.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/AudibleTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/BufferableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ContentProtectableTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/DownloadableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IAudible.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IBufferable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IContentProtectable. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IDisposable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IDownloadable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IPausable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IPlayable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISeekable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISpatial.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISwitchable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ITemporal.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IViewable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/LoadState.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/LoadableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/MediaTraitType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/PausableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/PlayableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SeekableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SpatialTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SwitchableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/TemporalTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ViewableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/BinarySearch.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/FMSHost.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/FMSURL.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/HTTPLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/URL.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/CuePoint.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/CuePointType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/VideoElement.as
    Added Paths:
        flex/sdk/branches/4.0.0/frameworks/rsls/osmf_flex.4.0.0.13386.swf
    Removed Paths:
        flex/sdk/branches/4.0.0/frameworks/rsls/osmf_flex.4.0.0.13104.swf

    I recently updated my eMac from Panther (10.3.x) to Tiger and let it go ahead and update by downloading the 10.4.10 patch from Apple. It has been some weeks now and so far no issues to report. So it seems ok. And my eMac is a version before yours.
    Patrick

  • Search for string and replace with frame break

    Hello there,
    We're using an InDesign CS6 Server for creating print data. The problem relates to our documents that consist of several connected text frames.
    Situation:
    The texts are exported from our database into InDesign via xml and so some automated editing in javascript. These texts contaion several paragraphs with headlines. Sometimes after the import the layout just looks bad, because the first textfield contains the fist paragraph and the headline of the second paragraph including some lines of text. Sometimes this behaviour is desired and sometimes not.
    Workaroud:
    We definde the string #*# to be our placeholder for line breaks. During the creation of the xml this string gets replaced by unicode for the hard line break (
).
    Desired Solution:
    This workaround has some disadvantages and we want our placeholder string to be translated to a frame break.
    Until now I have neither found any definition for the unicode translation of the frame break nor a script based solution that just replaces this string with a frame break. any help is appreciated.
    Regards

    Instend of define string add attribute in xml or DB
    e.g attribute name frame break="frame break"
    after that through find the attribute get the insertion ponint and apply "SpecialCharacters.FRAME_BREAK"

  • Search for string and move decimal

    Hello,
    I am trying to write code that will search for a fractional string within an array and convert it from mV to V so it can be properly compared to the other fractional string numbers in the array.
    I have an array that outputs x iterations  each with a minimum and maximum column including several different types of decimal strings (negative/positive with several decimal places) each ending with either mV and V (example string: -725.543mV).
    I then split the array into columns containing the minumum and maximum values of each iteration. I want to compare the minimum values of each iteration and find the most minimum, and do the same thing with the maximum values.
    Unfortunatley the way I'm doing it, when I convert from fractional string to number it removes the V or mV unit label but does not convert the number from mV to V. so it compares -725.543mV with -52.334V as -725.543 & -52.334 thus declaring the mV value the most minimum. I need the program to recognize that mV is less than V or search each array for values labeled with mV and move the decimal place so it is in standard V format.
    The unit label is actually part of the string and not the display (as you can see in the code I've attached) and I understand this is a little tricky with the way I have to do it. But this is a dumbed down chunk of code I will eventually incorporate into my larger program which reads the values and their units from several different types of oscilloscopes. The Scopes output the values as strings as they appear on the screen and don't differentiate between mV and V unless they are told to output the units which just tags them on the end of the string.
    I'm sorry for the large post. SO to sum up I need to search an array to make sure all values have the same units, if they don't I need to convert each value to the proper unit and output the max and min from the resulting array. my code is attached. Thank you for your help.
    Solved!
    Go to Solution.
    Attachments:
    File manipulation.vi ‏15 KB

    crossrulz wrote:
    jcarmody wrote:
    camerond wrote:
    Sorry, Jim, that's not quite right. You forgot to consider significant figures (your third min is not quite right). [...]
    Good catch, but, really?   
    That "Finally!" comes out to -5569492V to me.  Holy crap.  -5.569492MV!  I think there's a problem there.
    Carp! Stupid negative numbers, shouldn't be allowed. Put a piece of duck tape over the place for that negative sign, that'll fix it.
    I'll get back, it's now a matter of principle.
    Jim, how does your algorithm do when there are 8 or 9 sig figs, say -56.9492345mV? (Yep, too lazy to draw it in myself.)
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Find a specific paragraph style within a table and apply a specific cell style?

    I'm a total beginner when it comes to scripting, but I would like to create a script that finds the paragraph style "resultsUL" within a large table and applies the cell style "female". Sure wish the find/replace was able to account for cell styles as well as paragraph and character styles. Is anyone willing to help me with this? Thank you!

    Hi,
    I do it quickly defining a simple research on the "resultsUL" para style and using a loop with QuicKeys as:
    Cmd-0 is a shortcut associated to the "female" cell style.
    So, What I do: search the para style (Cmd-option-F) and apply the cell style, then search again…
    As easy to do with QuicKeys, I think that can be easily done with a [JS] (faster process!).

  • Searching for strings in a txt file

    I am writing a program based on the six degrees of seperation theory.
    Basically I have been given a (very large) txt file from the imdb with a list of all the films written in it.
    The text in the document is written like this:
    'Tis Autumn: The Search for Jackie Paris (2006)/Paris, Jackie/Moody, James (IV)/Bogdanovich, Peter/Vera, Billy/Ellison, Harlan/Newman, Barry/Whaley, Frank/Murphy, Mark (X)/Tosches, Nick (I)/Moss, Anne Marie
    (Desire) (2006)/Ruggieri, Elio/Micijevic, Irena
    .45 (2006)/Dorff, Stephen/Laresca, Vincent/Eddis, Tim/Bergschneider, Conrad/Campbell, Shawn (II)/Macfadyen, Angus/John, Suresh/Munch, Tony/Tyler, Aisha/Augustson, Nola/Greenhalgh, Dawn/Strange, Sarah/Jovovich, Milla/Hawtrey, Kay
    10 Items or Less (2006)/Ruiz, Hector Atreyu/Torres, Emiliano (II)/Parsons, Jim (II)/Freeman, Morgan (I)/Pallana, Kumar/Cannavale, Bobby/Nam, Leonardo/Hill, Jonah/Vega, Paz/Echols, Jennifer/Dudek, Anne/Berardi, Alexandra
    10 MPH (2006)/Weeks, Hunter/Armstrong, Pat (II)/Caldwell, Josh/Waisman, Alon/Keough, Johnathan F./Weeks, Gannon
    10 Tricks (2006)/Cruz, Raymond/Swetland, Paul/Selznick, Albie/Hennings, Sam/Gleason, Richard/Leake, Damien/Skipp, Beth/Ishibashi, Brittany/Thompson, Lea (I)/Jinaro, Jossara/Brink, Molly
    1001 Nights (2006)/Wright, Jeffrey (I)
    10th & Wolf (2006)/Lee, Tommy (VI)/Renfro, Brad/Ligato, Johnny/De Laurentiis, Igor/Luke Jr., Tony/Mihok, Dash/Garito, Ken/Capodice, John/Dennehy, Brian/Gullion, Jesse/Salvi, Francesco (I)/Cordek, Frank/Marsden, James (I)/Bernard, Aaron/Brennan, Patrick (VII)/O'Rourke, Ben/Gallo, Billy/Heaphy, James/Stragand, Dave/Vellozzi, Sonny/Pistone, Joe (I)/Morse, David (III)/Landis, Pete/Cain, Atticus/Trevelino, Dan/Demme, Larry/Sisto, Frank/Rosenbaum, Paul/Grimaldi, James (I)/Ribisi, Giovanni/Hopper, Dennis/Devon, Tony/Sigismondi, Barry/Kilmer, Val/Marinelli, Sonny/Cacia, Joseph/Rossi, Leo (II)/Tott, Jeffrey/Wawrzyniak, Aaron/Boombotze, Joey/Marie, Corina/Arvie, Michilline/Warren, Lesley Ann/De Laurentiis, Veronica/Moresco, Amanda/Boecker, Margot/Rossi, Rose/Latimore, Meritt/Dunlap, Doreen/Perabo, Piper/Horrell, Nickole/Sonnichsen, Ingrid
    11 Minutes Ago (2006)/Irving, Len/Welzbacher, Craig/Michaels, Ian/Dahl, Evan Lee/Gebert, Bob/Juuso, Jeremy/Hope, Trip/Green-Gaber, Renata/Dawn, Turiya/Reneau, Taryn/M
    Thats just 2 lines!
    what the program will do is take in a name (from a gui) of an actor/actress and find the smallest connection to a famous actor.
    So first things first, my idea of thinking is to search the file for K.E.V.I.N. B.A.C.O.N and all his films, and safe them into an array. Then do another search for films from the actor that the user entered at the gui. then find the shortest possible connection to both stars.
    my code for the search part of the program
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileNotFoundException;
    public class FileSearch {
         File aFile = new File("cast.06.txt");     
         FileInputStream inFile = null;
         String actor = "surname, forename"; // the person who will be the centre point e.g. kevin.bacon.
           //get the result of the actor from the gui will go here.
         public void openFilm()
              try
                  inFile = new FileInputStream(aFile);     
              catch(FileNotFoundException e)
                   System.out.println("Error");
    }The problem I have is that I can't work out how to search the txt file for a specific string/s and save them into an array. (I'm not sure if this is the best way to go about it or not at this stage).
    So whats the best way to search for an actor from that file and save the film title and the year of release?
    Hope this makes sense? what I hope the final program will be like is like this http://oracleofbacon.org/

    I went away and looked at regular expressions and this is what I came up with
    public class NameSearch{
         public static void main(String[] args)
              NameSearch ns = new NameSearch();
              ns.runIt();
         public void runIt()
              java.util.Scanner fileScan = null;
              try{
                   fileScan = new java.util.Scanner(new java.io.File("imdb.txt"));
              }catch(java.io.FileNotFoundException e)
                   e.printStackTrace();
                   System.exit(0);
              String token = null;
              String actor = "Surname, Forename";
    //real name will go in actor, left it like that for example
              while(fileScan.hasNext()){
                   token = fileScan.next();
                   Pattern pattern = Pattern.compile(actor);
                   Matcher m = pattern.matcher(token);
                   while(m.find())
                        System.out.println(m.start() + m.end());
    }This by any means not finished, I'm just trying to get to grips with regualr expressions. But when I run the program it doesn't return anything, from what I've tried to work out is it should return actor x amount of times they appear in the file. But when I run it nothing comes back (the actors name is in the text file) so I'm not too sure what I'm doing wrong, any suggestion please

  • Searching for string in text files on XP

    Hi,
    At the moment I'm working on a Struts program. The output I get is:
    The requested resource (Invalid path /displayAddProductForum was requested) is not available.Somewhere in my files, I have a line containing /displayAddProductForum that should be displayAddProductForm. As I'm using XP as my development platform, I use the 'Windows Explorer' search facility. And I have noticed this search facility does not look in .java, .jsp and any other file with a non-Microsoft file-extension. So, how do you search for a string in a source file on XP?
    Abel

    sabre150 wrote:
    kajbj wrote:
    sabre150 wrote:
    Abel wrote:
    , I use the 'Windows Explorer' search facility. And I have noticed this search facility does not look in .java, .jsp and any other file with a non-Microsoft file-extension. So, how do you search for a string in a source file on XP? Err.. On my XP it does search though java/jsp files if I tell it to!You mean by modifying the registry?No! Using the right mouse click on a directory to get a context menu -> Search -> (All or part of filename : .java ) and (A word or phrase in the file : blah blah blah) -> Search
    Edit : Errr.. maybe I'm talking rubbish because I have just tested this and it only finds 5 java files of mine that contain the word 'class'! I'm sure it used to work because in my 'Windows' days I frequently used it.
    Edited by: sabre150 on Dec 20, 2007 12:44 PMSounds a bit odd. Search in windows should only search in registered file types and neither jsp nor java are registered types. It's however possible to modify the registry and add extensions (but it's not possible to say search within all types of files, and that sucks)

  • How to search for files using wildcards * and ?.

    Hi All,
    I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
    Thanks

    Hi All,
    First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
    I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
    I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
    Enjoy
    * File Name: WildcardSearch.java
    * Date: Jan 9, 2004
    * This class will search all files in a directory using the
    * asterisk (*) and/or question mark (?) as wildcards which may be
    * used together in the same file name.  A File [] is returned containing
    * an array of all files found that match the wildcard specifications.
    * Command line example:
    * c:\>java WildcardSearch c:\windows s??t*.ini
    * New sWild: s.{1}.{1}t.*.ini
    * system.ini
    * Command line break down: Java Program = java WildcardSearch
    *                          Search Directory (arg[0]) = C:\Windows
    *                          Files To Search (arg[1]) = s??t*.ini
    * Note:  Some commands will not work from the command line for arg[1]
    *        such as *.*, however, this will work if you if it is passed
    *        within Java (hard coded)
    * @author kmportner
    import java.io.File;
    import java.io.FilenameFilter;
    public class WildcardSearch
         private static String sWild = "";
          * @param args - arg[0] = directory to search, arg[1] = wildcard name
         public static void main(String[] args)
              String sExtDir = args[0]; // directory to search
              sWild = args[1];   // wild card to use - example: s??t*.ini
              sWild = replaceWildcards(sWild);
              System.out.println("New sWild: " + sWild);
              File fileDir = new File(sExtDir);
              File[] arrFile = fileDir.listFiles(new FilenameFilter()
                   public boolean accept(File dir, String name)
                        return (name.toLowerCase().matches(sWild));
              for (int i = 0; i < arrFile.length; ++i)
                   System.out.println(arrFile.getName());
         }     // end main
         * Checks for * and ? in the wildcard variable and replaces them correct
         * pattern characters.
         * @param wild - Wildcard name containing * and ?
         * @return - String containing modified wildcard name
         private static String replaceWildcards(String wild)
              StringBuffer buffer = new StringBuffer();
              char [] chars = wild.toCharArray();
              for (int i = 0; i < chars.length; ++i)
                   if (chars[i] == '*')
                        buffer.append(".*");
                   else if (chars[i] == '?')
                        buffer.append(".{1}");
                   else
                        buffer.append(chars[i]);
              return buffer.toString();
         }     // end replaceWildcards method
    }     // end class

  • Search for end-of-paragraph before end of story? CS6

    Hi,
    Does anybody know of a way to search for a paragraph mark directly
    before an end of story marker? I'd like to get rid of them, e.g., in
    footnotes, where the last paragraph mark causes an unnecessary blank line.
    Thanks,
    Ariel

    I found \z on Mike Witherell's great little chart at http://www.jetsetcom.net/useful-resources/indesign-cs6-resources.html
    End of paragraph, at least in GREP is a location, not a character (the metacharacter is $) and can't be selected or replaced. Every paragraph has one. Paragraphs before the end of story also have a paragaph break, and that's what you are trying to remove at the end of your footnote story.
    @David, Why bother withthe lookahead? \z is the location, so I would presume that the search would start at the end of story and look at the last character. That has to be faster than parsing every break in the paragraph to check for the end of story location after, and there's no possibility that you will actually delete the EOS since it can't actually be selected.

Maybe you are looking for

  • IMAP Gmail not working properly after update ?

    I have setup my Gmail account using IMAP on my Mac. I also have Gmail setup on my iphone, again as IMAP. When I read the emails on my iphone, it is synced with my gmail account, as I see it change on the web. However, my Apple Mail still shows it as

  • Userexit MM06E005 for ME21N

    Hi Experts, I have added a custom field to item data using exit MM06E005(screen 0111) for ME21/22/23n transaction. when I activate the exit, it creates a tab as "Customer Data" and the field is placed in it. I want to change the tab title from "Custo

  • HT5262 How do I turn off icloud match for itunes?

    I don't get good internet service on my phone when I am working inside my warehouse. I want to turn off the itunes match feature so it will just play my songs off my itunes instead of trying to find the signal to play the songs off the internet. How

  • PRO * COBOL with Oracle 9i

    We are in the process of Database upgrades and a pro*cobol program which was working in HP UX 11 / Oracle 7.3.4 was not working in HP UX 11 / Oracle 9i. We are getting the following error when trying to compile it (make) - sh: 11139 Memory fault(core

  • Why won't my Adode account open?

    When I try to log into my account at Adobe.com the site accepts my user name and password but the account won't open. I can open the Adobe account using IE or Google Chrome. At first I suspected the problem might involve a popup questionaire that app