Help alternating find and changebylist.jsx script that comes with CC samples

i did alternate the same vbs script to suit my needs and i was happy about it (likeChild when you give him his favourite toy) but i run in som problems with it....when i copy and place the vbs script on other computer i want it to use it invokes CS6 instead of CC...i tried everything i could think of but no luck...same thing happens every time i try to use it open CS6 instead CC in which i run it...on the computer i did write it the script run like charm(on both computers i have CS6 and CC)....so i decided to use the jsx version of same script....
then when i try that script:
1. the dialog box is opening only when my cursor is in textframe allowing me to select what i want to change 1.document 2.selected story. 3 selection
2. when i select 2 text frames and on document i have 3 or more the script does not change in 2 selected frames instead it does in all frames
i need to alternate this script
when i select text frame to open dialogbox allowing me to pick 2 of 3 above mentioned options the number 2 and 3
so it do the find and change only in text frames i selected (when it is selected with selection tool) not in all frames
i tried to do that my self but im kinda short of knowledge
i tried to alternate the case dialog box is open adding the line case "TextFrame": in this portion of script
if(app.documents.length > 0){
        if(app.selection.length > 0){
            switch(app.selection[0].constructor.name){
                case "InsertionPoint":
                case "Character":
                case "Word":
                case "TextStyleRange":
                case "Line":
                case "Paragraph":
                case "TextColumn":
                case "Text":
                case "Cell":
                case "Column":
                case "Row":
                case "Table":
                    myDisplayDialog();
and it work for invoking the dialog box when the text frame is selected but then it only do changes in first textframe selected not in all selected....
so i tried to experiment with this line
if(myResult == true){
        switch(myRangeButtons.selectedButton){
            case 0:
                myObject = app.documents.item(0);
                break;
            case 1:
                myObject = app.selection[0].parentStory;
                break;
            case 2:
                myObject = app.selection[0];
                break;
        myDialog.destroy();
        myFindChangeByList(myObject);
    else{
        myDialog.destroy();
by changing the number to 1 or 2 or 3 but that only told the script that if i have 2 text frame selected to do search in second text frame (incase of number 1) or if i have 3 selected and in case of numer 2 only do script in 3 text frame
i need help please

hello,
after line 32 :
var tracingPresets = app.tracingPresetsList;
do an alert :
alert( app.tracingPresetsList );
it'll show you the name of the differents presets
then line 57, call the good preset :
t.tracing.tracingOptions.loadFromPreset('here the name of your preset');
for expanding :
change line 58 like that :
t.tracing.expandTracing();
you forget (t.) at the beginning
best wishes for the new year

Similar Messages

  • KDE and all the apps that come with it

    I have a question about the KDE group (and packages) and pardon me if I demonstrate my lack of understanding.   
    I'm fairly new to using linux as a desktop, although I've been using it (and FreeBSD) as server for quite some time.  So I can get around fairly well with command line, and server based stuff.
    I tried many distributions but didnt find one that I got attached to, and was about to go thru a Gentoo install when I discovered Arch.  Since then its been fantastic.  On my home lan I've replaced almost all my windows installations with arch and have not had any major issues.
    However, looking at the slick way that pacman works, with all the little packages I can choose from and the dependancy chain figured out for me, I was a little dissapointed that KDE comes with a dozen or so packages that contain 100s of apps.   For instance, I am pretty sure I dont need KBabel (a translator), yet I cannot install it thru pacman because it isnt in its own package, it is in kdeaddons.   I REALLY like the idea of having a KDE group that would install everything that it currently does, but why have so many apps inside that group of packages?
    I took a little look at the kde website and didnt really see anything in there that indicated that KBabel is part of an actual kdeaddons package there, so I am assuming that the kde maintainer for arch decided that it should be that way.
    I dont know any better, so thats why I am asking.   I dont have a need for a fax viewer, a tea cooker, or a moon phase thingo.  but I did like the AMOR to amuse the kids a little. So how can I keep one bit and get rid of the others, without having to dig thru stuff and possibly break the dependancy chain?   
    Anyway, not to take away from the effort of those maintaining the packages, because it works quite well and I'm really enjoying my new systems.  Just wanted to ask if there was a specific reason it was done this way.
    Kudos.

    skparkes wrote:
    Well, as it stands, no you can't just pick individual apps in KDE.  If you really want to pick what you want, you will have to turn to building from source.  You can probably alter kdeaddons in ABS, or just start with Konstruct.
    Personally, I understand why they just lump all of kde into 5-10 packages.  It would be a complete headache otherwise.  I've got the hard drive space and I can handle a few unused applications laying around.  Keep up the good work to the new KDE maintainer eh?
    Later,
    Isamoor
    That's probably the exact reason. There's probably around 100+ programs (I could be under or over by a lot, it just seems like there are a ton) that come with a fully installed KDE, and if you had to install them all individually, it'd be hell. It's just easier to put them all together into a few packages, because most people'll probably want to use KDE's stuff within the KDE environment, anyway.

  • Hi, deployed to Europe and trying to set up my apple tv                                             to a JVC model LT-32EX18, it has a 2 port  HDMI and the HDMI cable that comes with apple does not work, what do I need to purchase? TIA

    Hi, deployed to Europe and trying to set up my Apple TV to a JVC Model LT-32EX18, help, it has a 2 port HDMI input, what do I need to purchase in order to set up? TIA

    Apple TV doesn't come with HDMI cable, so you would have had to buy the cable separately unless the Apple TV was bought used. Did you purchase the device from Apple or an authorized reseller?
    Are you sure you're trying the right input?
    The other is a smaller one that is for micro USB (which is used for support purposes only)

  • Yesterday I bought a macbook air and It came with a mag safe of 60w and I have understood that comes with a mag safe with 45w

    Yesterday i bough a macbook air and it came with a 60W charger (mag safe)
    I have understood that cames with a 45W charger.
    Can i use the 60W to charge the macbook air??

    And does its fake??
    Because i have understood that always cames with 45W , AND WHY FOR ME 60W??
    Does normally come 60W or 45W?

  • HT4480 I cannot find my information or code that comes with new MAC boo pro. How do I find it? I did not know what all that was about and how to use it.

    I purchased my new Mac Book Pro 13 inch last Fall 2011. I started using the book in March 2012. I am new users of the Mac book and apple world. How do I obtain $100 ITune credit I was sent with my mac book. It does not show up with the purchase. I did not know exactly what it was and what to do with it. Now I am getting ready to buy some applications using Itunes I could use the credit.

    Try going to the APPLE in the upper left of the screen and click on it , you will get a drop down with several choices , click on about this mac and you will get a pop up with description of your Mac system , click on the more info tab and you will see a complete listing of you system.
    To redeem your ITunes card
    open ITunes and click on ITunes Store,if you do not have an apple id yo will need to create one, look for a tab that says redeem and click on it you will be prompted to enter the code on the back of the card , follow instructions and you should be good to go.  

  • Macbook Pro and those tiny discs that come with a Blackberry

    I use a Macbook Pro, so the disc is too small in diameter to fit in my disc drive. Is there some way where I can download the software without the disc? Thanks, guys.

    http://www.apple.com/macbook-pro/built-in-apps-retina/
    If you suspect something is missing, describe what you think it may be. The programs in your screenshot appear to be the correct ones.
    Be careful with torrent clients...

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • Can anyone help me find my old library now that I appear to have deleted it or overwritten it accidentally?  I'm always asked if I want to update when I put in my i-pod and have to do that before I can open my library so I think it was this action.

    Can anyone help me find my old library now that I appear to have deleted it or overwritten it accidentally?  I'm always asked if I want to update when I put in my i-pod and have to do that before I can open my library so I think it was this action that caused me to delete previous library.  Can anyone help?  Apple support have been hopeless as they don't seem to respond to this particular problem but keep giving me answers to finding my purchases which i already know how to do!

    See your other thread...
    tt2

  • Batch-find-and-replace.jsx

    Hi there, I wrote a batch-processing script for find change queries and thought I share it with you. You can get it over here 
    You can process GREP, TEXT, GLYPH and OBJECT searches. 
    Purpouse
    While creating books in InDesign with several documents we always come across some find change queries that need to be used again, and again, and again. To make this process easier you can just grab their names and put them into a list. The script will than try to process all your queries in one click. 
    prerequisites
    make sure you have a toml file.
    make sure the toml file is next to the script.
    make sure the toml file has the right formatting (see below in section TOML)
    if you want the script to autoexecute (without toml file selection), make sure the .toml file has the right name: "batch-find-and-replace.toml"
    make sure your fcqueries work right
    Usage
    Place the script and the toml file into your Scripts Panel Folder 
    define some find and change queries and save them via the InDesign dialogue.
    get the xml file names and add them to the "batch-find-and-replace.toml" file in the right spot. text search goes into text.files = [], grep search goes into grep.files = [] and so on. Make shure to remove the .xml from the filename. You can find these files on:
    Mac OS Users[username]\Library\Preferences\Adobe InDesign[Version][Language]\Find-Change Queries[query type] 
    Windows XP Documents and Settings[username]\Application Data\Adobe\InDesign[Version][Language]\Find-Change Queries[query type] 
    Windows Vista and Windows 7 Users[username]\AppData\Roaming\Adobe\InDesign[Version][Language]\Find-Change Queries[query type] 
    the .toml file should be located next to the script file and have the  appropriate name (batch-find-and-replace.toml). If so the script wont ask for the toml file and process the data right away. If not the script will ask you to select the .toml file.
    Thats it. Watch the magick happen.
    TOML
    Tom's Obvious, Minimal Language is a simple markup language that makes settings human readable. It is still in development and may change a lot. But still. It is a pretty easy language and can be learned by anyone.
    The basic toml filer looks like this: 
    # these are the basic settings
    # the MUST be there
    do_text = true
    do_grep = true
    do_glyph = true
    do_object = false
    # now the file names
    # they have to be in one line
    # the toml specs say you can break lines in arrays
    # but the toml.js does not allow that at the moment
    [text]
    files = ["my_first_text_find_and_change","another one"]
    [grep]
    files = ["somegrepsearch", "find tabs", "something else"]
    [glyph]
    files = []
    [objects]
    files = []
    MUST HAVE Settings
    With the do_text, do_object, do_grep and do_glyph you can define if the script should do the corresponding find and replace. Set them to true or false.
    CAN HAVE Settings
    In the [text],[grep],[glyph] and [objects] areas you can define the filenames that should be processed. Make sure the filenames are written right. If there is a file mentioned that does not exist the script will throw an error. It will try to process all the .xml files it can find.
    !IMPORTANT! you MUST remove the .xml from the filename in the list as shown above.
    The Script is here --> https://raw.github.com/...find-and-replace.jsx
    The basic .toml file here --> https://raw.github.com/...ind-and-replace.toml
    The Readme here --> https://github.com/...lob/master/README.md
    And the whole package here --> https://github.com/...e/archive/master.zip

    Great script, it worked perfectly with grep, text, glyph, not only worked with OBJECTS, because I do the same operation and does not work. Can you give me a hand? Thank you.
    In arquivo.toml is thus:
    # These are the basic settings
    # The MUST be there
    do_text = true
    do_grep = false
    do_glyph = false
    do_object = true
    do_all_docs = false
    # Now the file names
    # They have to be in one line
    # TomL the specs say you can break lines in arrays
    # But does not allow the toml.js que momento
    [text]
    files = ["_OVER_BLACK_TXT", "_OVER_CORPROF_TXT"]
    [grep]
    files = []
    [glyph]
    files = []
    [object]
    files = ["_OVER_BLACK_FILL", "_OVER_BLACK_STRK"]
    This is the image of the Scripts Panel folder:

  • I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the maste

    I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the master, and I cannot get the margins to alternate at print time. The larger margin is always on the left. Can anyone please help me on this, as I have spent hours and lots of ink.

    Set up as facing pages with a larger inside margin.

  • I have lost my new iPhone. Please help. I have the IMEI no and all the details that comes at the back of the box.

    I have lost my new iPhone. Please help. I have the IMEI no and all the details that comes at the back of the box.

    Having the imei won't help you find your phone.
    If you setup and enabled find my phone prior to losing it then go to icloud.com
    If you didn't set it up - then there nothing you can do.
    Call your carrier and let them know, change all your passwords.

  • Can't find a playlist I created on my playlist or computer? I didn't delete it. I don't want to create it again because it took a long time. please help me find and recover.

    Can't find a playlist I created on my playlist or computer? I didn't delete it. I don't want to create it again because it took a long time. please help me find and recover.

    Playlists only exist as part of the larger iTunes library listing so if you are not seeing it there it doesn't exist anywhere else.  I know with my older version of iTunes it is very easy to accidentally delete a playlist.  With newer versions it may be possible to recover it with the undo feature in the menu but this likely will only work immediately after the deletion.

  • I lost my logic 8 pro serial number. I can't find the booklet that comes with the serial number. How can retrieve this? I upgraded from logic pro 7. I changed hard drives and now it keeps asking for the serial number. But I can't find it. Where can I requ

    I lost my logic 8 pro serial number. I can't find the booklet that comes with the serial number. How can retrieve this? I upgraded from logic pro 7. I changed hard drives and now it keeps asking for the serial number. But I can't find it. Where can I request it? Thanks!

    If you still have the receipt or other proof of purchase, you can ask Apple to send you the serial. Otherwise, bad luck mate.. Good news is, you can now buy Logic Pro 9 from App Store for just 199 USD

  • Alternative Creative Console that comes with driver C

    Hi,
    I have an X-Fi Xtreme Gamer card, and the driver CD that came with it had a different console to the one that the drivers on the website has. It also had a few other customisation options which are unavailable in the "normal" console app that comes with the drivers.
    Is it possible to download this console if you don't have the CD, as I have sort of lost the CD and I want to get this console back so I can customise my subwoofer's settings again. I can't find it anywhere on the site, but the new drivers normally detect it and update it if you have an older version installed, which would be nice if I had the driver CD but I don't right now, so any help given would be muchly appreciated.
    Thanks

    badboy.hub.io

  • I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back-up app.

    I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back up app.
    Have used Superduper app. to back up and checked back-up occasionally to see if all files present  and appeared OK.
    I had previously started machine using original CD #1 to try and replace Eudora which was acting up. Did not knowingly touch Safari.
    Running iMAC System 10.4.11
    How can I successfully download from the Maxtor back-up?
    Ivan

    Further info.
    I checked the content of my other back-up and found the bookmark Bookmarks.plist in the library under Safari
    Dumped the existing copy in the computer and drag-dropped the back up. All bookmarks restored.
    Solved the Stickies problem by using Spotlight  to find file "stickiesdatabase" and did a drag- drop to replace file. All data restored.
    Re Ical data loss. Used Spotlight to find iCal document in  Library - Preferences where I found com.apple.iCal.plist in folder.
    Got ready to make change but did not immediately remove file. When I returned to Preferences folder to grab above document,
    the readable descriptors had been changed to code consisting of some upper case letters and/or single symbols!
    So now I cannot tell which is the symbol  iCal.plist
    Thanks for leading me so far, but how do I find that plist for my calendar?

Maybe you are looking for

  • How to disable Adobe Gamma in Windows 7?

    I have a new PC running Windows 7 and a new monitor. I want to color-calibrate the monitor using Spyder3, as I've done in the past with Windows XP. I cannot, however, locate Adobe Gamma in the msconfig "Startup" folder on Windows 7 to de-activate it.

  • How to go from NW 7.0 (and 7.0 EhP1) to NW 7.0 EhP2 Java only.

    Hi, I'm trying to figure out the correct way to go from NW 7.0 (and 7.0 EhP1) to NW 7.0 EhP2 on a single stack system (Java Only). Some threads on the forum mention the use of SAPEHPI, however, when I go to see the SAPEHPI guide for Java (http://serv

  • 3D Carousel

    Hi everyone, Please help. I have script for a 3d Carousel everything works. But I want to get the images to stay facing the front. I can change most things but am having trouble with getting the images front facing. The property y.rotation I need to

  • Can't upgrade to AIR 2. Same old "administrator" error.

    On Windows XP SP3, attempting to upgrade from Pandora Player, Adobe AIR 1.5.3.9130 to 2.0.2.12610 I get this error. An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. I download the installer and try

  • Editing Canon Raw Files in Iphoto

    Hello everybody, I normally take pictures in RAW with Canon Eos 5d mark 3. My iphoto 9.6 on Yosemite. Before the Update everything was working properly. Now It's impossible to edit my pictures. When I try to edit a picture, this become almost green.