Character deleting

Hello everyone!
What I want to do is delete the spaces and quotation marks in a String.
let's say I have a String like this:
Here are a few spaces" text_test_blubb : "
and what I want to get is this, after removing the characters:
text_test_blubb :
To explain it a little further: I want to have every space before the 1st quotation mark deleted. However, the text within the marks needs to be the same as it is, meaning that if there are spaces there they are not allowed to be removed. And to come to an end I want to delete the quotation marks as well.
I thought of a for loop which runs through this String which I had turned into a characterArray. However, it doesn't quite work like I want to have it.
Can anyone please help? If you can post an example code it would be simply wonderful!
Greetings

lol
sorry... for not being able to express myself well enough and I suppose it is quite complicated to explain...but I'll try. xD
_________"_text.blubb.test_:_"
so what I want to delete is that: _
however everything in beteween the " - signs needs to remain as it is BUT the " need to be removed too.
so what I want to get in the end printed on the console is that:
text.blubb.test:_
I hope that's better to understand...xD

Similar Messages

  • Special Character deletion

    Hi All,
      Is there any FM or logic to delete the below special characters from a string
      The text looks like this  " R |-A^ssing Four ".
    I have checked with the FMs : "SF_SPECIALCHAR_DELETE"  &  "TELNUMBER_REMOVE_SPECIAL_CHAR".
    These FMs will delete the spaces between words, i do not want that to happen.
    Thanks,
    Mars

    HI,
    FM SF_SPECIALCHAR_DELETE is pretty simple. You can easily make a copy of it and amend it. The line which gets rids of spaces between words is
    CONDENSE  WITH_SPECIALCHAR NO-GAPS.
    So simply just get rid of this line.
    Cheers

  • Special character deletion issue

    Hi all,
    I have a text field which contains special characters  which are not being entered by key board. I would like to repalce those chars. system is displaying these spl chars as '#'. I have used function module 'SCP_REPLACE_STRANGE_CHARS' , but it is replacing all the specail chars to dots(.), due to this if I have any valid chinese or japanese chars those are also getting replaced.
    pls any can help me out to resolve this issue.
    Thanks in advance
    reddi

    hi,
    if you want use this fm
    code as like below
    check this program
    RFFORI99
    or
    use like below
    form special_character  changing p_text_in p_text_out.
      call function 'SCP_REPLACE_STRANGE_CHARS'
        exporting
          intext                  = p_text_in
        INTEXT_LG               = 0
        INTER_CP                = '0000'
        INTER_BASE_CP           = '0000'
        IN_CP                   = '0000'
        REPLACEMENT             = 46
        importing
          outtext                 = p_text_out
        OUTUSED                 =
        OUTOVERFLOW             =
       exceptions
         invalid_codepage        = 1
         codepage_mismatch       = 2
         internal_error          = 3
         cannot_convert          = 4
         fields_not_type_c       = 5
         others                  = 6.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                                        " special_character
    Thanks and regards
    durga.K

  • Deleting paragraphs in TextEdit

    Hi there,
       I'm having some issues deleting certain paragraphs in a document.  I want to delete every paragraph which doesn't start with '{'.  I have done this so far:
    tell application "TextEdit"
      activate
              open "/Users/John/Desktop/map.rtf"
              set this_text to the text of document 1
    end tell
    set the paragraph_list to every paragraph of this_text
    repeat with i from 1 to the count of paragraphs of this_text
              set this_paragraph to item i of the paragraph_list
              try
                        if first character of this_paragraph is not "{" then
      delete item i of paragraph_list
                        end if
              on error  --If there isn't any character
      delete item i of paragraph_list
              end try
    end repeat
    I don't know what I am doing wrong.  Thanks in advance.

    In plain words, I want to delete a paragraph if it contais the words "Water":"0"  That's why I tried to use 'if offset=0', Am I wrong? (again? )
    You were nearly right! See below:
    set theNewText to ""
    tell application "TextEdit"
        set theText to text of front document
        repeat with k from 1 to (count paragraphs of theText)
            set thisParagraph to paragraph k of theText
            if (length of thisParagraph > 0) ¬
                and ((offset of "\"Water\":\"0\"" in thisParagraph) is 0) ¬
                and (character 1 of thisParagraph is "{") then
                set theNewText to theNewText & thisParagraph & return
            end if
        end repeat
        make new document at front with properties {text:theNewText}
        activate
    end tell

  • File sharing: possible to warn second user of a file that it is already open?

    [I hope this forum is the best place for my question.]
    I run a small business: a medical practice. I use a Mac Mini to store all my documents, and we use two iMacs to access the documents through File Sharing. I do not run OSX Lion Server. All machines have OSX 10.7.5.
    I have a Numbers spreadsheet on the Mac Mini that is frequently opened and modified by the receptionist on one iMac, but also occasionally opened and modified by the doctor on the other iMac. (The vast majority of other files never need to be opened by more than one user.) Occasionally, the Numbers file will be opened by both users at the same time. If one user modifies the file, when s/he tries to close the file, a dialog pops up warning that there are two versions, and providing the choice to Revert or Duplicate & Save. This means a choice between losing changes, or subsequently checking two documents for differences.
    Note that it isn't possible to simply call out, "Hey, have you got that spreadsheet open?" when the doctor is seeing a patient.
    Also note that privacy is an issue, as the spreadsheet contains numerous patient names.
    Is there a way to: (a) Warn the second user opening the file that it is already open? Or (b) Make the file read-only when a second user tries to open it? (c) Inform the second user that the file is in use, and they can't open it at all. (There may be other solutions that I can't think of.)
    I am open to all ideas. I have tried dabbling with AppleScript, but can't find a solution with my emerging AppleScript skills. I have been trying to find out if installing OSX Lion Server on the Mac Mini would help, but I can't find the answer online. (I would have to pay someone to install OSX Lion Server, as I have medical software installed that may or may not fit well with Server.)
    Thanks in advance for any help.
    Peter

    hmm, then would there be any way to reproduce the effect of the 'delete' or 'backspace' keys? If I'm right, I think there was an ASCII code for the backspace character... Would it be possible to insert it to get a character deleted!? :/
    I really need to find a way to do all of these operations on a text file because I think it wouldn't be a good idea to completely re-write 30Mb+ large files each time some data has to be modified :P

  • Android, backspace doesn't work properly in a flash.text.TextField

    Hello,
    I have a bug on my Nexus 5 Android 4.4 Air 4.0.
    when I scroll the text in the textField and I select the text (in my example near "subclass" word), the TextField get focus, if I put on the backspace key, the character deleted is the previous character the first time, and if I put again on the backspace key, the caracter deleted is the first character and not the previous character.
    package{
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    public class Main extends Sprite {
      private var myTextField:TextField = new TextField();
      public function Main() {
        stage.scaleMode = StageScaleMode.NO_SCALE;
        stage.align = StageAlign.TOP_LEFT;
        addEventListener(Event.ADDED_TO_STAGE, init);
      private function init(event:Event):void {
        myTextField.type="input";
        myTextField.text="The TextField class is used to create display objects for text display and input. You can give a text field an instance name in the Property inspector and use the methods and properties of the TextField class to manipulate it with ActionScript. TextField instance names are displayed in the Movie Explorer and in the Insert Target Path dialog box in the Actions panel.\nTo create a text field dynamically, use the TextField() constructor.\n\nThe methods of the TextField class let you set, select, and manipulate text in a dynamic or input text field that you create during authoring or at runtime.\n\nActionScript provides several ways to format your text at runtime. The TextFormat class lets you set character and paragraph formatting for TextField objects. You can apply Cascading Style Sheets (CSS) styles to text fields by using the TextField.styleSheet property and the StyleSheet class. You can use CSS to style built-in HTML tags, define new formatting tags, or apply styles. You can assign HTML formatted text, which optionally uses CSS styles, directly to a text field. HTML text that you assign to a text field can contain embedded media (movie clips, SWF files, GIF files, PNG files, and JPEG files). The text wraps around the embedded media in the same way that a web browser wraps text around media embedded in an HTML document.\n\nFlash Player supports a subset of HTML tags that you can use to format text. See the list of supported HTML tags in the description of the htmlText property.\n\nView the examples\n\nMore examples\n\nModifying the text field contents\nDisplaying HTML text\nUsing images in text fields\nScrolling text in a text field\nSelecting and manipulating text\nCapturing text input\nRestricting text input\nFormatting text\nWorking with static text\nTextField Example: Newspaper-style text formatting\nLearn more\n\nUse native features with a soft keyboard\nDisplay programming\nBasics of display programming\nCore display classes\nChoosing a DisplayObject subclass\nBasics of Working with text\nUsing the TextField class\nDisplaying text\nAdvanced text rendering\nRelated API Elements\n\nflash.text.TextFormat\nflash.text.StyleSheet\nhtmlText\n\nPublic Properties\n Show Inherited Public Properties\n   Property  Defined By\n      alwaysShowSelection : Boolean\nWhen set to true and the text field is not in focus, Flash Player highlights the selection in the text field in gray.\nTextField\n      antiAliasType : String\nThe type of anti-aliasing used for this text field.\nTextField\n      autoSize : String\nControls automatic sizing and alignment of text fields.\nTextField\n      background : Boolean\nSpecifies whether the text field has a background fill.\nTextField\n      backgroundColor : uint\nThe color of the text field background.\nTextField\n      border : Boolean\nSpecifies whether the text field has a border.\nTextField\n      borderColor : uint\nThe color of the text field border.\nTextField\n      bottomScrollV : int\n[read-only] An integer (1-based index) that indicates the bottommost line that is currently visible in the specified text field.\nTextField\n      caretIndex : int\n[read-only] The index of the insertion point (caret) position.\nTextField\n      condenseWhite : Boolean\nA Boolean value that specifies whether extra white space (spaces, line breaks, and so on) in a text field with HTML text is removed.\nTextField\n      defaultTextFormat : flash.text:TextFormat\nSpecifies the format applied to newly inserted text, such as text entered by a user or text inserted with the replaceSelectedText() method.\nTextField\n      displayAsPassword : Boolean\nSpecifies whether the text field is a password text field.\nTextField\n      embedFonts : Boolean\nSpecifies whether to render by using embedded font outlines.\nTextField\n      gridFitType : String\nThe type of grid fitting used for this text field.\nTextField\n      htmlText : String\nContains the HTML representation of the text field contents.\nTextField\n      length : int\n[read-only] The number of characters in a text field.\nTextField\n      maxChars : int\nThe maximum number of characters that the text field can contain, as entered by a user.\nTextField\n      maxScrollH : int\n[read-only] The maximum value of scrollH.\nTextField\n      maxScrollV : int\n[read-only] The maximum value of scrollV.\nTextField\n      mouseWheelEnabled : Boolean\nA Boolean value that indicates whether Flash Player automatically scrolls multiline text fields when the user clicks a text field and rolls the mouse wheel.\nTextField\n      multiline : Boolean\nIndicates whether field is a multiline text field.\nTextField\n      numLines : int\n[read-only] Defines the number of text lines in a multiline text field.\nTextField\n      restrict : String\nIndicates the set of characters that a user can enter into the text field.\nTextField\n      scrollH : int\nThe current horizontal scrolling position.\nTextField\n      scrollV : int\nThe vertical position of text in a text field.\nTextField\n      selectable : Boolean\nA Boolean value that indicates whether the text field is selectable.\nTextField\n      selectionBeginIndex : int\n[read-only] The zero-based character index value of the first character in the current selection.\nTextField\n      selectionEndIndex : int\n[read-only] The zero-based character index value of the last character in the current selection.\nTextField\n      sharpness : Number\nThe sharpness of the glyph edges in this text field.\nTextField\n      styleSheet : StyleSheet\nAttaches a style sheet to the text field.\nTextField\n      text : String\nA string that is the current text in the text field.\nTextField\n      textColor : uint\nThe color of the text in a text field, in hexadecimal format.\nTextField\n      textHeight : Number\n[read-only] The height of the text in pixels.\nTextField\n      textInteractionMode : String\n[read-only] The interaction mode property, Default value is TextInteractionMode.NORMAL.\nTextField\n      textWidth : Number\n[read-only] The width of the text in pixels.\nTextField\n      thickness : Number\nThe thickness of the glyph edges in this text field.\nTextField\n      type : String\nThe type of the text field.\nTextField\n      useRichTextClipboard : Boolean\nSpecifies whether to copy and paste the text formatting along with the text.\nTextField\n      wordWrap : Boolean\nA Boolean value that indicates whether the text field has word wrap.\nTextField";
        myTextField.border=true;
        myTextField.width=myTextField.height=300;
        addChild(myTextField);
    Thanks.

    I have this bug on Galaxy Nexus Android 4.3, I don't have this bug on Galaxy S Android 2.3, the bug occurs with the new Google Keyboard 3.0
    the app descriptor
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/4.0">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.5
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
              <!-- A universally unique application identifier. Must be unique across all AIR applications.
              Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
              <id>TextFieldFB</id>
              <!-- Used as the filename for the application. Required. -->
              <filename>TextFieldFB</filename>
              <!-- The name that is displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <name>TextFieldFB</name>
              <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
              Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
              An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
              <versionNumber>0.0.1</versionNumber>
              <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
              <!-- <versionLabel></versionLabel> -->
              <!-- Description, displayed in the AIR application installer.
              May have multiple values for each language. See samples or xsd schema file. Optional. -->
              <!-- <description></description> -->
              <!-- Copyright information. Optional -->
              <!-- <copyright></copyright> -->
              <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
              <!-- <publisherID></publisherID> -->
              <!-- Settings for the application's initial window. Required. -->
              <initialWindow>
                        <!-- The main SWF or HTML file of the application. Required. -->
                        <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
                        <content>[Cette valeur sera remplacée par Flash Builder dans le fichier app.xml de sortie]</content>
                        <!-- The title of the main window. Optional. -->
                        <!-- <title></title> -->
                        <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
                        <!-- <systemChrome></systemChrome> -->
                        <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
                        <!-- <transparent></transparent> -->
                        <!-- Whether the window is initially visible. Optional. Default false. -->
                        <!-- <visible></visible> -->
                        <!-- Whether the user can minimize the window. Optional. Default true. -->
                        <!-- <minimizable></minimizable> -->
                        <!-- Whether the user can maximize the window. Optional. Default true. -->
                        <!-- <maximizable></maximizable> -->
                        <!-- Whether the user can resize the window. Optional. Default true. -->
                        <!-- <resizable></resizable> -->
                        <!-- The window's initial width in pixels. Optional. -->
                        <!-- <width></width> -->
                        <!-- The window's initial height in pixels. Optional. -->
                        <!-- <height></height> -->
                        <!-- The window's initial x position. Optional. -->
                        <!-- <x></x> -->
                        <!-- The window's initial y position. Optional. -->
                        <!-- <y></y> -->
                        <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
                        <!-- <minSize></minSize> -->
                        <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
                        <!-- <maxSize></maxSize> -->
            <!-- The aspect ratio of the app ("portrait" or "landscape" or "any"). Optional. Mobile only. Default is the natural orientation of the device -->
            <!-- <aspectRatio></aspectRatio> -->
            <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
            <!-- <autoOrients></autoOrients> -->
            <!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->
            <!-- <fullScreen></fullScreen> -->
            <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->
            <!-- <renderMode></renderMode> -->
            <!-- Whether the default direct mode rendering context allocates storage for depth and stencil buffers.  Optional.  Default false. -->
            <!-- <depthAndStencil></depthAndStencil> -->
                        <!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none").  Optional.  Defaults "pan." -->
                        <!-- <softKeyboardBehavior></softKeyboardBehavior> -->
                        <!-- Display Resolution for the app (either "standard" or "high"). Optional, OSX-only. Default "standard" -->
                        <!-- <requestedDisplayResolution></requestedDisplayResolution> -->
              <autoOrients>true</autoOrients>
            <fullScreen>false</fullScreen>
            <visible>true</visible>
        </initialWindow>
              <!-- We recommend omitting the supportedProfiles element, -->
              <!-- which in turn permits your application to be deployed to all -->
              <!-- devices supported by AIR. If you wish to restrict deployment -->
              <!-- (i.e., to only mobile devices) then add this element and list -->
              <!-- only the profiles which your application does support. -->
              <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
              <!-- Languages supported by application -->
              <!-- Only these languages can be specified -->
              <!-- <supportedLanguages>en de cs es fr it ja ko nl pl pt ru sv tr zh</supportedLanguages> -->
              <!-- The subpath of the standard default installation location to use. Optional. -->
              <!-- <installFolder></installFolder> -->
              <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
              <!-- <programMenuFolder></programMenuFolder> -->
              <!-- The icon the system uses for the application. For at least one resolution,
              specify the path to a PNG file included in the AIR package. Optional. -->
              <!-- <icon>
                        <image16x16></image16x16>
                        <image29x29></image29x29>
                        <image32x32></image32x32>
                        <image36x36></image36x36>
                        <image40x40></image40x40>
                        <image48x48></image48x48>
                        <image50x50></image50x50>
                        <image57x57></image57x57>
                        <image58x58></image58x58>
                        <image72x72></image72x72>
                        <image76x76></image76x76>
                        <image80x80></image80x80>
                        <image96x96></image96x96>
                        <image100x100></image100x100>
                        <image114x114></image114x114>
                        <image120x120></image120x120>
                        <image128x128></image128x128>
                        <image144x144></image144x144>
                        <image152x152></image152x152>
                        <image512x512></image512x512>
                        <image732x412></image732x412>
                        <image1024x1024></image1024x1024>
              </icon> -->
              <!-- Whether the application handles the update when a user double-clicks an update version
              of the AIR file (true), or the default AIR application installer handles the update (false).
              Optional. Default false. -->
              <!-- <customUpdateUI></customUpdateUI> -->
              <!-- Whether the application can be launched when the user clicks a link in a web browser.
              Optional. Default false. -->
              <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
              <!-- Listing of file types for which the application can register. Optional. -->
              <!-- <fileTypes> -->
                        <!-- Defines one file type. Optional. -->
                        <!-- <fileType> -->
                                  <!-- The name that the system displays for the registered file type. Required. -->
                                  <!-- <name></name> -->
                                  <!-- The extension to register. Required. -->
                                  <!-- <extension></extension> -->
                                  <!-- The description of the file type. Optional. -->
                                  <!-- <description></description> -->
                                  <!-- The MIME content type. -->
                                  <!-- <contentType></contentType> -->
                                  <!-- The icon to display for the file type. Optional. -->
                                  <!-- <icon>
                                            <image16x16></image16x16>
                                            <image32x32></image32x32>
                                            <image48x48></image48x48>
                                            <image128x128></image128x128>
                                  </icon> -->
                        <!-- </fileType> -->
              <!-- </fileTypes> -->
        <!-- iOS specific capabilities -->
              <!-- <iPhone> -->
                        <!-- A list of plist key/value pairs to be added to the application Info.plist -->
                        <!-- <InfoAdditions>
                <![CDATA[
                    <key>UIDeviceFamily</key>
                    <array>
                        <string>1</string>
                        <string>2</string>
                    </array>
                    <key>UIStatusBarStyle</key>
                    <string>UIStatusBarStyleBlackOpaque</string>
                    <key>UIRequiresPersistentWiFi</key>
                    <string>YES</string>
                ]]>
            </InfoAdditions> -->
            <!-- A list of plist key/value pairs to be added to the application Entitlements.plist -->
                        <!-- <Entitlements>
                <![CDATA[
                    <key>keychain-access-groups</key>
                    <array>
                        <string></string>
                        <string></string>
                    </array>
                ]]>
            </Entitlements> -->
              <!-- Display Resolution for the app (either "standard" or "high"). Optional. Default "standard" -->
              <!-- <requestedDisplayResolution></requestedDisplayResolution> -->
              <!-- Forcing Render Mode CPU for the devices mentioned. Optional  -->
              <!-- <forceCPURenderModeForDevices></forceCPURenderModeForDevices> -->
              <!-- File containing line separated list of external swf paths. These swfs won't be
              packaged inside the application and corresponding stripped swfs will be output in
              externalStrippedSwfs folder. -->
              <!-- <externalSwfs></externalSwfs> -->
              <!-- </iPhone> -->
              <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
        <!--<android> -->
        <!--          <manifestAdditions>
                        <![CDATA[
                                  <manifest android:installLocation="auto">
                                            <uses-permission android:name="android.permission.INTERNET"/>
                                            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                                            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                                            <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                                            <application android:enabled="true">
                                                      <activity android:excludeFromRecents="false">
                                                                <intent-filter>
                                                                          <action android:name="android.intent.action.MAIN"/>
                                                                          <category android:name="android.intent.category.LAUNCHER"/>
                                                                </intent-filter>
                                                      </activity>
                                            </application>
                </manifest>
                        ]]>
            </manifestAdditions> -->
                  <!-- Color depth for the app (either "32bit" or "16bit"). Optional. Default 16bit before namespace 3.0, 32bit after -->
            <!-- <colorDepth></colorDepth> -->
            <!-- Indicates if the app contains video or not. Necessary for ordering of video planes with graphics plane, especially in Jellybean - if you app does video this must be set to true - valid values are true or false -->
            <!-- <containsVideo></containsVideo> -->
        <!-- </android> -->
              <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    <android>
            <manifestAdditions><![CDATA[
                                  <manifest android:installLocation="auto">
                                      <!--See the Adobe AIR documentation for more information about setting Google Android permissions-->
                                      <!--La suppression de l’autorisation android.permission.INTERNET aura comme effet secondaire
                        de vous empêcher de déboguer l’application sur le périphérique.-->
                                      <!--<uses-permission android:name="android.permission.INTERNET"/>-->
                                      <!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>-->
                                      <!--<uses-permission android:name="android.permission.READ_PHONE_STATE"/>-->
                                      <!--<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>-->
                                      <!--Les autorisations DISABLE_KEYGUARD et WAKE_LOCK doivent être permutées
                        afin d’accéder aux API SystemIdleMode d’AIR.-->
                                      <!--<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>-->
                                      <!--<uses-permission android:name="android.permission.WAKE_LOCK"/>-->
                                      <!--<uses-permission android:name="android.permission.CAMERA"/>-->
                                      <!--<uses-permission android:name="android.permission.RECORD_AUDIO"/>-->
                                      <!--Les autorisations ACCESS_NETWORK_STATE et ACCESS_WIFI_STATE doivent être
                        permutées afin d’utiliser les API NetworkInfo d’AIR.-->
                                      <!--<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>-->
                                      <!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>-->
                                  </manifest>
                        ]]></manifestAdditions>
        </android>
        <iPhone>
            <InfoAdditions><![CDATA[
                                  <key>UIDeviceFamily</key>
                                  <array>
                                            <string>1</string>
                                            <string>2</string>
                                  </array>
                        ]]></InfoAdditions>
            <requestedDisplayResolution>high</requestedDisplayResolution>
        </iPhone>
    </application>

  • [AS][CS3] mathtype replace script

    Hi, I edited the mathtype importscript to work better with the selection method.
    In CS2 it was working fine, in CS3 not any more of course after I converted my document to the new version and wanted to replace the tect to inline graphics.
    Problem is off course the find function, it gives an error on «event K2 Find»
    I have read some topics but need some help on what I should alter, of course «event K2 Find» but is this the only line or should it be completely rewritten?
    Here is the script:
    Deleted some intro info or it's too long.
    -- get the source folder for the equations from the user and compile a list of the enclosed files
    set the sourceFolder to choose folder with prompt "Select the directory containing the equations:"
    set the fileList to list folder sourceFolder without invisibles
    -- step through each file in the list, search for a matching name tag in the active document, and
    -- replace with the file and move the baseline of the placed equation
    repeat with i from 1 to the number of items in the fileList
    set currentItem to item i of the fileList
    set currentFilePath to ((sourceFolder as string) & currentItem)
    -- test if the filename is not a folder and then place it
    if (info for (currentFilePath as alias)) is not folder then
    set searchstring to "<<" & currentItem & ">>"
    place_file(searchstring, currentFilePath, get_baseline(currentFilePath as alias))
    end if
    end repeat
    display dialog "Finished placing files from the folder " & (sourceFolder as string) & "."
    * place_file():
    on place_file(fileName, filePath, fileBaseline)
    tell application "Adobe InDesign CS3"
    -- test that a document is open
    if (count documents) > 0 then
    set myDocument to active document
    tell myDocument
    -- search for all references of the filename
    b «event K2 Find» story given «class for »:fileName
    set hitz to the result
    set lapz to the number of items of hitz
    if lapz > 0 then
    -- repeat for each reference to the file
    repeat until lapz = 0
    select item lapz of hitz
    -- get a reference to the selected text
    set myInsertionPoint to item lapz of hitz
    set myRef to myInsertionPoint
    tell item 1 of myRef
    set myInsertion to index of first character
    set myInsertion2 to index of second character
    set myStory to parent of first character
    -- delete the string at the reference point
    set contents to ""
    end tell
    -- place the file at the insertion point
    tell (insertion point myInsertion of myStory)
    place filePath
    end tell
    -- select the inline graphic
    select text from insertion point myInsertion to insertion point myInsertion2 of myStory
    set graphicLocation to object reference of selection
    set myGraphic to item 1 of all graphics of item 1 of graphicLocation
    set mySelection to parent of myGraphic
    -- move the graphic equivalent to the baseline for that inline graphic
    move mySelection by {"0pt", fileBaseline}
    set lapz to (lapz - 1)
    end repeat
    end if
    end tell
    end if
    end tell
    end place_file
    (********** get_baseline():***************)
    on get_baseline(myFile)
    set matchText to "%%Baseline: "
    set theBaseline to ""
    -- read in the EPS file
    open for access myFile
    set fileLines to read myFile as string using delimiter {return}
    close access myFile
    -- find the line with the baseline
    set lapz to the number of items in fileLines
    repeat until (lapz = 0) or theBaseline begins with the matchText
    set theBaseline to item lapz of fileLines
    set lapz to (lapz - 1)
    end repeat
    -- extract the baseline number
    set theBaseline to characters -2 thru -1 of theBaseline as string
    -- return the baseline number
    return theBaseline & "pt" as string
    end get_baseline

    Hi Shane, I have placed it like this and it works now, many thanx
    on place_file(fileName, filePath, fileBaseline)
    tell application "Adobe InDesign CS3"
    -- test that a document is open
    if (count documents) > 0 then
    set myDocument to active document
    set find text preferences to nothing
    set find what of find text preferences to fileName
    tell myDocument
    -- search for all references of the filename
    find text
    set hitz to the result
    set lapz to the number of items of hitz
    if lapz > 0 then
    -- repeat for each reference to the file

  • Is there any class that makes it possible to modify the content of a file?

    I am looking for a class in the APIs (preferably) that would make it possible to open up an existing file, and delete specific characters, insert characters at specific places and do things like that... Is there any such class?

    hmm, then would there be any way to reproduce the effect of the 'delete' or 'backspace' keys? If I'm right, I think there was an ASCII code for the backspace character... Would it be possible to insert it to get a character deleted!? :/
    I really need to find a way to do all of these operations on a text file because I think it wouldn't be a good idea to completely re-write 30Mb+ large files each time some data has to be modified :P

  • Disable Backspace when in input text fields

    Im trying to find a way to disable the keyboard backspace
    button from going back a page in the site but allowing it to
    function as a character delete when needed for typing in an input
    text field of a form.
    Strangely this problem only occurs for about a minute after
    the page is opened....after that it then works correctly. You can
    see what I mean by accessing the site's contact page
    www.safetybusiness.co.uk
    I have found two different sets of code to disable the
    Backspace completely, but this then means it doesn't work at all
    when wanting to delete in the text field.
    Method 1:
    <script type="text/javascript">
    if (typeof window.event != 'undefined')
    document.onkeydown = function()
    if (event.srcElement.tagName.toUpperCase() != 'INPUT')
    return (event.keyCode != 8);
    else
    document.onkeypress = function(e)
    if (e.target.nodeName.toUpperCase() != 'INPUT')
    return (e.keyCode != 8);
    </script>
    Method 2:
    <script>
    function checkShortcut()
    if(event.keyCode==8 || event.keyCode==13)
    return false;
    </script>
    <body onkeydown="return checkShortcut()">
    Anyone know how I can overcome this?

    The TextField class has a tab order property. You may want to
    look into this. As for disabling the backspace key, you can grab
    key presses from user input. I'm not 100% on this but you could use
    Flash to test the key being pressed. If backspace is pressed, find
    out the current object with focus (unsure of this part), if it's an
    input box in flash, have flash handle it or if a text box doesn't
    have focus, send it out to javascript to have it handle it.

  • Backspace in JAVA Applet - How to fix

    I am running RedHat 7.2 and everything on my keyboard works normally.
    However, when I start the Crossword Puzzle applet (in the Games section) in Yahoo, the Backspace key does not function the same way as it does everywhere else. In particular, I have to use the Ctrl-H keys to perform a move left + character delete.
    Is this a problem isolated to this applet (Crossword Puzzle) or is there a general place to look to set the keyboard keys when a Java applet is running?
    Thanks in advance for any help.
    Donald

    I have tried most of the browsers in both RedHat 7.2 and Mandrake 8.2, and with both Gnome and KDE desktops. Some of the browsers would not run the applet.
    I have the problem with Netscape 6.22, with Java plugin 1.3.1_02-b02
    This browser is the latest version. I am not sure about the Java plugin.
    Regards,
    Donald

  • Curve 8530 wont scroll in certain menu's

    Hey everyone,
    My blackberry curve wont scroll in any direction on the blackberry home menu without holding in the shift key. Also when I hold the lock key ( the * key) it goes right into standby mode and I have to use the mute key to get it out of standby.
    This happened about two days ago when I noticed the ALT function seemed to be stuck on even though the button was not stuck in any way. 

    Currently my blackberry is under going issues as well. My scroll button has selective functionality. I can scroll on the home screen but not through the menu. I can scroll through my texts and messages but not on my facebook app.
    Also while I'm typing a text, my "o" key does not work. So I substitute with a zero. Although while I'm typing, if I have an extra letter or missing a letter, I normally scroll to where I need to type or delete the letter needed. Now when I try and do this, scrolling changes the last letter I've typed. It will change "a" to "A", "à", "â", "ä",etc...
    Only way to stop this is by typing a second character, deleting it, THEN I can use the scroll function correctly. I also have to do this when I open the web browser.
    I've also noticed that my return button and end call button don't work most of the time. When I turn on keyguard, I usually tap the return button (or back button. What ever you call it) and the screen illuminates for 5 seconds then dims off again. Now, I have to repeatedly tap this button until the screen lights up..Or any button for this matter. The media button on top of the phone unlocks it but I usually end up tapping every key until it lights up.
    Before my "o" key died on me, every key near the "o" key would type "o" along with it. For instance, when i pressed "i", "k", "L", "p" and try to delete or back out of something, it types "o" too. Example: oi, ok, ol, op, etc...When i would try deleteing, it would delete anything I want but replace it with the "o". When I went to back out of a text situation via SMS, facebook, myspace, instant message, etc-it too would leave an "o" behind before functioning correctly.
    Even when I want to perform a simple task such as changing my sound profile, I can open the profiles on the home screen but can not scroll down and select anything. I have to type the first letter corresponding with the Profile and click it. For instance, if i want "vibrate" then I need to press the "v" key. Vice versa for Loud, Normal, Medium, etc.
    Clicking with the scroll button doesn't work half the time either in certain features as well. I usually end up having to "click" every thing via "Enter" key. Needless to say, THIS IS FRUSTRATING!
    It's 3:20am atm and I will be going to sprint today to investigate further just what the HELL is going on here. Hopefully I remember this website and return with some answers.
    With that said, come February when my "annual renewal" is up for grabs (a perk for being a 'Sprint Premier Customer'), I WILL be switching to the Samsung Epic with 4G for $150 off Sorry blackberry!

  • Very weird event-can anyone make sense of this?

    Can anyone explain this:
    Last night while on Firefox (3.5) was editing a post (not here) when, all of a sudden, the text cursor reversed direction uncontrollably and, character by character, deleted (swallowed up) everything I had written. Clicking didn't stop it.
    Don't know if this started exactly at this moment, but heard a continuous series of error beeps which persisted even after FF was closed, with the mouse pointer now flickering constantly. Re-opened FF (page was now dimmed, but came back to life when I clicked on it). No change with flickering mouse pointer and constant error beeps.
    Then went into DU and verified disc and permissions. Everything OK there--SMART status verified, no funny sounds from the drive--and nothing at all written to Console or the Firefox crash log. I think the OS was still responding throughout this event, despite the constant error beeps and the flickering mouse pointer. Was able to access DU during this. Nothing crashed. I think only FF, Mail app, maybe Console (which I keep in the dock), and TextEdit were open at the time.
    Re-booted and everything seemed back to normal. Then ran Applejack (lower case) through its paces, including caches and preferences in user account. So far, after re-booting again this morning, everything seems normal. Don't think this was a Firefox issue, since the flickering mouse pointer and error beeps persisted even after quitting FF.
    What was this?

    You could wait for the iVac Family Pack subscription, only $169 per year with the iGhost Flippy Bit® extension with pre-order...
    iVac minimum System requirememts...
    4 16-Core Intel Tukwila proccesors
    256 GB RAM
    3 Exo Bytes of free Disk space (6 EB if you don't have 500 MB/Sec Broadband)
    42 channel Surround Sound Audio card for realistic Vacuum sounds
    Video card with 16 GB VRAM and a 42" or greater monitor
    42x Blu-Ray 9 drive for installation
    8 pints of Blood
    A note from Steve specifying your goodness

  • Invalid relational operator

    Hi,
    if I :
    create table t (a number, b number, c number);
    and then run the following query:
    delete from t where a='1' and (b, c) in (
    select b, c from t
    where a='1'
    group by b, c
    having count(*) > 1);
    -- nothing to see here
    I get the following error:
    ORA-00920: invalid relational operator
    If I remove the "-- nothing to see here" comment, the query runs fine.
    If I remove the quotes around the 1s it also runs fine, with or without the trailing comment.
    I had a look through the forum and couldn't see this listed anywhere, though I presume others have come across similar problems?
    I presume there is a simpler test case; I tried to reduce it a bit, but most of what is there seems to be needed to reproduce the error.
    Note that it doesn't have to be a comment following the query; any text at all will cause the same error.
    regards,
    William

    Having just played around a bit, if you change the subquery to just return a single column, say "b" rather than "b" and "c":
    delete from t where a='1' and b in (
    select b from t
    where a='1'
    group by b
    having count(*) > 1);
    -- nothing to see here
    Then I get error "ORA-00911: invalid character" instead.
    If I run the buffer as a script (F5) I get:
    SQL ERROR:ORA-00911: invalid character
    delete from t where a='1' and b in (
    select b from t
    where a='1'
    group by b
    having count(*) > 1);
    -- nothing to see here
    ORA-00911: invalid character
    In case that helps you locate it at all.
    Note: if I move the "group by" clause onto the where line then it runs correctly.
    regards,
    William
    Message was edited by:
    user454290

  • "duplicate headers detected from server"

    Hi, Chrome suddenly doesnt show my muse site, saying:"duplicate headers detected from server" and "ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH",( but only in some computers) and in Firefox says "corrupt content" ( but only in some computers). Internet Explorer no problem.
    Help me please
    The site is: www.soyunamilanesa.com.ar
    Thanks a lot
    Pablo

    William,
    In Mail 3, unlike earlier versions, there is one file for all accounts that prevents duplicate downloads -- in earlier versions there was one per POP account. This file most likely has become corrupted. Quit Mail, and in the Finder open Home/Library/Mail and locate the file named MessageUidsAlreadyDownloaded3 and drag it out of the Mail folder. For good measure open each POP account folder, and if you see other files with similar name (ending in 2 or no other character) delete those. Now relaunch Mail, and endure one more round of again downloading duplicates, but this time a new MessageUidsAlreadyDownloaded3 will be created, and future results should be good.
    Ernie

  • Bizarre error message

    When I attempt to start iTunes, an error message pops up informing me that "The folder path 'iTunes Music' contains an invalid character." I have tried to reinstall the software only to receive the same error message, changed to "Cannot install" instead of "cannot open." I tried to check the names of every song in my iTunes library to see which may have contained an invalid character, deleting some songs, but it didn't work. I've resorted to downloading winamp, which, incidentally, can read all of the songs in the folder path "iTunes Music." What's going on?

    Verify/repair your disk first (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    Post back with your observations and, if possible, a clearer description of the problem.

Maybe you are looking for