Children's favorite

Last week I asked for help on a script to remove pages annotated and immediately got help from the MVP. The proposed fix worked perfectly, but I quickly realized that my strategy wrong. The documents I want to process consist of two or three thousand pages, grouped with several top-level bookmarks that are also called destinations. Given that I find and highlight key words and then delete pages without annots, it happens that sometimes a page with a top-level bookmark is deleted and then don't leave no link to the child pages beneath it. So, I would add a condition to the script to check if the page has a son. High level bookmarks are of 7 digits, and children Page 2, page 3 and so on. The Acrobat says 'children' reference returns an array, but I'm confused.  I tried the following code, but then Nothing is deleted.  Guys thank you very MUCH for the time you put into this forum. I learned so much reading answers to other questions.

Capture.PNG

The only way you can get the page numbers on which bookmarks are tip is to run the bookmarks (from the execute method of the bookmark object - forget about the annotations, they are not related), then check the current page (using the property of the Doc object pageNum) number.

There is no way for a list named Destinations or when they are placed using JS.

Tags: Acrobat

Similar Questions

  • Old favorites are not compatible with the version 20 + Firefox

    General information:
    I use the old client version 3.6 given that an old utility addon author stopped update and will not work with the new revisions. Despite disabling the update featured on: config and in preferences, the browser refreshes still finished (initially I was using 3.4 and would prefer to use that, but no matter how I try I can is no longer cancel 3.6 to 3.4 even if I reinstall using an Installer 3.4). Accordingly, I had the habit of keeping a copy of my directory of firefox where it updates again without asking, she has. This could help the guy out to meet countless people who have lost their favorites because of the upgrade released this year and I hope that someone to investigate and release a patch/utility to fix the problem.

    Question:
    I checked that the most recent customer since at least version 20 and leave, are not compatible with the old bookmark JSON files. Those who have been upgraded to the latest revision not only lose their favorites, but cannot restore them either, as Firefox only returns the error message: "unable to process the Backup File.

    I confirmed that the files themselves are perfectly intact with no sign of corruption and are as expected. Restore ok old revisions of browser (in my case specifically 3.6), they will not restore the most recent customer reviews. This isn't a fault with bookmark backups, but with new clients (I guess they changed the way they store information in the JSONs at some point. I note in the code for the JSONs GUID has never been used in old revisions, but it is in the most recent revision. Maybe it's causing an incompatibility problem? You just need to adjust the client so that it looks for the GUID and if none can be found to ignore it rather than decide that the file is corrupted.

    Old JSON Code snippet: {"title":"","id":1,"dateAdded":1306666129870000,"lastModified":1306670152435000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1306666129870000,"lastModified":1381254048121000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recently Bookmarked","id":6,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&excludeItemIfParentHasAnnotation=livemark%2FfeedURI& maxResults = 10 & queryType = 1 "}, {'index': 1,"title":"Recent Tags", 'id': 7, 'parent': 2,"annos": [{'name':" places/SmartBookmark', 'flags': 0, 'expires': 4, 'mimeType': null, 'type': 3, 'value': 'RecentTags'}], 'type': ' text/x-moz-place', 'uri' ":" place: sort = 14 & type = 6 & maxResults = 10 & queryType = 1 ""}, {'index': 2, 'title': id '',' ': 8, 'parent': 2, 'dateAdded': 1294868015246000, 'lastModified': 1294868015246000, 'type': "text/x-moz-place-separator"}

    New JSON Code Snippet: {"title":"","guid":"5rkFafJ6AnRZ","id":1,"index":0,"dateAdded":1396387525168000,"lastModified":1396387525168000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","guid":"m7vLM41-lzQi","id":2,"index":0,"parent":1,"dateAdded":1396387525168000,"lastModified":1396387526173000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recently Bookmarked","guid":"BEffyw6xva93","id":13,"index":0,"parent":2,"dateAdded":1396387526172000,"lastModified":1396387526172000,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4 ,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1"},{"title":"Recent Tags","guid":"WmnlbVv38Bjv","id":14,"index":1,"parent":2,"dateAdded":1396387526172000,"lastModified":1396387526172000,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:type=6&sort=14&maxResults=10"}

    Solution?
    In my case, I had a copy backup of the old directory for review. To restore I opened the copy and export bookmarks as an HTML, that I restored in the most recent client. If you don't have a copy of the former client, the best thing would be to try and re-install an older revision of the customer and either make a copy of the program folder and use another copy of that you can use the new and old customers and you worry about the loss of an older revision, since you'll always have 2 copies of the former client (the one you use the one that you use to restore in the case of at level). Or export bookmarks to an HTML element, and then upgrade the client to the newest and import the HTML instead of JSON files.

    Please review and create a more simple solution to a problem of stupid incompatibility. ^_^

    There are a number of operations in the file places.sqlite which are obsolete.
    For example,.

    setItemGUID (aItemId, aGUID) obsolete since Gecko 14.0 - returns a unique global identifier for the element. This is mainly for use by extensions that synchronize data between different profiles bookmark.



    Former id snippit:
    "title": "','id': 1,"dateAdded": 1306666129870000,"
    New snippit
    {"title": "","guid": "5rkFafJ6AnRZ",""id ": 1, 'index': 0, 'dateAdded': 1396387525168000"}

    There are other identifier here has changed, I think in version 14
    «Note: the importHTMLFromFileToFolder() method has been removed in Gecko 14.0 (14.0 Firefox / Thunderbird 14.0 / SeaMonkey 2.11).»

    But more likely the former is Netscape format: http://msdn.microsoft.com/en-us/libra.../aa753582%28VS.85%29.aspx

    I tried this however: I installed the old version (3.5) and updated to the current version. All my favorites were there. I had to check the updates and could not skip certain steps of 3.5 to 3.6 for example. He then went from 3.6 to 12, then with todays update went straight to 30. They're all here. However nothing is perfect, backup is recommended as well.

    Back to your question, makes it easier for backward compatibility, my hypothesis is that they changed with the updates and ignored some versions. Saved profiles or places.sqlite files may be missing this change because the format changes in the update?

    My suggestion would be filing a bug at this request, providing a few cases where this would be necessary. Currently only the current version of Firefox is supported, which can leave us to the work around that you are currently using.

    Reference documentation for the developer of the places :

  • How to view favorite contacts

    My watch is missing the screen list of favorite contacts (for sending messages).  How can I get that back?

    Unfortunately, you can not. The ability to see the list of favorite contacts by pressing the side button on the phone has been removed, with watchOS 3. Now, you need to access it via the Contacts App or Siri.

    Back to Apple's http://www.apple.com/feedback/watch.html , here, if you want to let them know you want to see him back.

  • Phone contacts in stripped since i0S 10 Favorites

    I had some Favorites in my phone since I got it. Some of my favorites have multiple phone numbers. It is used to allow a choice of what number is the first number preferred using the arrow and choose. However, that work is no longer works. I turned off the phone, changed the contact and even then removed re - add to Favorites.

    I think that you are referring to your Favorites in the phone app.

    Click 'Edit' at the top right.  Then, you will see three horizontal lines stacked to the right of each preferred telephone number.  Simply raise or lower by dragging the three horizontal bars at the same time, and you can place phones in any order you like.

    This feature is available since many versions of iOS.

  • Missing Favorites/Top sites button

    There used to be a button on the Top sites page to change to Favorites (and vice versa). This button is gone. In preferences/general, I must choose between the best sites and the favourites for the TWO new tabs and new windows, I see one or the other. What happened to the ability to switch between these two views, I use both. I have also no bookmarks pane in the preferences. [OS X 10.11.6;] Safari 10.0]

    Send feedback to Apple. They will not respond, but at least know that there is a problem or a suggestion for change. If enough people send feedback, it can get change / suggested the problem solved as soon as possible.

    Your comments

  • I recently downloaded my favorite CD music in my I tunes library, how can you transfer this music on a USB Flash drive so that I can play the music through my stereo system H D - Bike. I'm 10 Windows on my PC

    I recently downloaded my favorite CD music in my I tunes library, how can you transfer this music on a USB Flash drive so that I can play the music through my H D - bike

    stereo system.

    I'm 10 Windows on my PC

    Select the songs in iTunes, let them slip into a file Explorer window showing the flash drive, drop.

    TT2

  • How to display photos marked favorite in the last 24 hours

    Is it possible to selectively display the photos in the last 24 hours (for example)?

    I would like to see the pictures on my computer that I scored so I iCloud active library favorite on the iPhone in the last 24 hours.

    Ideally, I would like to automatically save these pictures in a folder on my mac (for then maybe download these photos on a photo sharing site).

    Thank you!

    You can make a smart album

  • Safari 10 Favorites

    After having upgraded to Safari 10, I find now that when I open Safari, my favorites are displayed instead of a blank tab.   Can any kind person remind me how to stop this?

    Thank you

    Safari/Preferences/general/New tabs open with - the value empty page or whatever it is you want.

  • How can I keep separate favorite Safari on iPhone & Sierra?

    When I downloaded Sierra, all my favorite iPhone showed on Safari. Then when I've retouched on Sierra, they have changed automatically on my iPhone. I don't want to!  I want to separate them.  How can I?

    System Preferences > iCloud > Safari off the COAST.

  • Favorites deleted in maps

    Yesterday, I had several dozen favorite in my maps application (10 IOS on iPhone 5).  This morning I have zero.  Someone has any idea where they could have and if there is a way to recover them?

    Hello John_Berkowitz,

    Thank you for using communities of Apple Support. Is my dozens of understanding of your favorites of maps are now gone. I rely on my favorites in many different applications. I can understand your concern. I'm happy to help you.

    I recommend first of all restart. This can solve many unexpected behaviours. Follow these steps to restart

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo

    Restart your iPhone, iPad or iPod touch

    If you have a recent backup you can restore from the backup. Please follow the steps below to restore from a backup.
    Restore your iPhone, iPad or iPod touch from a backup

    Have a great day!

  • ADD favorite transit cards

    How to add favorite cards transit subway lines

    Hi lindon,.

    I see that you want to help with one of the new features of the cards in the iOS 10. Here is an article that contains the information you're looking for:

    Add a favorite transit line

    With iOS 10, you can add public transit lines to your Favorites and then see them in your Widget for more timely information. To add a line of transit to your Favorites, follow these steps:

    1. In Maps, press on , and then select the Transit.
    2. Zoom in on the transit line. Then type the name or number of the transit line. You can also see a symbol for the transit line.
    3. When you see the card details, scroll down and tap Add to Favorites.

    You can also enter your destination, then tap the Directions to see if there are other types of public transport you can take.

    Use maps on your iPhone, iPad or iPod touch - Apple Support

    Hope that helps. Thank you for coming to Apple Support communities and have a great day!

  • How the message to your Favorites

    How to set my watch to be able to text my favorites more quickly

    Hello

    Under watch OS 3, to send a new message using your Apple Watch Messages:

    • Use Siri: for example "Hey Siri, say Jane I'll be there in 30 minutes" and then lower your wrist to send (No button tap / press is necessary).
    • Open your Messages > firmly press the list of conversations > tap new Message > tap Add a Contact, then either:
      • Tap a contact in the list of recent conversations that appears;
      • Or tap on '+' to select your complete contacts list;
      • Or press the Microphone button to search for a person in your contacts or dictate a phone number.

    More information:

    https://help.Apple.com/watch/#/apd92a90f882

  • Favorite screen went from Apple Watch

    I updated my Apple Watch OS3 and now when I push the button located under the dial, my dock screens go up and my screen is not the case to find.  In addition, in my app to watch on my iPhone, I see is more 'friends' to add contacts to my favorites.  Help, please! Without that, I can't make a call or a text of my watch because there is no contacts in there.

    Hello

    Under watch OS 3, the friends feature (which was available in previous versions) comes over and there is no direct replacement for it.

    When making calls or sending of new messages, contacts instead can be selected via the phone and Messages applications or using Siri:

  • Can someone tell me where my favorite friends are on the new update?  He used to come to the top by pressing the side button

    Before this upgrade, it was easy to send a message or call your Favorites Apple Watch. Now, I can't find any

    Hello

    Under watch OS 3, the friends functionality, which was available in previous versions, comes more and there is no direct replacement for it.

    When making calls or sending of new messages, contacts instead can be selected via the phone and Messages applications or using Siri:

  • Why the wheel of favorites to friends has been removed in ios3 in update? How to send a message unless someone has already sent me a message?

    So, I was excited by the new OS3 for Apple Watch update and I have now downloaded and installed. Only to find one of the features I've used a lot seems to have disappeared forever. The wheel of 12 favorite contacts friends went completel, the problem is that I used this a lot to launch messages quickly when I'm stuck in a meeting.

    Workaround for this problem seems to be to open messages and find a message from the person you want to contact, but what happens if they don't have not sent you a message? How would be feasible send their text or digital touch? The only application of contacts part of the phone app and it only allows me to call.

    Maybe that is not something that many people used but I did and I'm upset his party. There is no need to be attached to a button, but you could keep it as an application that I could add to my dock. Now I feel I lost the update functionality to the last update.

    Hello

    If you want Apple to consider restoring friends to watch OS, you can submit the form here, by choosing "feature request" as a return type:

    https://www.Apple.com/feedback/watch.html

Maybe you are looking for

  • Skype reciveing not incoming calls

    I use Skype 7.24 on win 10 I can't receive incoming calls if I get a group call, a conversation Untitled window appears and I can't join the call as it just keeps ringing at the other end This problem persists on the Office of Skype and Skype web How

  • IdeaCentre AIO 700 - BIOS update error 0162

    Hello I have a Lenovo ideacentre AIO 700. I tried to update the BIOS of O1KTT30AUS to the most recent available on the pilot product page and the software that is listed as O1KKT35A. Now when I start up I get an error message from American Megatrends

  • Part removed from the registry, cannot open the .exe, .lnk and cannot access the system restore

    Following the advice on a Wikipedia page to remove a virus 'active security scan', I accidentally deleted a potion of my registry (software?)  Now I can't access any .exe, .lnk, files etc.  I get the message "windows cannot open this file", and then

  • cleaning of the entire computer

    How to erase everything on my computer and start again.  Ive got overheated, slow computer, too many mistakes etc tired of him cutting.  I think I want to just start again. computer laptop inspiron 1525 Dell. Thank you

  • DeskJet 3050 a cannot disable the unwanted print job

    I have a jod impression which shows that deletion, but he never removes, and for this reason, I can not print anything else. my printer works as it makes copies and I did an alignment, so I guess it's a software problem but just a guess.