How to move the frame with the title of undefined to specific layer script?

I use currently using a script to move specifically named blocks of text and page for the corresponding layers elements (this is to make a catalog with several languages)

It looks like this:

---------------------------------------------------------------

App.documents [0].textFrames.Item ("NL") .itemLayer = "NL";

App.documents [0].textFrames.Item ("en") .itemLayer = "EN";

App.documents [0].textFrames.Item ("es") .itemLayer = "ES";

App.documents [0].textFrames.Item ("from") .itemLayer = "OF";

App.documents [0].textFrames.Item ("pl") .itemLayer = "PL".

App.documents [0].textFrames.Item ("base") .itemLayer = "BASIC";

App.documents [0].pageItems.Item ("base") .itemLayer = "BASIC";


---------------------------------------------------------------

If it works fine. All items have been marked beforehand and put in some sort of model that we still use and yet (we use EasyCatalog so if you don't know what I'm talking about, it doesn't make much sense to do it this way)

What I feel is missing is a piece of code that can detect the elements without any script tag, because there is always a lot of handwork to do too much, and new elements - who have no title of script - can get stranded on wrong layers if you don't pay attention.

So basically, I would that all executives without labels, are transferred to the layer "BASE". It seems possible, but I can't find good examples anywhere...

Hello

Try this.

var txfms = app.activeDocument.pages.everyItem ().textFrames.everyItem () .getElements ();

for (var i = 0; i)<>

{

If (txfms [i] .label == "")

{

.itemLayer txfms [i] = 'BASE '.

}

}

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • How to get the title of a table with FDK?

    How to get the title of a table with ad FDK C++?

    I did people. I get objects table paragraph and later the textual elements for each of them.

  • How I continuously loop frames with pause for 20 seconds in each image of the scene even without going to the next scene?

    How I continuously loop frames with pause for 20 seconds in each image of the scene even without going to the next scene? There are buttons for other scenes in these images. The below works well until I got to the last frame of the scene, then he goes to the next scene and plays. How can I make one loop continuously.

    Stop();

    var: timer = new Timer (20000,0); / / <--

    timer.addEventListener (TimerEvent.TIMER, timerHandler);

    Timer.Start ();

    function timerHandler(event:TimerEvent):void {}

    this.nextFrame ();

    or if you want to jump for example 5 executives

    this.gotoAndStop(this.currentFrame+5);

    }

    Thanks for any help.

    If you want to stop your timer, use the stop() method:

    Timer.Stop ();

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • I want to know how to move the cards while trying to play stings on pogo

    Original title:

    Pogo games

    Hello, it was a gift of birthday a week ago.   So, I'm new on a laptop that I think I'm from fresh all over again.   But here's my question: I want to know how to move the cards trying to play spades on pogo.  Don't know how to slide or push enter or even pushing the button on the finger.  Please help I really like playing Spades and pinochle.  Thank you

    You should ask in the forum games Pogo, not Microsoft.

    http://Games-Forum.Pogo.com/

  • How to move the MSWMM files and keep the data on my computer?

    I downloaded digital film from my camera to a destination on my D drive as a file MSWMM (collections), and whenever I try to move the downloaded film (collection), it does not recognize the movie more.

    How to move the MSWMM files and keep the data on my computer?

    The mswmm file is the project file, not a video.
    Think of it as a recipe for a cake, it only tells you what to do with the ingredients, but does not include the ingredients.
    The mswmm file tells the computer to look in a certain folder to use a video or audio file.
    If you move the file, then MM knows not where is the file, then you must tell it, by right clicking on a red x on the timeline and then choose search for the file.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to move the top of the screen (active form)

    Hi all

    How to move the top of the screen (active form),

    Suppose I have 5 screens in the battery, I want to make the screen at the bottom of the stack as Active (top screen) without pushing and poping

    Of the display is a battery.  To move round on screens requires push and pop, as it would to move items in a stack.  Sorry, if you want to see the screen that currently is the bottom of the stack, then you either have everything that is above him, the pop or pop and push up.

    But here, we are talking about instances of the screen, not the specific screen class.  To understand the difference here is an example.

    I have two screens in my application, a list screen and a detail screen.  My application starts with the list screen.  The user selects an item (X) and displays details on the subject using the details screen.  While displaying the detail, the user decides that he wants to see a different list.  So, we start a new instance of the list screen, showing a different list.  Then, the user decides to view some details of one of the items on the list (Y) and if the application displays a new instance of the details screen.

    So now that the user has 4 screens on the display stack.  The top of the screen is a detail showing the item detail screen, the screen below is an example of the display of the list, the screen under that is another detail screen, showing the point X this time, and under that is a list screen.

    Does that help?

  • I'm new to CC.  I discovered that I had to download first CS6 inorder to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial.  How can I get the

    I'm new to CC.  I discovered that I had to download first CS6 in@order to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial.  How can I get the full thing.  I am a Subscriber complete cc

    I don't know what you've done, but here are the instructions to install the PProCS6 and the callback with a cloud account

    Yet the instructions http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html if you have a subscription

    - and the difference in the Cloud application manager 2015 https://forums.adobe.com/thread/1906752

    Still will not run as a trial, it is enabled when you install and activate PProCS6

  • How to move the mouse position of puppetry, followed by position in photoshop?

    How to move the mouse position of puppetry, followed by position in photoshop?

    In Photoshop, handles (guides) are creating/editing mode shape with the pen tool. Select the layer with mousetrack in his name, and then in the pen tool, you should see a small "x" indicating the location of the handful of mousetrack. Press and hold the appropriate keyboard qualifier (for example, Ctrl on Windows) to select the 'x' and then drag it to the intended location.

  • How to move the pulldown workspace Photoshop 2014

    Hello

    I have a pretty simple question, which I am sure has an easy solution, but miss me. One of my colleagues is using photoshop CC 2014 and when she goes to crop a photo the reset buttons, Cancel and Commit pop up, but the check mark (OK button) is actually blocked by menu of the workspace that appears on the right side of the screen.


    Does anyone know how to move the buttons in the toolbar, or move this menu drop-down? She works on a smaller screen, so she has not much real estate to work with and it gets frustrating. It is also important to mention that she is 72 years, so give it a shortcut does not really work, so that the check box.

    Thank you

    Cancel = escape key

    Commit = enter key

  • How to move the index file...?

    I have files of data to index as follows...

    /U02/MY_TEST_DATA/indx01.dbf
    /U02/MY_TEST_DATA/indx02.dbf

    I'm running out of disk space available in u02.

    How to move the two files above to u03? I have a lot of space in u03.
    HP Unix, Oracle 10g R2.

    What I need to change other settings when I move the location of the file? for example, backup, archieve etc...

    Please advice.

    Thank you
    GISH

    Hello..

    Well you can do it in one of 2 ways: -.

    1 put the tablespace contains the data offline files, copy the data index files to the new location, and then change the database rename ' old/file/name/location of the file' to 'new/file/name/locatio. put storage space online. Completed successfully, remove the file data from the old location.

    2. in the hope that these two data files belongs to 1 tablespace and tablespace that contains only the index, you can create a tablespace with its data on the new mountpoint file again, then rebuild the index of aid (dynamic script)

    change owner.index_name tablespace new_tbs_name n parallel reconstruction;

    Once all the indexes have been moved to the new tablespace you can drop the previous old tablespace.

    I would prefer 1.

    HTH
    Anand

  • Can W7 \64 bit\FF42.0\How I move the profiles?

    Everything seems to work perfectly. But I realized that I should be able to find how to move my profile to another drive on my computer somewhere in the profile itself. I've looked everywhere I can think of and can't find this info. If you can tell me where it is, maybe I can manage. But if not, can you tell me how to move the profiles? My os is Windows 7 Pro 64 bit. I am running Firefox 42.0. Your guesses are all correct, except that I'm not sure about the plugin from Adobe. Thanks for any help.

    You can use the Profile Manager to create a new profile on a different hard drive folder by clicking on the button "choose a folder.
    Be sure to select a new empty file and not a folder that already contains files.

    You can transfer files from the current profile folder to this folder.

  • How to move the search return bar to the previous version?

    Using the latest update of Firefox gave me a new search bar, one where I can't change quickly, search engines to the contrary having to go into a menu to do so. This is detrimental for me since I use each search engine search suggestions, I installed. I can't do that. How to move the search return bar to the previous version?

    I found a solution. If you go in Subject: config, then find the browser.search.showOneOffButtons boolean and rocking that it restores the old functionality. (You may have to restart your browser)

    Note that, as always, to edit your subject: config at your own risk.

    credit: askvg.com

  • In FF 29,0, how to move the address bar on the top of the tab bar?

    It's OK in Firefox 28 and less than the value of browser.tabs.onTop = false to move the address bar on the top of the tab bar. But at 29 of Firefox, I can't find the browser.tabs.onTop
    who can tell me how to move the address bar to the top of the tab bar?

    Read this article. This article will help you to customize Firefox commands, buttons, and toolbars.

  • HOW TO MOVE THE FLAG POINT MAP, MIRCOSOFT 2013

    HOW TO MOVE THE FLAG POINT MAP, MIRCOSOFT 2013

    Hello

    It is not a Community Forum for MapPoint.

    Ask here

    Highway, Streets & Trips, MapPoint Forum:
    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Other Support options (not free)

    Support for MapPoint, streets & trips and Highway:
    http://support.Microsoft.com/ph/851

    Don

Maybe you are looking for

  • Satellite Pro A100: How to disable the card Board?

    Hello How can I disable the on-board its on my Satellite Pro A100?I can't find an option in the BIOS. And it is also possible to use the card reader with Ubuntu Linux?It is not up the cards. concerning

  • HP Envy 700 215Xt: request info for BIOS described below

    I hope I'm posting in the appropriate section, basically a beginner in this room. I have a desktop HP Envy 215XT 700 with Windows 7 Pro 64 Bit OS. My interest is in the BIOS, and basically, I want to understand better. What I would like is to have a

  • How to set up Google Cloud Print

    All hell! I just wanted to share a great link on how to set up Google Cloud print on HP printers ePrint compatible and on printers HP classic (inheritance). Please note that if you don't have a google account, you will need to create one to use this

  • HP mini computer: password or administrator code

    Hp mini help of my son wants a password or administrator code and tried three times and came off System 76374492, can anyone help? Thank you

  • Strange phone call

    I was contacted thid morning from someone who said he was from microsoft windows.  He said that my computer has been hacked and that it might crash.  He said he could help me if I did what he told me on the computer.  I was leary I had a hard time to