What is the best way to loop through TextFlow to find InlineGraphicElements?

I have created a TextFlow and the images load fine, but I would like to loop through and update all the 'source' properties to change the images.  What is the best way to locate all the InlineGraphicElements in my TextFlow?
Thanks!

leaf = textflow.getFirstLeaf();
while( (leaf = leaf.getNextLeaf()) != null)
if(leaf is InlineGraphicElement)

Similar Messages

  • What is the best way to loop a sound where the loop is a subsection

    I have a sound file, and I am supposed to loop a middle section of the sound, i don't see any way in soundengine to do this. What is the easiest way to loop an MP3 background sound where the beginning is to played once. if I load two sounds and then play both of them they will overlap, yes? I know the time of the loop point, but wonder if there is a way to make it a really perfect loop, with no pauses, gaps or clicks.

    I'm not at my Mac right now so I can't give specifics but SoundEngine allows you to specify attack and decay components to a looping background track. In your case you would specify the beginning section as the attack component and the middle (looping) section as the primary component.
    Craig

  • What is the best way to search for tags in Finder?

    There are a lot of articles out there written about Tags in Mavs. All of them cover how to apply tags, but there is hardly anything written about searching and finding files.
    Now, does anyone here actually use tags in Finder? How do you search for them? Did anyone ditch folders or stytematic file-naming?

    I am currently using and experimenting with Tags. Searching, finding, and managing your tags is pretty straight forward. On the far left side of any Finder window, you have a selected number of Tags predetermined and an option for "all tags." If you click on this link, it will take you to a menu where ALL tags in use are listed. Change the name and color for them just as you would any other file name (I have a usb mouse, so it's a right click for me).
    If you used the "labels" feature (color-coding documents and folders), you have used tags; its the same idea, but now you define a word as what you are sorting by.
    To search for a tag, I either use the in-Finder search or Spotlight (which may be the same, but I am not sure--I am also a newer Mac convert and am still learning the ropes). I have started to organize my schoolwork solely by tagging it, but I have run into issues where I have "Exam 01" for one class and need to make a second "Exam 01" file for another class (I created different tags for each class).
    I will say that, since I started to only use the minimum amount of folders, I have noticed somewhat significant speed improvements in startup times and normal use. However, this coincided with the release of Mavericks so I do not know truly whether the folders help or not.
    One of the things I both love and hate about tags is that you can search across multiple folders (or drives in my case) for documents matching the tag in question. When I download classwork from our school's website, I tag with the appropriate class name, and then move to external hard drive (yeah, I am paranoid). Unfortunately, if I then don't delete the copy inside the "downloads" folder, the document will show up if I try to list all of my "Class" tags.
    Best of luck,
    ~Zach

  • What's the best way to tag across Bridge and Finder/OSX: Images and Text?

    Hello
    I have recently successfully implemented a keyword tagging system across my companies image archive (we have a design archive), using descriptors under headings such as content, colour, theme, movement, material etc.
    This runs out of Bridge and I have found it to be an easy and cost effective way of DAM
    As this has been relatively simple to introduce, I was hoping to be able to 'tag' all of our theoretical content too. These are mostly in the form of word files and PDFs. However, obviously due to the filetypes, Adobe software doesn't allow it to be tagged in Bridge
    I have looked at the option of tagging(adding keywords) to any files (text, pdf, film) using the OpenMeta tag system in finder with the help of Default folder X which would allow to tag the non-image files, and this seems like a viable option
    However, the main usable function I would like to have at the end, is to be able search across all of our files both visual and written. So for example if I searched 'pattern' any written theory and articles would appear alongside images of pattern in the results.
    Short of paying for another piece of software, I am wondering if anyone has had experience of migrating keywords/tags into Finder from Bridge as OpenMetas in order to be able to search all of our content using Finder, or, conversely, has found a way to keyword tag non-Adobe compatible files in Bridge. We have already tagged hundreds of images using Bridge, so retagging keywords again in another software isn't really an option at this stage, I would need to just be able to transfer the info across.
    I hope this makes sense, if anyone has any ideas or experience in this that would be great
    Liv

    Hello
    I have recently successfully implemented a keyword tagging system across my companies image archive (we have a design archive), using descriptors under headings such as content, colour, theme, movement, material etc.
    This runs out of Bridge and I have found it to be an easy and cost effective way of DAM
    As this has been relatively simple to introduce, I was hoping to be able to 'tag' all of our theoretical content too. These are mostly in the form of word files and PDFs. However, obviously due to the filetypes, Adobe software doesn't allow it to be tagged in Bridge
    I have looked at the option of tagging(adding keywords) to any files (text, pdf, film) using the OpenMeta tag system in finder with the help of Default folder X which would allow to tag the non-image files, and this seems like a viable option
    However, the main usable function I would like to have at the end, is to be able search across all of our files both visual and written. So for example if I searched 'pattern' any written theory and articles would appear alongside images of pattern in the results.
    Short of paying for another piece of software, I am wondering if anyone has had experience of migrating keywords/tags into Finder from Bridge as OpenMetas in order to be able to search all of our content using Finder, or, conversely, has found a way to keyword tag non-Adobe compatible files in Bridge. We have already tagged hundreds of images using Bridge, so retagging keywords again in another software isn't really an option at this stage, I would need to just be able to transfer the info across.
    I hope this makes sense, if anyone has any ideas or experience in this that would be great
    Liv

  • What is the best way to make a background loop ?

    Hi guys,
    I have another problem.
    Can I know what is the best way to put a background loop ?
    The background video loop I purchased is only 5 seconds. In Movie Maker, I just hold the end of the clip on the timeline & drag it longer & the background video will go back to the beginning once it reached the end of the 5th sec.
    Do I copy & paste & repeat the clips on the timeline as I don't seem to be able to pull it once it reach 5 secs long.
    Thanks

    Copy and paste.

  • What is the best way to call SSH commands through Java technologies

    What is the best way to call SSH commands through Java technologies

    I don't think you can specify the password at the prompt using ssh. Plink has the -pw command option for passwords. What I did was except ssh to ask me and write the password programmatically through the outputStream I obtained from my Process object. I looked for "password: ", and then wrote the password with a trailing newline.
    Both plink and ssh will also ask if you trust the host if it is the first time you are connecting to it. So before just writing the password, check if the program wants verification from you: normally supplying "y" or "n". This should only have to happen the first time the client connects. It looks like thisPLINK:
    The server's host key is not cached in the registry. You
    have no guarantee that the server is the computer you
    think it is.
    The server's key fingerprint is:
    1024 f8:43:61:4c:a2:5b:77:be:5b:a7:bb:1f:f7:79:b3:b7
    If you trust this host, enter "y" to add the key to
    PuTTY's cache and carry on connecting.
    If you want to carry on connecting just once, without
    adding the key to the cache, enter "n".
    If you do not trust this host, press Return to abandon the
    connection.
    Store key in cache? (y/n)
    SSH:
    The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
    RSA key fingerprint is e1:02:13:c8:52:c2:23:41:9b:5b:58:2c:18:e6:59:af.
    Are you sure you want to continue connecting (yes/no)?What I did was read character by character from the inputStream until I found things of interest ... like "password: ". You only need to search for this in your method which will launch the ssh or plink Process. Once you have verifyed yourself, you can just pass commands to the Process, which is an ssh connection.
    My suggestion is to read() each byte from the Process's inputStream and write it to stdout. Look and see what you need to be looking for so you can interactive with the program correctly. You can't use readLine here becuase when the ssh asks for the password it does not print a newline. I do know for sure, that ssh will simply print, "passowrd: ". Plink will print this as well if the -pw option is not supplied.

  • What's the best way to set up my iPad and iPhone through I tunes

    I have an iPad and now an iPhone what's the best way to sync these in iTunes I'm assuming I'll use the same account and as such the same music aps etcwill sync on both devices? Also it is best to back up to the cloud and would this allows instant transfer of data between device ie pictures? Thanks

    You can use the same Apple ID, iTunes will still be able to tell them apart. If both are on IOS 5.x, you can use backup from the iCloud. To have pictures across all you devices, switch Photo Stream to ON.
    Settings > iCloud > Photo Stream.
    (Note: Photos that are already in Photo Library will not stream, only those you take after Photo Stream is switched on)

  • What is the best way to lay out color-coded Excel data in InDesign?

    I’ve been away from layout for some time. I now need to lay out color-coded Excel data (3 columns, 200 rows) in InDesign 5.5. The data will need to be in alpha order and each row will be color coded, with a color key at the top of the page. What is the best way to lay this out? Should I use the table tool and create a new style for each color that I need to use?
    Thanks for your help.

    I think this will work in CS3.
    Start off by inserting Styles of WEEK, Mon to Friday (as per left)
    Set the Week No. to Bullets and Numbering and insert as per screen shot
    Do the same for Days Monday through to Sunday
    Also set up Monday style NEXT STYLE to be Tuesday
    When you get to Sunday - loop the Styles back to WEEK style.
    Then as per first screen shot you just have to insert RETURNS all the way down to initiate the style.

  • What is the best way to get the minimum or maximum value from an Array of numbers?

    Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2]
    What is the best way to find the minimum or maximum value in
    that Array?
    Right now, to get the maximum, I am looping through the
    Array, and resetting a variable to the value if it is greater than
    the existing value:

    Here's other approaches, the cookbook is your friend:
    http://digitalmedia.oreilly.com/pub/a/oreilly/digitalmedia/helpcenter/actionscript30cookbo ok/chapter5.html?page=7
    enjoy.

  • What is the best way to show/hide n number of columns ?

    Hi,
    I have a dynamic report that I have show/hide columns working using the below code. But when there are 500 or more rows it takes about a minute or more just waiting to see the columns toggle.
    What is the best way to do this?
    // Existing Javascript
    [script language="JavaScript" type="text/javascript"]
    var maxcnt= mymonths.length;
    function hideMaxEarn(){
    for(var j=0;j[maxcnt;j++){
    hideColumn('MON'+mymonths[j],'MAXCOL'+mymonths[j]);
    hideColumn('MON'+mymonths[j],'EARNCOL'+mymonths[j]);
    hideColumn('MON13','MAXCOL13');
    hideColumn('MON13','EARNCOL13');
    function showMaxEarn(){
    for(var j=0;j[maxcnt;j++){
    showColumn('MON'+mymonths[j],'MAXCOL'+mymonths[j]);
    showColumn('MON'+mymonths[j],'EARNCOL'+mymonths[j]);
    showColumn('MON13','MAXCOL13');
    showColumn('MON13','EARNCOL13');
    function getCellIndex(pRow,pCell){ 
    for(var i=0, n=pRow.cells.length;i[n;i++){ 
        if(pRow.cells[i] == pCell) return i;
    function hideColumn(pMon,pCol){
    var l_Cell = $x(pCol);
    var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    var l_Rows = l_Table.rows;
    l_CellI = getCellIndex(l_Cell.parentNode,l_Cell);
    for (var i=0, n=l_Rows.length;i[n;i++){
        if(i != 0) {
           html_HideElement(l_Rows[i].cells[l_CellI]);
    } else {
    $x(pMon).colSpan = $x(pMon).colSpan - 1;
    function showColumn(pMon,pCol){
    var l_Cell = $x(pCol);
    var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    var l_Rows = l_Table.rows;
    l_CellI = getCellIndex(l_Cell.parentNode,l_Cell);
    for (var i=0, n=l_Rows.length;i[n;i++){
        if(i != 0) {
           html_ShowElement(l_Rows[i].cells[l_CellI]);
    } else {
    $x(pMon).colSpan = 3;
    return;
    [script]

    Hi Andy,
    Yes, I replaced the code calling the same things in a loop to one loop getting the Table reference once and I build an array of column numbers at the time the report is built so I don't have to get the column number each time....
    it is a couple of seconds faster in about a 30 second response time. It will have to do it for now, no more time unless you see something in this new code...
    Thank you! Bill
    // dynamically built code
    col_nbr_array = new Array();
    col_nbr_array[0] = "1";
    col_nbr_array[1] = "2";
    col_nbr_array[2] = "4";
    col_nbr_array[3] = "5";
    col_nbr_array[4] = "7";
    col_nbr_array[5] = "8";
    col_nbr_array[6] = "10";
    col_nbr_array[7] = "11";
    col_nbr_array[8] = "13";
    col_nbr_array[9] = "14";
    col_nbr_array[10] = "16";
    col_nbr_array[11] = "17";
    col_nbr_array[12] = "19";
    col_nbr_array[13] = "20";
    col_nbr_array[14] = "22";
    col_nbr_array[15] = "23";
    col_nbr_array[16] = "25";
    col_nbr_array[17] = "26";
    col_nbr_array[18] = "28";
    col_nbr_array[19] = "29";
    col_nbr_array[20] = "31";
    col_nbr_array[21] = "32";
    col_nbr_array[22] = "34";
    col_nbr_array[23] = "35";
    col_nbr_array[24] = "37";
    col_nbr_array[25] = "38";
    col_nbr_array[26] = "40";
    col_nbr_array[27] = "41";
    // Static code
    function show_hide_column(do_show) {
    // Set Style, Show/Hide
    var stl;
    var csp;
    if (do_show){
    stl = 'block'
    csp = 3;
    }else{
    stl = 'none';     
    csp = 1;     
    // get rows object
    var l_Rows = document.getElementById('DT_RANGE').rows;
    var totCellNbr1=parseFloat(col_nbr_array[maxcnt-1])+2;
    var totCellNbr2=totCellNbr1 +1;
    var n=l_Rows.length;
    for (var i=0; i[n;i++){
        if(i != 0) { // if not the main header which spans 3 cols when expanded
          // Go through and show/hide each cell
          for(var j=0;j[maxcnt;j++){
              l_Rows[i].cells[col_nbr_array[j]].style.display = stl;
    // Totals
    l_Rows.cells[totCellNbr1].style.display=stl;
    l_Rows[i].cells[totCellNbr2].style.display=stl;
    } else { // row 1 that has Month spelled out - colspan of 3, others has max,earned and score columns for each month.
    var maxhdr = maxcnt/2;
    for(var k=1;k[=maxhdr;k=k+1){
    //alert('Header['+k+']');
    l_Rows[i].cells[k].colSpan=csp;
    // Total column
    //alert('TotHeader['+(maxhdr+1)+']');
    l_Rows[i].cells[maxhdr+1].colSpan=csp;
    [script]

  • HT1349 I lost/had my iPhone stolen. Tried using Find My iPhone and it's offline. It was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Tried using Find My iPhone and it's offline. It (Find my iPhone) was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Find My iPhone is good for misplaced iPhone but not good for thief and it was never meant to be.
    You chance of getting it back is very small.
    There are a few things you can try.
    Try remote lock/wipe your iPhone through Find My iPhone.
    https://www.icloud.com
    You can report to the police, cell carrier (expensive cell charges for international calls, roaming etc)
    Change all the passwords used in iPhone: Apple ID, E-mail, Bank Account ....
    http://support.apple.com/kb/HT2526

  • What is the Best way To Copy and paste data from 1 book to another

     I have 18 sheets in 5 different books that I want to extract data from specific cells.  What is the best way to do this?  Example:  1 sheet is called Numbers E-O1 data in 13:WXYZ. The data updates and moves up 1 row every time I enter
    a new number. So let's say I enter the number 12. Through a lot of calculations the output goes in 13:WXYZ. To what I call a counter which is a 4 digit number.  Anyways, how can I send that 4 digit number to a totally different sheet?  To bullet
    what I'm talking about
    data in cells Row 13:WXYZ in book called Numbers sheet E-O1
    send data to book called "Vortex Numbers" Sheet E-O row 2001:CDEF
    What formula or Macro can I use to make this work?
    thank you!

    Hello Larbec,
    Syntax:
    '[BookName]SheetName'!Range
    Enter in cell  2001:CDEF:
    ='[Numbers]E-O1'!13:WXYZ
    This assumes that the file is open in Excel. Otherwise you need to add the path:
    'ThePath[BookName]SheetName'!Range
    Best regards George

  • What is the "best" way to configure iTunes on an iMac with personal user acounts so each user can access the media library but sync devices on their personal user account?

    I am trying to determine the best way to set up our imac so each user account can access the same media (songs, movies etc.) through itunes and also back up and manage their personal devices under their own personal user account.  There are 4 users on our iMac.  Me, my wife, and our 2 children.  We have built an extensive library of music/media together using the same iTunes store account.  I would like to establish a seperate apple id and iTunes store account for each of us going forward but have the ability for each of us to share our purchases.  What is the best way to configure our system and devices in order to allow shared access to media and at the same time allow for individual management of devices including contacts, apps, photos, etc. Please help, I would like to do this once!
    Thank you in advance! 

    OK, seeing as no-one replied (presumably because a lot of this information is on the forums in bits elsewhere) here's how I've got on so far.
    Applications - just went through them.  About the only one I needed was my media server app.  Just downloaded and re-installed, had a quick look back though my email to find the license key and it all went on fine.  Installation never seemed quite right on my old machine so solved that problem too. 
    Movies - New iMovies just copied across the clips and projects into their respective folders.  Seems to have worked but haven't checked it all that thoroughly.  Some duplicate footage here but I can trim this out at some point when I get a chance to go through here. 
    Documents - Just copied these across. 
    Photos - used an app called iPhoto Library Manager.  You can download for free but have to pay to use the part that consolidates your libraries.  Possibly if I was willing to spend a bit more time I could have got away without using this but given I didn't know the state of my different libraries and just how many duplicates I had this was too much of a convenience to ignore.  Also got my library into a state where I can now spend a few hours organising it a bit better with Faces / Events etc. 
    Not attempted Music or iPhone sync yet as been stuck trying to solve a problem with my power adapter. 

  • What is the best way of setting up Family Sharing?

    I just bought my son an iPad Mini and I am trying to decide on what is the best way of setting it up for him. The one thing I do know is that I do NOT want all the content that is my iPhone 6 to pop up on his iPad Mini. I want his iPad to be used for his games and educational stuff and his own music. I don't mind setting up a family photo album and share photos with the family. So is the Family Sharing option the best way of doing this based on what I just mentioned? Do I set him up with his own Apple ID? If so will everything still be based off my account so he won't have to create his own iTunes Library?
    I always use iTunes gift cards to purchase music and content. Will I be able to continue to use them even if I want to put some new content on his iPad and not my iPhone? Do I enter in his Apple ID info. Can you restrict certain family members to just certain things for example you only want to share photos with one person whereas you might want to share your music with another family member?
    Any suggestions on the best way of setting this up would great!
    Thanks!

    Hi DVX100Shooter,
    Congratulations on getting your son a new iPad, I am sure he will enjoy it. 
    Family Sharing is one way of managing both purchases and content between members of a related group of people. Each member must have their own Apple ID. You can choose what music you wish to share with the family from your own account. See this article -
    OS X Yosemite: Share purchases with your family
    In particular the section titled Hide a purchase from other family members
    The music library on your son's iPad is separate from yours, but under Family Sharing you agree to pay for all purchases made through the iTunes store. If you wish to control what is purchased you can set up the Ask to Buy option for any family member under adult age in your location. See this article for details -
    Request and make purchases with Ask to Buy - Apple Support
    Gift cards may not be used for billing of purchases under family sharing, with the exception that a family member may use gift cards to purchase their own content. See this article for information about Family Sharing billing policies -
    Family purchases and payments - Apple Support
    The shared family photo album is available to all family members.
    Family Sharing - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • What is the best way to extend a Wireless network?

    Hi,
    We have 3 devices,
    1) Our Primary Network Router (which creates our office Network and has DHCP enabled).
    2) We have and Airport Extreme, which is used to create our Wireless Network (THIS IS SET TO “Create Wireless Network”), it has DHCP Enabled, its DHCP IP Scheme is set to 192.168.2.x, where the IP Scheme of our Primary Network is set to 192.168.181.x.
    3) We have an Airport Express that we are trying to use to EXTEND our Wireless Network.
    The most important thing we are trying to accomplish is to isolate the Wireless Network from our Primary Network, so Wireless Clients can access the Internet, but CAN’T SEE or ACCESS the Shared Network Volumes AVAILABLE ON THE PRIMARY NETWORK.
    At the moment, the Wireless Clients can access the Internet and receive an IP in the range of 192.168.2.x from the DHCP Server in the Airport Extreme. That part of it is working, but the Wireless Clients can unfortunately still SEE and ACCESS the Network Volumes available on the Primary Network. WHICH IS NOT WHAT WE WANT!!
    Question 1: How can we have the Airport Create a separate Network, so the Wireless Clients CAN’T SEE or ACCESS the Network Volumes from the Primary Network, but can still get access to the Internet through the Primary Network?
    Question 2: What is the best way to use the Airport Express to “EXTEND” the Airport Extreme’s Wireless Network? I have tried WDS “Main” for Extreme and WDS “Remote” for Express, but all that doesn’t allow you to use the Extreme to Create a Separate Network, it uses the DHCP Server built into the Primary Network’s Router. Also tried to set the Express to “EXTEND WIRELESS NETWORK”, which seems to work, but I am not sure why. Because I don’t have a cable from the Extreme to the Express, which is sounds like you have to when it is setup that way!!
    Any help would be greatly appreciated!!
    Thanks
    Kalagan

    Question 1: How can we have the Airport Create a separate Network, so the Wireless Clients CAN’T SEE or ACCESS the Network Volumes from the Primary Network, but can still get access to the Internet through the Primary Network?
    There is no way to do this. Any of the wireless clients of the AirPort Extreme base station (AEBS) can see any device connected to the AEBS's WAN port. Clients of a subnet can see anything on the supernet.
    You could configure you network like this:
    Internet-> (WAN) AEBS (LAN) -> Primary router
    As long as the Primary router was providing DHCP/NAT the things on the LAN side of the Primary router would be hidden from the AEBS clients.
    A better solution may be to have 2 completely separate networks OR invest in some type of network security firewall device to actively isolate your Primary network.
    Question 2: What is the best way to use the Airport Express to “EXTEND” the Airport Extreme’s Wireless Network? I have tried WDS “Main” for Extreme and WDS “Remote” for Express, but all that doesn’t allow you to use the Extreme to Create a Separate Network, it uses the DHCP Server built into the Primary Network’s Router. Also tried to set the Express to “EXTEND WIRELESS NETWORK”, which seems to work, but I am not sure why. Because I don’t have a cable from the Extreme to the Express, which is sounds like you have to when it is setup that way!!
    WDS is 802.11g's method of wirelessly extending a network.
    "Extend wireless network" is 802.11n's method of wirelessly extending a network.
    Neither of them require the AirPort Express (AX) to be cabled to the AEBS.

Maybe you are looking for