Get an AIArtHandle for all the selected items in the doc

I'm doing what someone does in this other thread about the export in PNG.

reference: http://forums.Adobe.com/thread/320685

We have several layers (some off and locked).

I would like to pass all the selected items to the Action of Image Optimization as a group rather than optimize each.  I use AIMatchingArt Suite to retrieve items selected, but it points to an array of AIArtHandles... any ideas?

That's how I ended up doing and it works.  (In addition to the other code which has been referenced in the original post).

I don't know if it would work better with an ArtSet, but it works.  Perhaps, if the images I'm flattening were somewhat more complicated, I would run in the duplication you mentioned.

result = sAIActionManager-> PlayActionEvent (kAISelectAllAction, kDialogOff, NULL);

result = sAIMatchingArt-> GetSelectedArt (store, & County);

If {(result)

Store = NULL;

Count = 0;

} else {}

result = sAILayer-> InsertLayer (NULL, kPlaceAboveAll, & newLayer);

If (newLayer &! result)

{

sAILayer-> SetLayerVisible (newLayer, true); See the layer

sAILayer-> SetLayerIsTemplate (newLayer, false); Mark as NOT a model layer get exported

sAILayer-> SetLayerEditable (newLayer, true);

result = sAIArt-> NewArt (kGroupArt, kPlaceAboveAll, Nile, &group);)

for (index = 0; (result == kNoErr) & (index< count="" );="" index++="" )="">

Art AIArtHandle = (* store) [index];

Copy of AIArtHandle;

Add the art group

result = sAIArt-> DuplicateArt (kPlaceInsideOnBottom, group, ©);)

}

}

}

Tags: Illustrator

Similar Questions

  • Windows 7 - How can I get rid of an "All Control Panel items" icon on the desktop?

    Only, I've migrated to Vista Ultimate x 64 to Windows 7 Professional x 64.  I used Laplink to move all my users, programs, and settings.  Everything is great, except now there is an icon on the desktop for all my users that I can't get rid of - it connects to the control panel and is called "All Control Panel items" - it cannot be deleted or moved to the Recycle Bin. Make a right click on it brings up a menu with 'open' and 'create a shortcut' by dragging it to the trash does not delete it.

    If I am right cick on the desktop and add Control Panel to the items displayed on the desktop, a second control Panel icon appears with the same picture, but the text is just 'control panel '.

    I don't know there is a registry key that I have to remove or adjust but after a lot of research can't find anything.

    Open the Publisher of the registry (Regedit.exe) and navigate to:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace]

    Backup the key by exporting to a REG file.

    Expand the branch above and delete the following subkey:

    {21EC2020-3AEA-1069-A2DD-08002B30309D}
    (The above is the GUID for "All Control Panel items" Namespace)

    Similarly, to remove the entry here (if found)

    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace]

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • How to get a list of paths for all the files used in a project

    I have a CC Pro first project that has a large number of bins.  A sequence in one of these bins uses files of the other tanks.  I'll try to find the locations of all of the files used in the project.

    (1) obviously I can select each item in the timeline and display in the finder, but there are a lot of clips

    (2) the use of the video associated with each file in the project would help.  However

    1. I have not found a way to display only the clips that have the use of the video if all locations have not been developed.

    2. use video shows its use for all sequences, so it should be manually checked traction towards the bottom for each file see if it is used in the sequence in question.

    (3) I tried to export the project to the final cut pro xml.  The url path gives me the information I need.  For some reason, however, when I do the single export item information are here, not the information for all the other elements of the project.

    (4) I got tired of export for speedgrade, and all file names are there.  However, the railways are not.

    Basically, I want to find all the files in the project and transfer them to a specific folder for this project.  There must be a way to do this, but I'm not...

    You can import the sequence in a new project and then use the project manager to make them all together.

  • Number of days for all the months of the previous 10 years

    Hi guys,.
    I wonder if there is a way to insert in my table of data for the period dimension all
    days for the months of the year 2004,2005,2006,2007, etc..
    Is there somewhere in the Oracle database that stored the number of days for all the months of the years?
    I think I woud have to use a loop of the GET something like the following:

    -The year month day
    2004 - 1-1
    2004 1-2
    2004 1-3
    2004 1-4
    2004 1-5
    2004 1-6
    etc.
    Assuming that there are 28 or 29 or 30 or 31 days the lines for January 2004 would be 28,29,30 or 31.
    I need it for all the months and years.
    Thank you
    metalray

    Hello

    The following SQL returns all the days from 01/01/1970 until today:
    + (Just modify the FRST to What You Need).

    with beginat as (
    select trunc(to_date('1970/01/01','yyyy/mm/dd')) frst from dual
    )
    select frst+(level-1) as daydt
    from beginat
    connect by level <= ceil(sysdate-frst);
    

    With a previous alter session set nls_date_format = "dd/mm/yyyy hh24:mi:ss" result would be:

    DAYDT
    -------------------
    01/01/1970 00:00:00
    02/01/1970 00:00:00
    03/01/1970 00:00:00
    04/01/1970 00:00:00
    05/01/1970 00:00:00
    06/01/1970 00:00:00
    (...)
    09/01/2011 00:00:00
    10/01/2011 00:00:00
    11/01/2011 00:00:00
    
    14986 rows selected.
    

    In fact, the real question is: Why do you need them?
    (^_^)

    Published by: Nicosa January 11, 2011 14:25
    (for the correction)

  • How can I get my contacts and all the other stuff I had on the old email?

    Original title: I changed my email because they said my old email was invalid... How can I get my contacts and all the other stuff I had on the old email? They said, it has been deleted

    If my email isn't valid how I used it?

    Hello

    1. which email account you are referring to?

    2. What is the version of Windows installed on the computer? For example, Windows 7, Vista

    Please answer these questions and provide additional information so that we can better guide you.

  • (1) is there a function for all the object of the same size?

    (1) is there a function for all the object of the same size?

    Sorry, I thought you wanted to align the objects.

    We do not have the function to make items of the same size. You must change one by one. To change the .lks file may be more effective.

  • just has got rid of the virus and responsible for all the disks but given the wifi does not work

    WiFi doesn't work do not

    just has got rid of the virus and responsible for all the disks but given the wifi does not work

    Hello

    Check with the system manufacturer or the actual WiFi device manufacturer and ask in their forums (if any)
    for problems known.

    Actually, try updating your driver:

    Control Panel - network - write down of the brand and the model of the Wifi - double click top - tab of the driver - write
    version - click the driver update (cannot do something that MS is far behind the pilots of certification). Then
    Right click on the Wifi device and UNINSTALL - Reboot - it will refresh the driver stack.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    Download - SAVE - go where you put it - right click – RUN AS ADMIN.

    You can download several at once however restart after the installation of each of them.

    After watching the system manufacturer, you can check the manufacturer of the device an even newer version. (The
    manufacturer of system become your backup policies).

    Repeat for network (NIC) card and is a good time to get the other updated drivers as Vista like
    updated drivers.

    I would also turn off auto update for the drivers. If the updates Windows suggests a just HIDE as they
    are almost always old, and you can search drivers manually as needed.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • In Windows Media Player 11, I would like to change the album art integrated for all the songs in an album while removing all previously used album art.

    In Windows Media Player 11, I would like to change the album art integrated for all the songs in an album while removing all previously used album art in advanced tag editor. My mP3 player only displays art on top of the list of advanced tag editor and WMP automatically puts most recent album on the background art. Is there a way to change this?

    Hello

    Try the following steps:

    a. connect to the Internet.

    b. open Windows Media Player.

    c. click on the Library tab, and then go to the album you want to resolve.

    d. right click on the album and then click on Find Album Info.

    e. If you get an error message that says you must change your privacy settings before you can update media information, follow these steps: click on the Tools menu, click Options, click the Privacy tab, and then clear music update files by retrieving the news media from the Internet check box. Then, in the library, repeat the previous step.

    See the following articles for more information:

    http://Windows.Microsoft.com/en-us/Windows-Vista/wheres-my-album-art-fixing-song-titles-artist-names-and-more-in-Windows-Media-Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-or-change-album-art-in-Windows-Media-Player

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • HI everyone, I paid almost 10 days ago, my supcripcion to plan for all the app elements, and after u date of my latest plan, any program is runing, always appear, your time taking, is late, please by the app with my adobe ID works correctly?

    HI everyone, I paid almost 10 days ago, my supcripcion to plan for all the app elements, and after u date of my latest plan, any program is runing, always appear, your time taking, is late, please by the app with my adobe ID works correctly?

    Photoshop Elements and Premiere Elements are NOT part of the cloud... you buy a serial number, not a subscription, and you enter the serial number during installation

    If you don't want to say things, read below

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • I get error 201, despite all the advice, I found so far

    I get error 201, despite all the advice, I found so far. I'm using 64-bit Windows of 8.1. Thank you.

    If you already tried all the steps:

    Download the direct installation file and install Adobe Creative Cloud app.

    Step 1:

    Click on the link below and open Photoshop Elements download link.

    Do not close the page, just keep it open.

    Download Photoshop Elements products | 10, 11, 12, 13

    Step 2:

    Click on the link below and download zip file of cloud creative direct Installer:

    http://trials2.Adobe.com/AdobeProducts/KCCC/1/Win32/ACCCx3_0_0_74.zip

    Once the downloaded Zip file, right-click on it and select the option extract all and extract the content and try to install the Adobe Creative Cloud app and check.

  • How to get a list of all the pipes in a ThinApp

    I have a simple program to list all files in a folder.  I use it to get a list of named pipes by the way
    \\.\pipe\*as the argument, but it does not work if I Pack the program as a fine application.  I get the error code 3 (ERROR_PATH_NOT_FOUND).  I tried to use CreateFile on
    \\.\pipe\but he also failed when running as a ThinApp. Are their ways to get a list of all the pipes in a ThinApp?  Here is the source code.

    #include <windows.h>
    #include <tchar.h>
    #include <stdio.h>
    
    #include "stdafx.h"
    
    int main(int argc, char* argv[])
    {
       WIN32_FIND_DATA FindFileData;
       HANDLE hFind;
    
       if( argc != 2 )
       {
              _tprintf(TEXT("Usage: %s [target_file]\n"), argv[0]);
              return -1;
       }
    
       _tprintf (TEXT("Target file is %s\n"), argv[1]);
    
       hFind = FindFirstFile(argv[1], &FindFileData);
       if (hFind == INVALID_HANDLE_VALUE) 
       {
              printf ("FindFirstFile failed (%d)\n", GetLastError());
              return -1;
       } 
       else 
       {
              _tprintf (TEXT("The first file found is %s\n"), 
                   FindFileData.cFileName);
    
              BOOL nextFile = FindNextFile(hFind, &FindFileData);
    
              while (nextFile)
              {
                   _tprintf (TEXT("The next file found is %s\n"), 
                             FindFileData.cFileName);
    
                   nextFile = FindNextFile(hFind, &FindFileData);
              }
    
              FindClose(hFind);
       }
    
       return 0;
    }
    

    OK, so what about the original example of FindFirstFile, if I try with 4.6 it does not work for me. I use 6 VC to create the application and then add it to the cmd project and then rebuild. I tried these combinations:

    App.exe \\.\pipe\* (this works)

    App.exe \\.\pipe\ (this does not work, in native mode as it does not work)

    App.exe //./pipe/* (this works)

    App.exe //./pipe/ (this does not work, in native mode as it does not work)

    can you tell me about the results you get when you try the above?

    Thank you.

  • If I bought the creative Club today would pay for all the month of February?

    If I bought the creative Club today would pay for all the month of February?

    No, you are not billed by calendar month but starts from the date of your membership.

    http://www.Adobe.com/products/creativecloud/FAQ.html#purchasing

    "When my subscription start?

    If you purchase your membership directly from Adobe's Web site, it starts as soon as the order is respected by the Adobe Store.

    If you purchase your membership to a participating retailer or an online store, it starts as soon as you enter your purchase on www.creativecloud.com and click on Get Started.

    If you purchase your subscription at a participating retailer, it starts as soon as the seats are added to the account. »

  • How to get a collection of all the dictionaries and the keys to an annotation

    Is it possible to get a collection of all the dictionaries and dictionary key associated with a particular annotation without make queries that require specific keys (CosDictGet(), CosDictGetKey(), etc.)?

    IOW, I want to "GetAllDictionaries (PDAnnot)", then for each dictionary, 'GetAllDictionaryKeys (dictionary).

    If the answer is 'no', then please provide some details.

    Thank you

    Bill

    Sorry - CosObjEnum()

  • my pc CPU running at 100% for all the programs I opened / what is the problem and how to solve?

    my pc CPU fan runs very strongly & the processor running at 100% for all the programs I opened. DO NOT KNOW IF IT IS A VIRUS IN THE PC WAS WORKING FINE A FEW DAYS AGO. How can I solve this issue?

    Hello

    You did changes to the computer before this problem?

    Step 1: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. click on start and then click Run.
    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

    Step 2: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Reference:
    Using the event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true
    Understanding of event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true
    Procedure to view and manage event logs in Event Viewer in Windows XP
    http://support.Microsoft.com/kb/308427

    I would also refer the below article which may be useful.

    The CPU utilization reaches 100 percent when you run programs after you install Windows XP Service Pack 2
    http://support.Microsoft.com/kb/890582

Maybe you are looking for