Script/Automator action/CSS to change text encoding?

As an expat Israeli, I read an Isareli newspaper online every day. Most pages on their site <http://www.haaretz.co.il> display fine with the text encoding set to Default. Some, though, forget that Hebrew is written right-to-left, and insist on displaying everything backwards, which makes it a bit hard to read.
To get such a page to display correctly I need to change the text encoding to Hebrew (Windows). However, it gets a bit boring to go to the View menu, scroll down to Text Encoding, then scroll down again to Hebrew (Windows), especially when I have to do it several times a day.
So, I thought automating this procedure would be the way to go. Problem is I cannot find either Automator actions or Applescript Dictionary items that relate to text encoding.
Skating on thinner ice, I think a style sheet could help tell Safari to display a page with the right text encoding, but:
1. I have no idea how to write such a style sheet.
2. When I looked at the source HTML of a page that displays correctly, and one that doesn't, I find that both include the following tags:
charset=windows-1255 (inside a larger META tag), and
<META HTTP-EQUIV="CONTENT-Language" CONTENT="he">
These are the tags that, I thought, would allow me to distinguish between a "good" page and a "bad" one. But if both contain the same tags...
Any ideas on how I can automate this text encoding switch?
TIA,
Gidi
iMac G5   Mac OS X (10.4.8)  

I agree with you that the authors are doing something
not exactly kosher. But if I will complain, I know
their knee-jerk response: Ahhh, you're using a
Mac...
I don't see how a windows browser could display it correctly either. Win-1255 has to be logical order, and they probably have some guys composing articles in visual order and then copy/pasting them into the Win-1255 pages without paying attention.

Similar Messages

  • Is there an Applescript or Automator action that can change Preferences in

    When I log on to my ISPs website to clean out my spam filter, the site redirects me to a second area that contains the filtered spam. Each time I access it I must change my "Accept Cookies from "Only sites you navigate to" to "Always". The problem is remembering to change it BACK. Is there an applescript or automator thingy that will allow me to to make these changes? I'm using Safari 3.1.2.
    Thank you.

    This question was answered in the Safari-for-Mac forum.

  • How to change message text encoding in multiple e-mail messages?

    Hello!
    I'm newcomer in AppleScript. I have imported a lot of email messages from mbox.
    The problem is that some of messages are displayed in correct russian encoding (KOI8-R) but
    other messages displayed with incorrect encoding. So i need manually set their encoding
    via mail menu to Cyrillic (Windows) to be able to read them. I got about 1000 of those messages.
    Is there any possibility to mark those messages in mail and then run AppleScript to change
    their encoding automatically?
    something like that (that script is not working one):
    tell application "Mail"
    set selectedMessages to selection
    if (count of selectedMessages) is equal to 0 then
    display alert "No Messages Selected" message "Select the message you want to get the raw source of before running this script."
    else
    set message text encoding to "Cyrillic (Windows)"
    end if
    end tell
    Thanks!

    I was able to get it to work on all selected emails using this script:
    (Note I changed the encoding to "Simplified Chinese (EUC)")
    using terms from application "Mail"
    tell application "Mail"
    set theMessages to selection
    tell message viewer 1
    repeat with themessage in theMessages
    set selected messages to {themessage}
    activate application "Mail"
    tell application "System Events" to ¬
    tell menu item "Simplified Chinese (EUC)" of menu 1 of ¬
    menu item "Text Encoding" of menu 1 of ¬
    menu bar item "Message" of menu bar 1 of ¬
    application process "Mail" to if (exists) then click
    end repeat
    end tell
    end tell
    end using terms from

  • Is it possible to pass a variable from a shell script back to an Automator action?

    Is it possible to pass a variable from a shell script back to an Automator action?
    For instance, if I assign a value of foo to $var1 in my shell script how would I retrieve/pass that value in the next Automator action. I see that there is a variable called "Shell Script" but I can't any information on how to use it. 

    red_menace,
    Thanks but I still don't understand how to pass a single value that was set in the UNIX scipt back to Automator has a variable. Take the example below, I write 4 varables to STDOUT and all 4 are stored in a variable named "storage".  How do I assign 1 of these values to the Automator "storage" variable? For instance if I wanted to assign the value of $var2 to "storage" , how would I do that?

  • How do I change text within a paragraph in VB-script?

    I am having some problems with changing the text inside a paragraph without affecting the styling of other paragraphs. It may be that I am using a wrong approach to changing existing text, I don't really know.
    As an example, I have the following two paragraphs inside a table cell:
    12
    35
    These two paragraphs have different paragraph styles applied to them.
    If I now change the contents of the first paragraph to a 1 digit number, the style of the second paragraph changes to the same style as the first one.
    Paragraph1.Contents = "4" & Chr(13)
    The text is correct after the change, but the styling on the second paragraph is wrong:
    4
    35
    I have also tried using Paragraph.Lines(1).Contents and Paragraph.Texts(1).Contents, but the result is the same.
    Is there any way of changing text inside a paragraph, which ensures that noting other than that text is affected?

    Hi Frank,
    The problem is occurring because you're effectively removing the paragraph end by replacing the entire contents of the paragreaph. You want to use the Characters collection and the ItemByRange method so that you can leave the paragraph end untouched.
    I'm pretty sure it would look something like this though I haven't tested this:
    Set SChar = Paragraph1.Characters(1)
    Set EChar = Paragraph1.Characters(-2)     'giving you the 2nd to last character.
    Set TxtToDel = Paragraph1.Characters.ItemByRange(SChar, EChar).
    TxtToDel.Delete
    Then you can set Paragraph1.InsertionPoints(1).Contents to the new text.
    If the ItemByRange doesn't work you can always loop through the character collectoin and delete all but the last characters in the paragraph.
    Good luck!

  • Html scripts for changing texts

    does anyone have an html snippet code for flashing text like on the hot news headlines at the bottom of the apple home page - i have located scrolling text - but not flashing, or changing text? thanks

    I just posted javascript snippet couple days ago to rotate images:
    http://discussions.apple.com/thread.jspa?messageID=7079863&#7079863
    The same method can be used for text head liners, however it's depend on how the head liners are supplied.
    If you have to supply the head lines, you are on your own; you'll have to update them.
    or you can use some ready made such as BBC: http://news.bbc.co.uk/nol/ifsnews/hi/frontpage/ticker.stm
    or you can use webclip, webclip makes part of a web page into Dashboard widget, then process Dashboard code into HTML code. Anyway, here is Apple header liners in webclip: http://hdl.50webs.com/Dashboard/Widgets.html

  • How can I edit an Automator action for Word?

    I'm running Word 2008 on a Macbook Pro, Mac OS 10.5.
    Word comes with a selection of Automator actions, including one to find and replace text in Word. I often want to convert standard numerals to old-style numerals, which are part of the extended glyphs set in fonts I use. Automator will allow me to set up ten find/replace actions (for the numbers 0-9) that successfully replace all the numerals with old-style numerals. But it only does it for the main body of the document, not for the footnotes. I need to be able to do it for all the footnotes.
    I thought I might find a workaround by adding an AppleScript to my workflow, which would shift the focus in Word to the footnotes and rerun the find/replace actions. I mapped the menu item View/Footnotes to the keystroke command-) and inserted this AppleScript into the Automator workflow:
    tell application "Microsoft Word"
    tell application "Microsoft Word" to activate
    tell application "System Events"
    tell process "Microsoft Word"
    keystroke ")" using command down
    end tell
    end tell
    end tell
    But the find/replace actions simply repeat what they'd done before, converting the numerals in the main body but not in the footnotes. I then thought that perhaps I should have an AppleScript to do the find/replace itself, once the footnotes have been selected, so I created the following (command-H accesses the find/replace dialog box in Word 2008):
    tell application "Microsoft Word"
    tell application "Microsoft Word" to activate
    tell application "System Events"
    tell process "Microsoft Word"
    keystroke "H" using command down
    keystroke "1"
    keystroke tab
    keystroke ""
    end tell
    end tell
    end tell
    The character after the fourth keystroke command is the glyph for old-style numeral 1. For some reason Word reinterprets this as the letter a. So using AppleScript I can only replace the numerals 1-9 with the letters a-i.
    I'm pretty hopeless at even this very basic level of programming, but I presume that there's something in the Automator action 'Find and replace in Word' that specifically tells it not to look anywhere but the footnotes. I also presume it's possible to insert a command to tell it to operate on the footnotes (and headers and footers: everywhere!) too.
    Does anyone know a way to edit an Automator action? I'm willing to experiment and fiddle with one until I find a way that works, if nobody knows the exact changes that I'd need to make, but I just don't know how to edit an Automator action in the first place. A bit of googling suggests that I could do it in XCode, and that that is bundled with my Mac, but I don't have it.
    This all used to work when Office used to allow VBA (and I was using a horrible Windoze machine). Maybe someone would prefer just to find a way of creating a solution our of the old code, so here's one part of what I used (to change the number 1):
    For Each aStory In ActiveDocument.StoryRanges
    With aStory.Find
    .ClearFormatting
    With .Replacement
    .ClearFormatting
    End With
    .Execute FindText:="1", ReplaceWith:=ChrW(63281), _
    Format:=True, MatchCase:=True, Replace:=wdReplaceAll
    End With
    Next aStory
    Thanks in advance for any help.

    Thanks to all three contributors for their generous help so far. Mac people are lovely.
    BDAqua's suggestion wouldn't work, I think, because copying footnote text into another application and then back into Word would lose all the associations between footnote references in the body and the footnotes themselves. I wish I could do what Klaus1 says, but Word 2008 won't allow the creation of Macros any more. They've shut off support for their creation. Nice MS. red_menace's suggestion seems very plausible and I'll look into a way of mapping the old style numerals to specific keystrokes. That might do it.
    Reflecting on what you all said, I looked again through Word's help menus and eventually got pointed towards this page of 'help': <http://tinyurl.com/6398l6>. This is completely impenetrable for me, though it does compare a VBA script for Word 2004 to an AppleScript. This encourages me to hope that it should be possible to translate my original VBA script (part of which I included in my first message) into AppleScript, though I don't know how to do it because I don't really understand the language in the first place (the VBA script was put together by someone else).

  • Data sets and text encoding problem

    I have a problem when trying to import french text variables into my data sets (for automated generation of lower thirds). I can not get PS to display french special characters correct. all 'accented' As and Es etc. display as weird text strings, just like your browser running on the wrong text encoder.
    How do I get PS to interpret the data sets right? Any idea?
    thanx
    Gref
    ( PS CS6 (13.0.1), Mac Pro running on OS X 10.7.3)

    Thanx Bill.
    Unfortunately I cannot change the font as it is corporate. It has all the characters I need, though.
    Did I mention, that I have to generate french AND german subs? No.
    Well I tackled the german versions by processing the textfiles I get with textwrangler saving them as UTF-16. That worked with the german versions.
    Unfortunately I ran into 2 other problems now:
    First problem:
    The data set consists of 7 names and their respective functions. This processes perfectly in german (as I thought to this point) but in the french version it processes perfectly for the first 4 data sets while the fitfth has the right name but the function variable now displays the 5th function AND all the rest of the names and functions. I can not get these data sets displayed seperately. Bummer.
    But even more annoying…
    Second problem:
    When I now import my perfect german lower thirds into Avid I seem to loose my alpha information.
    Avid is supereasy to use with alpha: you have 3 choices: inverted (which is the usual way of importing) having black in the alpha transparent. normal - white transparent or ignore - no transparency.
    Importing 'inverted' alpha always worked (I use Avid for about 15 years now). but these processed PSDs don't. No alpha.
    So I tried to assign an alpha channel via Actions to these files. Now Avid seems to discard the layers completely leaving me with white text where it should be black. The PSDs have black character text layers but in Avid the characters are white. It seems like AVID just renders the white pixels of the alpha channel.
    Assigning the Alpha is no option anyway, as the whole process should make the generation of these lower third EASIER and faster for the person that has to make every lower third by hand by now.
    All of this can be boiled down to one word: ARGH!

  • CS3: how to create action to add fixed text of foreground color, etc.

    I'm trying to create an action and/or brush preset(?) that will:
    1) Add a fixed text string in the forground color, consistent font, size, etc.
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
    3) Allow me to move the text to whatever position
    4) Change text layer opacity
    5) Flatten
    At some point in the past when searching the internet I came upon a description of how to create a brush preset (I think that was it) that did at least most of this, but somehow I seem to have lost the preset and don't know how to recreate it.
    thanks,
    Mike

    j_m_d wrote:
    I'm trying to create an action and/or brush preset(?) that will:
    1) Add a fixed text string in the forground color, consistent font, size, etc.
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
    3) Allow me to move the text to whatever position
    4) Change text layer opacity
    5) Flatten
    At some point in the past when searching the internet I came upon a description of how to create a brush preset (I think that was it) that did at least most of this, but somehow I seem to have lost the preset and don't know how to recreate it.
    thanks,
    Mike
    First it is And/or you can create both or one or the other. For in actions  and scripts you can not automate the use of a brush.
    1) Add a fixed text string in the forground color, consistent font, size, etc.
        Easy if all images are the same size and a little more work if image size vary for you will need to scale the image.
        If you want to scale the image back to it original scale at the end of the action you need to use a little script in the action. .
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
        Again easy if aoo images are the same size not posible if images vary in size for many setting in layer style are in absolute pixel size.
        However layer styles will look good for a range of images sizes like Print Size or thunbnail size or small web sizes.
        Therfore I create actions for print size images and work full size. if I need smaller image I work full size and resize before output.
    3) Allow me to move the text to whatever position
         This is quite easy to do in an action you simply add an interactive transform step after adding the text layer.
         However this is not a good idea if you want to batch the action. Interactive sort of defeats batch.
         With an action it is easy to posion a layer.
    4) Change text layer opacity
        Simply change the added text layers opacity and or fill and it will be recorded.
    5) Flatten
        Simple just record it I don't like actions that flatten though. If you give your action to some and the use it on an image the did a lot of work on the may get very upset the your acrion flatten all their work.
    Have a look at my Crafting Actions Package it cantains a sample action that add a text copyright layer to any size image.
    Package Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Scripting Illustrator actions, incorporating calls to Excel

    Hello all, I need some help...
    I am building a series of logos — based on word strings —  using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file.
    Normally for one or two iterations of the process, I would not hassle with a script, but this is a mind-numbing repetitive task, and I have to make 6,000 logos!! Seems the ideal use for a script.
    We have tried to work with ExtendScript Toolkit (ESTK) but we can't get our heads around how to make it do certain things, and I can't find anyone who really knows how to use ESTK correctly.
    I have a MAC, so the script has to be written in Java Script or Apple Script.
    Here's what I need to do:
    Execute Action: Open a Master Illustrator doc. This doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set. <pause Action>
    Run Script: Retrieve the word string from a cell in Excel worksheet (or CSV??). Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm". There are two additional charaters "tm" at the end of the word string that will be acted upon (remember these two characters for item 7 below)
    Run Script: Place this WordString into the predefined type box in the Illustrator Master doc. That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator? <pause Script>
    Execute Action: Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm  <pause Action>
    Run Script: Select all caps in word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select last two letters of word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select text box. <pause Script>
    Execute Action: Apply Stylize > Drop Shadow — On contents of text box, preset DS parameters in either Appearence panel or Effect menu.
    Execute Action: File > Save As .ai document. <at Save As dialog, pause action>
    Run Script: Retrieve file name from Excel and place in Save As dialog (copy & paste?). In next column in Excel doc, same row, is a SEO-friendly file name. Example: word string is "DinnerParties"; file name (next column) is "logo-dinner-parties"
    Run Script: Select folder to save the .ai doc into. Example: Folder is "Logos AI". <pause Script>
    Execute Action: Complete Save As. Example: in Folder "Logos AI" now we have the file "logo-dinner-parties.ai"
    Execute Action [assumes that the Saved As document — logo-dinner-parties.ai — is now the active one in Illustrator]: Save for Web & Devices. Preset to PNG24/Transparent. Correct file name will NOT be in Save field. <at Save dialog, pause action>
    Run Script: Repeat retrieval process to get same file name from Excel.
    Run Script: Select new folder to save the .png doc into. Example: Folder  is "Logos PNG". <pause Script>
    Execute Action: Complete Save for Web. Example: in Folder "Logos PNG" now  we have the file "logo-dinner-parties.png"
    Execute Action: Close
    Repeat steps 1 though 19 until all word strings processed: Script has to know to go to next word string (next row) in Excel doc.
    This is a tricky one, but there's got to be a way to automate the process... otherwise I'll go crazy doing this manually!!
    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Thanking you in advance for any assistance.
    All the best.

    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Depends on what you mean by "help." Are you asking someone to do the whole thing for you (would require more detail), or do you intend to do it yourself, but are stuck on something? (You say you "tried to work with ESTK" and "can't find anyone who really knows how to use ESTK correctly"; but you don't say specifically what you're struggling with in ESTK.)
    ...doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set.
    Much of what can be done with any approach depends largely upon what Appearances and/or Effects are involved, and where. You imply that you want all of the "logo" to be contained in a single textFrame object. But Drop Shadow Effect cannot be applied at the character level, so it can't be included in a Character Style.
    So if you don't want all the text to have the same drop shadow, you will be involving multiple textFrame objects. That will lead to the complication of having to position the two textFrames relative to each other, depending on their dimensions after the varying text is inserted.
    Retrieve the word string from a cell in Excel worksheet (or CSV??)
    With scripting, it would be inefficient and unnecssary to go back-and-forth to the spreadsheet to extract values one at a time. Typically, you would create an array containing the full set of values, and then iterate through the elements of the array.
    Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm".
    So you're going to need a sub-routine of some kind (in Javascript, a function) to find capital letters.
    There are two additional charaters "tm" at the end of the word string that will be acted upon...
    If this is the same in each instance, and if you are going to script this, there is no need to include it in the data.  Insert the "tm" programmatically.
    That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator?
    Using script, you don't have to select the textFrame, copy, or paste in order to insert content. You would declare a variable, assign its value (from the above-mentioned array), add the variable's value as text to textFrame's content.
    Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm
    Here you will run into a difficulty inherent in Illustrator's poor implementation of stroked text. You can apply a Stroke at the Character level and include that Appearance in a Character Style. But Illustrator always positions such strokes in front of the fill--something you almost never want, because it "chokes" the fills, wrecking the shape of the characters. The workaround is to Add New Stroke and position that below the Characters listing in the Appearance Palette. But script provides no access to added strokes or fills and Added Strokes cannot be applied at the character level.
    Select all caps in word string. Example: DinnerPartiestm
    Illustrator cannot select discontiguous text strings. Again, script does not have to select objects in order to change their properties.
    Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm
    Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm
    The applyTo method of the CharacterStyle object. Or, just set the size and baselineShift properties of the characterAttributes property of the textRange directly.
    Apply Stylize > Drop Shadow — On contents of text box
    Drop Shadow Effect cannot be applied to the contents (character level) of a textFrame--only to the textFrame object itself.
    My very limited understanding of ESTK is that it is a scripting tool for  use in Illustrator.
    It's a script text editor included with the Creative Suite. You can use it to build scripts for any of the CS products (or entirely other purposes, for that matter). Or, you can choose to not use it at all. A Javascript is just a text file. Tools like ESTK add conveniences, references, etc., geared toward scripting.
    So, I'm only acting on the word string....
    But I am also not a coder...
    Which is why I would look into simpler already-built methods before jumping into a tedious solution scripted for Illustrator. For example: Many, if not most, AI users are familiar with InDesign. InDesign provides a proper dataMerge feature that can handle ordinary tab-delimited text. It's handling of strokes on text is correct, unlike Illustrator. If you set it up accordingly, it can create all the separate pages for you.
    You would:
    1. Draw the fixed graphic in Illustrator.
    2. Place the Illustrator graphic on InD's master page.
    3. Set and style the text objects. Insert DataMerge tags.
    4. Import the data and run the Merge function.
    InD builds individual pages for each row of the data. You're done. Export to PDF. InD and Acrobat also have their own scripting models. Either one can handle the specific naming convention, if really needed.
    Again, it depends on what exactly is "special" about the text object(s) you are manipulating with variable content. For example, if you're using an AI-specific Warp effect, you'd be back to Illustrator.
    Anyway, you want a paying gig?
    I do some freelance work as time permits and interest strikes, but I'm not cheap, and that's not why I frequent these forums.
    Scripting your solution entirely in AI may very well be possible, but whoever does it will need to see the specific objects, styles, etc., involved to avoid unnecessary guessing and time-consuming round-tripping. Why don't you post an image and/or an AI file?
    JET

  • Using external database as source for Quicktime annotation automator action

    Hi
    I have approximately 1500 quicktime files which require annotations added to them (title, author etc).
    I've been provided a spreadsheet with all the neccessary data. And I know there is an automator action that can add annotations to quicktime files but was wondering if either of the following was possible:
    1) Can I get the an automator script to use this spreadsheet as a source for the values it is to enter.
    OR
    2) If I can get automator to add the files name to the annotations section (under title)
    Greatly appreciate any help you can provide.
    Regards

    HI
    Make sure you select the Initialize or Run methods, depending on where you try to define the database connection it will not let you do it.
    Good practice would be to define the database and the connection in the initialize section, the SQL and execute in the Run section and the disconnect in the Finish section, however that could change depending on your needs.
    Regards
    Alex

  • Why is this Automator action so slow?

    I created the following action to create a new folder on the Desktop after prompting the user for the name:
    -- Ask for Text
    -- Set Value of Variable (created one called FolderName)
    -- New Folder (I put FolderName in the Name: field)
    -- Rename Finder Items (adds Date to the beginning of the folder name)
    Every time I run this Automator action (as an application or as a Finder plugin), it takes ELEVEN seconds just to get to the Ask for Text prompt. The actual script runs fine after that.
    Is there something I could do to speed up this action? Doesn't Applescript do this much faster?

    I'm not sure - Automator applications need to load a bunch of stuff, but the following one only takes a few seconds on my machine:
    1) Get Value of Variable (Today's Date set in your custom format with a trailing space)
    2) Ask for Text (Ignore Input)
    3) Set Value of Variable (Name: Folder Name)
    4) New Folder (Name:Today's Date and Folder Name variables)

  • Change text problem CS3

    I am having problems with i2of5 barcode where some of the encoded values for the barcode are the same as InDesign values.
    e.g. find text "barcode" change text "ËU(K\tÌ"
    inDesign recognizes the \t for a tab. Is it possible to turn off these keywords or variables so InDesign will not replace the string with a tab or whatever the variable stands for?

    Not true.
    You are working in a script language. That translates "\t" to a tab while the script is being parsed, and (apparently) the tab survives the translation into the 'real' application call to search.
    Next level is escaping the tab: "\\t". Now the codes get translated (by the parser) into "\t", which is, ta-da, a tab
    i for the application search string.
    So, you have to escape the escaped escape (?), leading to the somewhat bewildering "\\\\t". Double backslashes are translated into single ones ("\\t") which is passed over to the search inside InDesign, which translates it into "\t", which is what you asked.
    The "^" is slightly easier, as it (probably!) is not 'pre-parsed' by your script, just by the InDesign Search engine. As in InDesign itself, to search for a single "^", enter two.
    By the way ... there is no single search string in which both "\t"
    i and
    "^p" are translated into a tab and paragraph return. The former is a GREP search expression, the latter a native InDesign Text search one.

  • LMS4 Syslog automated action anomaly

    LMS 4.2.1 on W2K8 R2
    I just want to send an email for any sev 1 or 2 syslog messages received.  I set up an automated action that looks like this:
    Automated Action Summary
    Name:
    Critical Events Email
    Devices:
    State:
    Enabled
    Parameters:
    TO=[email protected], SUB=LMS4 Syslog AA, TEXT=
    Action Type:
    Email
    Messages:
    *-*-1-*:* *-*-2-*:*
    Yet I seem to be getting emails triggered by messages from ASA devices that are not severity 1 or 2, like:
    %ASA-session-4-106023
    %ASA-auth-3-109023
    %ASA-auth-6-109001
    Am I doing something wrong, or is there some sort of bug I am hitting?  I can't believe that I am the first person to try this.
    Thanks,
    -Jeff

    I do not know what exactly you have done so far but in your situation I would enable the following debugs:
    open that file in a text editor
    NMSROOT\MDC\tomcat\webapps\rme\WEB-INF\classes\com\cisco\nm\rmeng\csc\data\Collector.properties
    and change the debug level from Info to Debug:
        DEBUG_LEVEL=DEBUG
    also enable SyslogAnalyzer debugging here:
    Admin > System > Debug Settings > Config and Image Management Debugging Settings
        Set Application Logging Levels >> SyslogAnalyzer (scroll down)
            set Syslog Analyzer and Syslog Analyzer User Interface from INFO to DEBUG
    in a DOS box check the status of the following processes (the should be started) and restart them:
        pdshow SyslogAnalyzer SyslogCollector
        pdterm SyslogAnalyzer SyslogCollector
        pdexec SyslogAnalyzer SyslogCollector
        pdshow SyslogAnalyzer SyslogCollector
    When the issue happens again check the following log files and post them on the forum:
        NMSROOT\log\SyslogCollector.log
        NMSROOT\log\AnalyzerDebug.log

  • Looking for an example of using Automator action in an Applescript

    Does anyone have an example of how to use an Automator action in an Applescript? I want to use the Automator action that creates a note for an iPod and then sends it to the iPod inside an Applescript (I want to be able to loop through all of the text files in a folder). Any examples would be helpful. Thanks.

    Hi Mike
    You could save the workflow as an application and then write a simple script that tells the application to launch multiple times.
    But you'll find it many times faster to do it the other way round, and run a looping AppleScript from a single Automator action.
    (Your iPod must be set up in disk mode.)
    set ipod_name to "Name of your iPod goes here" -- edit this line and put the name of your pod in inverted commas
    tell application "Finder" to set ipod_ready to exists disk ipod_name
    if ipod_ready then
    set text_folder to (choose folder with prompt "Choose the folder containing notes for your iPod.")
    set file_names to list folder text_folder without invisibles
    repeat with file_name in file_names
    set file_path to text_folder & file_name as string
    if file type of (info for file_path) is "TEXT" then
    tell application "Finder"
    move file file_path to folder "Notes" of disk ipod_name
    end tell
    end if
    else -- ipod not mounted
    display dialog "Mount your iPod first!" buttons {"OK"} default button 1 with icon caution giving up after 5
    end if
    Copy and paste this into a Run AppleScript action, edit to supply the name of your own ipod, and see how it goes.
    Hope this helps,
    H

Maybe you are looking for

  • How do i change an iMovie file back to its original form?

    I have recently made a project on iMovie for my Duke Of Edinburgh challenge. I was trying it out and it was working. But when i tried putting on to youtube, the site told me that it must be a different form i.e. .MOV. so i went and changed it from .r

  • I have Mac OS 10.4.11 software and iTunes

    My iMac will not allow an upgrade to OS 10.5 and I can't get past the iTunes 10 upgrade to access the iTunes store for some purchases?  Jim S.

  • How to access Mail-Attachments in XI 3.0?

    Hello everyone, We have a scenario, where a Mail with attached Files (text, pdf) is sent to the XI. I would like to write a module which accesses the Mail-Attachments, retrieves their content and appends the Base64-encoded content to the payload. I'v

  • Blue Ray Burn

    Please excuse me if I am not in the correct forum for this question. I have been trying to burn a blue ray movie with toast and I keep getting an error stating "interface error 4, the connection is not stable". I have a Pioneer blue ray 205 burner. I

  • Global button icons

    I want to have a global button which allows the user to print any page. The event handler for the button will use the <showFacet> event handler element. I'd like to have a 'printer' icon but couldn't find one in the icon repository on the BLAF websit