Using Find() in ExtendScript to search for Italics

I believe it would be the right place to place my query.
I'm trying to search for all Italics in my Document with Extendscript.
findParams = AllocatePropVals(1);
findParams[0].propIdent.num = Constants.FS_FindCharFmt;
findParams[0].propVal.valType = Constants.FT_String, etc..
How do I specify italic in the params?
Michael
[Thread split from original by moderator]

Michael,
First about the right place to place your query: you should start a new discussion instead, as your question will then appear in the list of topics rather than Oliver John's original question.
About your query:
Your code searches for a character format from the Character Catalog. If you have a character format that makes the text show up in Italics, you can use the name of that character format (which might or might not be "Italics"). But that will not include text sections that have been manually set to Italics (i.e. without applying a character format tag).
If you want to find all text in italics in your document, you should go via the text properties instead of the character format tags. That method will include all text that is set to italics, regardless of the method (manual overrides or character format tags). Spelling out the entire code would take me too much time right now, but the outline is as follows:
Loop through all Pgf objects in your document and do the following for each of them:
Use the GetText method with the parameter FTI_CharPropsChange.
In the array of TextItem objects, check whether the FTF_ANGLE property has changed.
If the FTF_ANGLE property has changed, you use GetTextProps on the start location of the TextItem to establish whether the found text string has Italics applied.
Good luck
Jang

Similar Messages

  • "Using the Filter HUD to Search for Referenced Files" (and "Locate Referenced Files")

    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this.
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection in the left hand pane when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run either of these commands?
    Thanks for any help in my getting this working better for me.

    hotwheels 22 wrote:
    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.  1
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this. 2
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?  3
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection {4}  in the left hand pane {5} when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run {6} either of these commands? 7
    Thanks for any help in my getting this working better for me.
    1.  Just copy and paste the URL from the on-line User Manual.  Very helpful.  Are you on this page?
    2.  From the above-linked page:
    Show the Filter HUD by doing one of the following:
    Choose Edit > Find (or press Command-F).
    Click the Filter HUD button beside the search field in the Browser.
    The instructions specify ONE of the following.  Your question indicates to me that you are trying to do both.
    3.  The User Manual has used the wrong term here.  It should say "Choose 'File Status' from the 'Add RULE' pop-up menu."
    4.  The command -- like all commands? -- works on the currently selected Images.  On the same page in the User Manual it says:
    You can select a group of images in the Browser and Aperture can show a list of the referenced images within the selection, including information about where the masters are located. {Emphasis mine.}
    5.  The Aperture workspace is highly configurable.  I don't know what you mean by "the left-hand pane".  Of what?
    6.  Yes.  Of course it matters.  At some point in the 80's when the GUI became standard computers standardized on the "Noun→Verb" syntax:  Select object(s), select command(s).
    7.  Not sure what the second command to which your refer is.

  • Searching for italics

    Hello,
    Is there any way to search for italics in Adobe Acrobat? I can not see a way, perhaps someone else knows.
    And, if it is not possible to do a search, can a script be written for such a search?
    Thanks,
    Tom

    Not possible with a script (it has no knowledge of the font settings in the PDF). Maybe with a plugin.

  • I accidentally found a .PDF file using Spotlight while I was searching for something else. However, I can't find the location of the file.

    While I was using Spotlight to search for an app. I came across a .PDF file related to my job. However, it's not in the finder nor in the documents folder. As matter of fact, it's not even listed in the PDF files section. I can open it using Spotlight.....but I can't find it. It it on my Inbox? Do I have files lurking around in my computer without me knowing about them? Also I don't remember downloading said file. It's not harmful it's just a simple 32-page .PDF file that contains information on my company policies. But where is it and how did get there?

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • Using Find() in ExtendScript

    As I'm sure anyone who has started working with ExtendScript in FM10 knows, the existing documentation is still pretty thin. Most of what I've learned has been adapted from the FDK Guide & Reference docs, mostly by trial and error. I've run up against one problem that has me pretty stumped, though, and I don't know if I'm doing something wrong, or if I've run into a bug. I would appreciate any insights.
    I've been trying to use the Find() method. I've got it running (as in, without throwing an error), but it isn't producing a usable result. Regardless of whether I search for text that is in the document, or text that isn't, the script returns an empty TextRange object, but FA_Errno is set to FE_Success.
    This is the code I'm using:
    var thisDoc = app.ActiveDoc;
    var docStart = thisDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf ;
    var tloc = new TextLoc(docStart,0);
    findParams = AllocatePropVals(1);
    findParams[0].propIdent.ival = Constants.FS_FindText;
    findParams[0].propVal.sval = "Example";
    foundText = thisDoc.Find(tloc, findParams);
    testText = thisDoc.GetTextForRange(foundText, Constants.FTI_String);
    alert(testText.length); // Always returns 0
    PrintFAErrno(); // Always prints "FE_Success" to console

    You are not allocating your find parameters just right. Try this and it should work for you.
    findParams = AllocatePropVals(1);
    findParams[0].propIdent.num = Constants.FS_FindText;
    findParams[0].propVal.valType = Constants.FT_String;
    findParams[0].propVal.sval = "Example";
    Rick Quatro
    FrameMaker 10 ExtendScript: Scripting Strategies
    https://www1.gotomeeting.com/register/278546009

  • Issue using  "Find" in Bridge to search external drive

    When using "Find" in Bridge (version 2.1.1.9) in CS3 to search for files on an external hard drive I must either check "Include Non-Indexed Files" or go to the external drive and build the cache for the folders I want to search. Otherwise the files will not be found.
    Having to build the cache in the external drive or use non-indexed search slows down the search process. Is there a way around this. Bridge preferences are set to "Automatically Export Caches to Folders". I use SyncBack for back up to the external drive.

    Thank you for the reply. I thought that once the cache is built and exported to a folder, that folder would be indexed and ready for a search by Find. And when copying that folder to another drive the files would remain indexed and available to a search by Find on that drive.
    I have not copied the central cache to the external drive. So I assume that when using Find to search the external drive it is looking at the caches in each folder on that drive.

  • Using aol it will not search for specific old emails by name

    USING FIREFOX V.34.0 AND AOL TOOLBAR 2.2 WITH WINDOWS 7.
    WHEN I USE THE SEARCH FIELD IN AOL TO SEARCH FOR AN OLD OR NEW EMAIL BY NAME IT WILL NO LONGER FIND ANY EMAILS. IT USE TO.
    WHAT DO I NEED TO DO TO RESOLVE THIS PROBLEM

    Doesn't AOL have support for AOL Mail? Or maybe an AOL Toolbar support forum?
    Sorry, I can't see how this is even vaguely related to Firefox support; other than you are using a 3rd party Toolbar in Firefox.

  • Using "FIND IN TABLE" to search in selected columns

    Hi,
    I want to use "FIND" to search for a pattern in certain table columns only, but ABAP Keyword Documentation ([FIND IN TABLE itab|http://help.sap.com/abapdocu_70/en/ABAPFIND_ITAB.htm]) does not state about this option.
    Is it possible to do so?
    Thanks,
    Joon Meng

    Hi,
    1. if you want to find particular record u can use 
    READ TABLE itab { table_key  | free_key | index } result.
    2. if you want to compare the fied value level u can use
    log_exp - Logical Expressions
    CO, CN, CA, NA, CS, NS, CP, NP
    Regards,
    G

  • Since reconnecting bluetooth on my 3G after accidently dropping (the ap not the phone) I have successfully reconnected only to find the phone continuously searching for devices. To stop excessive draining of the battery I turn bluetooth off.

    After successfully reconnecting my 3G iPhone to bluetooth (I accidently dropped bluetooth) the phone contantly searches for devices. Everything works fine now but it appears the battery is draining more rappidly because the phone is constantly searching in the background. I turn bluetooth off when I exit the but it drives me nutty. Any suggestions?

    Is it possible to find out what serial or UDID info is stored on iCloud being used by the FindMyIphone site?  The FMI website doesn't show anything but the name and the device image (which is a generic iPhone image, and definitely not the 5S )
    Unfortunately not.

  • Is Safari Find function flexible? (Search for inner strings of characters?)

    I'm running 10.6.8 with Safari Version 5.1.7 (6534.57.2). I see that when you search a web page using the Safari Find function, you can only search for the beginnings of words, not for character strings within the words. Is it possible to expand the Find function's capability to search for inner strings of characters?

    use command F or the edit menus to make the page search box visible - click the magnify/arrow icon at the left side of it - choose "contains" or "starts with".

  • On iMac maverick using numbers how do I search for an address without scrolling through all. Chris

    On iMac with maverick using numbers spreadsheet, how do I search for an address without scrolling through the lot.

    Better to post your topic in the dedicated Numbers community >  Numbers for Mac: iWork: Apple Support Communities

  • I have lost my 'music, mail, safari and phone' icons and i cant get them back alothough i can still find them when i search for them in the search bar.

    my 'music, mail, safari and phone' icons have gone from my home screen and the rest of my apps have spread out only show 16 on a page (instead of 20)  i have no idea how to get them back and have tried resetting home screen which did nothing.  i can get onto these applications but i have to search for them in the search screen.  can anyone help me get these icons back?  if so please help

    this just rearanges the icons in the same order but with the screen still set up with only 16 icons an the bottom 4 (muisc mail...) missing    are there any other ways i can get them back?

  • I lost my iPhone 5 and when I use my ipad mini to search for it, it finds my mini but not my phone?

    I lost my iPhone 5 and use the app find my phone using my mini pad, the pad finds itself but not the iPhone

    I don't remember if I set the phone up or not, I guess I'm was under the impression that with iOS 7 the phone had a preset installed to find my phone? I'm curious whether apple has the technology to aid me in finding the phone?

  • Using F4 Matchcode help when searching for SalesOrder in VB

    Hi!
    I have programmed a SalesOrder-search in VB 6 using the following code and it works fine:
    Set FunctionCtrl = CreateObject("SAP.Functions")
    Set funcOrderDetail = FunctionCtrl.Add("BAPI_SALESORDER_GETSTATUS")
    funcOrderDetail.Exports("SALESDOCUMENT") = "0027100283"
    If funcOrderDetail.Call = True Then
    End If
    Now I want to use the F4 search help like it is given in VA03. That means, I want to retrieve the SalesOrder-Number "0027100283" by giving PURCHASE_NO for example.
    I tried using BAPI_HELPVALUES_GET_SEARCHHELP like this:
    Set funcF4HelpDoku = FunctionCtrl.Add("BAPI_HELPVALUES_GET_SEARCHHELP")
    funcF4HelpDoku.Exports("OBJTYPE") = "BUS2032"
    funcF4HelpDoku.Exports("METHOD") = "GetStatus"
    funcF4HelpDoku.Exports("PARAMETER") = "SalesDocument"
    The result is the following line, but I think I'm on the wrong track:
    VBUK;VBELN;D;0001;000000;000010;Vertiebsbelegnummer;Beleg;Vert.Bel.;VBUK
    <b>Could anybody give me an example how to use F4 Matchcode search remotely in VB to find valid SalesOrder-Numbers for getting Details with BAPI_SALESORDER_GETSTATUS?</b>
    Thanks in advance!
    Thorsten

    Dear Friends
    Please help. If any one can guide me. Is it a standard functionality of SAP archivelink for Assign and Store.
    With Regards
    Mangesh Pande

  • How to use p_mainsearch parameter in basic search for a report with bind variable?

    Hello,
    I'd like to extend the basic-search in content-area elements to extra records in my own tables.
    So I'd like to use the p_mainsearch-urlparameter (which holds the searchtext of a basic search) into a bind variable of my own report. My report will be on an extra tab on the search-page.
    Especially I don't know how to transfer the value of p_mainsearch into the bind variable of the report.
    Has anyone done that so far?
    Example?
    Thank you,
    Joerg

    I found out the following way:
    1.)Report
    1.1)SQL-Query:
    select * from <owner>.<tablename> where UPPER(column) like '%'||UPPER(NVL(:searchtext,'abczyx123098'))||'%'
    (Note: bind variable is :searchtext).
    1.2)in "before displaying page"-section in "additional plsql" add the following:
    if length(get_value('p_mainsearch')) >= 3 then
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values, p_reference_path||'.searchtext,
    portal30.wwv_standard_util.string_to_table2(get_value('p_mainsearch')));
    end if;
    1.3) publish as portlet
    2.) Integrate the report-portlet into a new tab on search page. Run basic search.
    Change to the tab with the portlet.
    For me it is solved.
    Joerg.

Maybe you are looking for

  • I need to add more RAM, what do I do and how much do I need?

    I have an imac. It is a 21" 2011, 10.8 op system  with 4 gigs of ram. It has begun to show the "colored wheel" and a few of the programs that require a lot of ram lock up. I was told I needed more RAM. Where do I buy it, what kind do I need, and how

  • How do I download a pdf, fill in the blanks and then email

    How do I download a pdf file, change it so I can fill in the blanks, then email?

  • Chinese font not showing up in Illustrator

    Greetings, I am having a problem getting a font to show up in Illustrator (and every Adobe app) but it appears just fine in Word. The font is located here: http://www.ibiblio.org/chinesehistory/contents/08fea/c02.html and is called "HanDing-CS" (HDZB

  • Problems with 40 height tables and form.

    Hi I have a a table about 40 in height.I have inserted a form and one textfield and button. When I upload the page the form seems to be at the bottom of the table instead of in the middle. I have centered the form but I am not sure how to center it h

  • Another multi-record block question

    I have always struggled with this. I have a muti-record block(10 records displayed). Eventhough my block is a db block, I have not assigned it a table. Hence, it is a non-db block. If I set enabled on a txt box, it is enabling the entire column. I ne