Applescript: Removing Groups and Layers

This should be a simple task, but I still haven't figured out how to do it.
I have a set of page items, and the are contained in groups inside of layers inside of layer inside of layers.
How can I remove the layers easily?
I looked at the reference guide, and attached the screenshot where it explains how to use the "delete" command to remove containers of objects.
But I still dont' understand how to order the command correctly:
delete page item of layer?
delete layer of page item?
delete page item of layer of page item?
None of these work.
For now, I've just used an action, but it would be helpful if I could do it within a script.
Any help is appreciated.
Thanks,
Ben

I know that I could move the objects out of the layer one by one, but I think there is a way to just remove the containing layer using the delete command.
I looked in the Applescript Illustrator Reference Guide (on page 213)
and here is what it says about using delete to remove container objects:
I just don't understand how to use it correctly in the script.

Similar Messages

  • PS CS6: It'd be helpful to have the option to collapse or expand the nested groups and layers.

    PS CS6: It'd be helpful to have the option to collapse or expand the nested groups and layers all at once.  Autodesk Maya has a similar feature in it's outliner that allows for you to do this.

    And as Jeffrey Tranberry answered there:
    • Open/close all layer groups (folders) at the current level of hierarchy: Cmd-click the arrow next to the group - This is handy when you want to open/close, say, all the top-level groups without disturbing the open/closed state of any groups nested within them.
    • Open/close all layer groups nested within the current one: Opt-click the arrow next to the group - This is nice when you want to open/shut a bunch of nested groups, without affecting any that lie outside the target group.
    • Open/close all layer groups, period: Cmd-Opt-click the arrow next to a group So, to keep things simple: when in doubt, Cmd-Opt-click a group’s arrow and you’ll collapse/expand all groups.
    * On Windows please substitutes Ctrl for Cmd and Alt for Opt. .

  • User can't create, edit, or remove groups and fix I found causes more issues.

    Hello!
    I have a user that can't create, edit, or remove groups within Lync client 2013.  I found a fix online that removing the SIP information will fix the issue.  It did but when I do that they have no control over their phone from Lync.  So I
    added the SIP information back and then the original issue comes back.  Is there a way I can have both?  We are using the 2013 client but are running Lync 2010 on the server. 
    Thanks!

    I found a fix online that removing the SIP information will fix the issue.  It did but when I do that they have no control over their phone from Lync.
    Hi,
    would you please elaborate about the message above you provided? Did "SIP information" mean user profile?
    If yes, it maybe the issue of address book sync. you can try to force Lync to immediately download the address book with the following way:
    execute the following command from the Windows Command Prompt run as an administrator;
    reg add HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Remove Groups and Contacts from that Group Only

    Hi, how do I remove a group and it's contacts and making sure the contacts are removed from the ALL group as well. So after I delete the group and contacts I don't want to see and contacts that were in the group that I deleted anywhere in my Address Book at all.
    Thanks in advance

    Sorry but I just found my answer. If I want to delete the contacts from that specific group and I don't want the contacts in my address at all. Then I go to the group in question, select all the contacts in that group and hit the delete key and delete them. Then I can delete the group name. And all is good.

  • Problem importing PSD (with multiple groups and layers) into After Effects. Help!

    I created a "comic strip" in photoshop (multiple rectangle shape layers, then various shapes within each box for each frame of the comic strip) that I want to import into AE. When I import it as a composition (to keep my layers), however, what appears is an simply a black image with white lines where the lines of the comic strip used to be. I checked the color modes, but they are both in RGB so I don't think that's the problem. Also, when I double click the cartoon strip composition, I can choose certain groups from the mini flow-chart at the top left and view those individual frames. However, I can't view the entire comic strip as a whole, which is necessary for my animation. Any help with this would be greatly appreciated, as I'm on a tight time constraint. Thanks!

    When I asked what version down to the last decimal, I meant it. After Effects version should start with 11, but we need the numbers after that too.
    And I understand that you want to pan between them, so just put all the different PSD's you import into the same comp and pan between them.

  • Help with Groups and Effects

    I'm still fairly new to Illustrator so even when I tried to Google for my solution I didn't know how to word it properly so I though you guys would be able to help me.
    So, basicaly I'n trying to keep my "Flag" effect applied to the ribbon/banner but i want only the top of it to be above the circle. However, if try to take the top selected layers out of the group to place on top of the circle, the "Flag" effect
    resets or if I try putting the cicle in the group it gets the effect applied on to it, which I don't want. Only way I can think of doing it is with a clipping mask but it doesnt look so great :/

    Both Groups and Layers are nothing but sets of objects which are contiguous (next to each other) in the object stacking order. Just think of them as "brackets" around a portion of a list for organizational and selection convenience.
    All objects reside on a Layer. Layers contain Groups and objects, because a Group is a kind of object in the same sense that a set of objects in set theory is itself treated as an object. Layers are not contained in Groups. In Illustrator, all objects are listed in the Layers palette; that does not make them Layers. Layers can exist and be completely empty. Groups can't.
    Objects all exist in a stack. A path is an object. You cannot have one portion of object A in front of object B and another portion of object A behind object B. All such appearances of objects intertwining that way are "faked" by using multiple objects which merely appear to be one object.
    It's not clear from your description what exactly you are trying to accomplish. But basically, you will most easily accomplish it by cutting either the ribbon or the ellipse at places where they don't overlap. Others often trot out recommendations involving clipping masks. In the vast majority of cases, tedious masking is not necessary, and simply cutting a path into two or more objects and restacking them is both easier and simpler in terms of the resulting constructs.
    JET

  • Update showing up in "Compliance 5 - Specific Computer" Report even after removing the update from the Software Update before creating Group and Package

    So I've created a Software Update Group and I did NOT want anything in there dealing with Internet Explorer 11 since the organization is currently stuck at using 10 as the highest. So I made sure that Internet Explorer was NOT in the list and then I deployed
    the package. 
    After running my Overall Compliance report it shows that the systems are compliant, but when I view the "Compliance 5 - Specific Computer" I see that "Internet Explorer 11 for Windows 7 for x64-based Systems" is listed in the report. 
    This is just a testing phase right now and I have not created a WSUS like Domain level GPO. I understand that the SCCM client creates a local policy on the clients for the location of the Software Update Point (Specify
    Intranet Microsoft update service location), but the "Configure Automatic Updates" policy is set to Not Configured, which it looks like when this
    is set, the "Install updates automatically (recommended)" at 3AM is the default. 
    Is the reason why the "Internet Explorer 11 for Windows 7 for x64-based Systems" update is showing up in the list due to the fact that the "Configure
    Automatic Updates" policy is set to Not Configured
    and therefore it is still reaching out to check Windows Update online? 
    So, if I do create a Domain level GPO to Disable the "Configure
    Automatic Updates" policy, then the "Internet Explorer 11 for Windows 7 for x64-based Systems" update would not show up in the "Compliance 5 - Specific Computer" report?
    By the way, I have a Software Update Maintenance Window configured for the hours of 1AM-4AM so the 3AM default time falls within this time frame, therefore, I am assuming the SCCM 2012 client will not allow the Windows Update Agent to install the "Internet
    Explorer 11 for Windows 7 for x64-based Systems" update, even though it has detected it is "Required". 
    Thanks

    But, don't you need a Deployment Package in order to deploy the Software Update Group? The Software Update Group uses the downloaded updates contained in the Deployment Package located in, wherever the Package Source is, right?
    One more quick question that you will know right off hand, because, well, you just will I'm sure.
    No. The software update group really has nothing to do with any update packages. The update group assigns updates to clients and in turn clients use update packages to download assign and applicable updates from. There is no connection between the two though
    as the client can download an update from any available update package. Thus, it's more than possible to updates in an update package that are not in any update groups and it is also possible for an update to be in an update group without being in any update
    package.
    If the "Configure Automatic Updates" policy is set to "Not Configured" and since this keeps the 3AM Automatic Updates default, if I was to remove the Software Update Maintenance Window from being between 1AM-4AM, will the WUA agent install updates
    at 3AM, or no because the SCCM 2012 client still manages and oversees it and basically blocks that from occurring?
    No, ConfigMgr does not in any way block the WUA; however, the WUA can only autonomously install updates it downloads directly from WSUS. Thus, since there are no updates approved or downloaded in your WSUS instance, there's nothing for it to download and
    install. If you happen to actually be going into WSUS and approving updates (which you should not be doing as its unsupported), then yes, it actually would install updates -- this is outside of ConfigMgr's control though. Generally, disabling the WUA via a
    GPO is the recommended to prevent any accidental installations or reboots (as the WUA wil also check for initiate pending reboots outside of ConfigMgr).
    Lots more info in these two blog posts:
    - http://blog.configmgrftw.com/software-update-management-and-group-policy-for-configmgr-what-else/
    - http://blog.configmgrftw.com/software-updates-management-and-group-policy-for-configmgr-cont/
    Jason | http://blog.configmgrftw.com

  • ISE 1.2: Remove unused Sponsor Group and Identity Group

    Hi
    I started with ISE 1.1.2 and now upgrade to 1.2.
    There are 1. Sponsor Groups and 2. Identity Groups which are no more in use, but I am not able to remove them anymore.
    1. One is a special Sponsor group which sponsor group policy I already removed. The I go to Aministration>Web Portal Management>Sponsor Groups and select the appropriate Group ans click delete and ok to confirm, the following error is displayed:
    com.cisco.cpm.nsf.api.exceptions.NSFEntityDeleteFailed: java.rmi.RemoteException: Failed to execute the Query : DELETE_USERONAPP ORA-02292: integrity constraint (CEPM.EDF_GST_SPGRPID_SUB) violated - child record found ; nested exception is: java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (CEPM.EDF_GST_SPGRPID_SUB) violated - child record found
    2. The same happens with one Identity Group. I do not have it active anymore. Not in authentication, and not in authorization policy. I go to Administration>Identity Management>Groups>  and select te group to remove, and click "Delete selected" and confirm with ok, the following error occured:
    Cannot delete selected Identity Group(s) because there are resources which are mapped to these or its child identity group(s)
    Is there any reason for any of these issue?
    Many thanks

    Hi ,
    Please open service request with cisco. These kind of issues may happen when the dependencies are deleted from UI but there is a chance that some of the dependencies may not be deleted completely and are not visible from UI as well.  These kind of issues can be resolved under cisco guidance.
    Thanks,
    Naresh

  • Remove unwanted user, group and ID.

    Can this be posted as a user tip in my name? I am unable to post to user tips.
    After a recent aborted MacPorts install on OS X 10.5.8 I followed MacPorts uninstall instructions at:
    http://guide.macports.org/chunked/installing.macports.uninstalling.html
    The uninstall worked well except that I was left with a user called 'macports' with ID 503 which showed up when adding a user in Get Info or using AppleJack. I was not able to remove this user in System Preferences/Accounts nor add another user with the same name.
    I eventually discovered that this could be resolved by removing the following as root:
    /private/var/db/dslocal/nodes/Default/users/macports.plist
    /private/var/db/dslocal/nodes/Default/groups/macports.plist
    This has removed MacPorts and ID 503 from Get Info and AppleJack and I can now create a new user called MacPorts in System Preferences/Accounts despite the remaining historic entries in /private/var/db/dslocal/indices/Default/index.
    I assume this will work in non-MacPorts situations where the user cannot be removed in System Preferences/Accounts.
    This will probably work in all versions of Leopard and some later OSs.

    Mac OS X 10.7.5 Lion
    1. enable root user       
              click apple(menu)
              ->System Preferences...-> System - Users & Groups
              unlock-> click
                      ->Network Account Server: Join...
              ->Open Directory Utility...
              unlock
              From Directory Utility menu Edit->Enable Root User
    2. switch to root
             su root   
    3. delete files Neville Hillyermentioned
              rm /private/var/db/dslocal/nodes/Default/users/macports.plist
              rm /private/var/db/dslocal/nodes/Default/groups/macports.plist
    4. "disable root user" and "lock" every unlocked menu for safety reason by following step 1

  • PS script to disable users / Audit and remove Groups / Hide from GAL have bits but need to put it together

    Hi All
    I am trying to get a script together to run against a specific OU (our disabled Users OU) to make the process of leavers more automated.
    I am trying to achieve the 4 main outcomes below
    1. Disable User account 
    2. Hide from GAL
    3. Export users group membership to a file based on SamAccountName
    4. Remove users from all groups except domain users
    I have some parts of this working from other peoples scripts i have found on the web but need to tie it all together which is proving to be beyond my basic scripting ability
    Below is what i have so far, this does disable users / hide from GAL and remove groups however as stated i would really like it to export the group membership to a file before removing them so i have a record should a mistake be made.
    $users= get-aduser -Filter {(Enabled -eq "True")} -SearchBase "ou=Disabled Accounts,dc=test2k8,dc=local"
    Function RemoveMemberships
    param([string]$SAMAccountName)
    $user = Get-ADUser $SAMAccountName -properties memberof
    $userGroups = $user.memberof
    $userGroups | %{get-adgroup $_ | Remove-ADGroupMember -confirm:$false -member $SAMAccountName}
    $userGroups = $null
    $users | %{RemoveMemberships $_.SAMAccountName}
    ForEach ($user in $users)
    set-aduser -identity $user.sAMAccountName -Enabled $false -replace @{msExchHideFromAddressLists=$true}
    exit
    If there is anyone here that can help i would be very grateful
    Many Thanks
    Nick

    Try this:
    $Users = get-aduser -Filter {(Enabled -eq "True")} -SearchBase "ou=DisabledAccounts,dc=test2k8,dc=local"
    Function Remove-GroupMembership
    [CmdletBinding()]
    param
    [parameter(ValueFromPipeline=$true)]
    $Identity
    process
    if ($Identity -is [string] -or !$Identity.memberof)
    $Identity = Get-ADUser $Identity -properties memberof
    Write-Verbose -message $Identity.samAccountname
    foreach ($Group in $Identity.memberof)
    Write-Verbose $Group
    Remove-ADGroupMember $Group -confirm:$false -member $Identity
    $Users | Remove-GroupMembership -verbose 4> c:\users\mmcnabb\desktop\groups.txt
    forEach ($User in $Users)
    set-aduser -identity $user.sAMAccountName -Enabled $false -replace @{msExchHideFromAddressLists=$true}
    It uses the verbose stream to redirect the groups out to a text file of your choice. Please note this is untested so please use with caution.

  • Remove Users and Members of Groups with DIP

    We are using the DIP connector to map between NONLDAP(oracle DB) and OID. We are using a profile to create and update users. We have another profile that will create any new groups. We are currently working on a third profile that will populate the groups with their members. These profiles look at views in our oracle DB to determine when they were last updated.
    We have been successful at creating and updating users and creating new groups. I have not found any documentation to remove a user or remove a member from a group. Is there a way in the mapping file or the configuration file to tell OID that a user needs to be deleted or a member needs to be deleted from a group?
    Has anyone had any experience with this?

    If your question is whether you can use the DIP DB connector
    to synchronize group and group memberships, then yes
    you can.
    Keep in mind though, that the DB connector will do a full
    refresh of the group memberships (and not incremental)
    We are using the DIP connector to map between
    NONLDAP(oracle DB) and OID. We are using a profile
    to create and update users. We have another profile
    that will create any new groups. We are currently
    working on a third profile that will populate the
    groups with their members. These profiles look at
    views in our oracle DB to determine when they were
    last updated.
    We have been successful at creating and updating
    users and creating new groups. I have not found any
    documentation to remove a user or remove a member
    from a group. Is there a way in the mapping file or
    the configuration file to tell OID that a user needs
    to be deleted or a member needs to be deleted from a
    group?
    Has anyone had any experience with this?

  • Illustrator Crashing when labeling Layers, Groups and Objects - Windows 7

    For some reason Illustrator seems to crash (fairly consistently) when labeling Layers, groups and objects with a common label - so ctrl+v each label.
    Generally, I can label around 3 in a row before it crashes. I've replicated this error working both on and off the network. Our operating system is Windows 7

    Version: Illustrator CC (up to date)
    Language: English UK
    Group/ object label example: hr.style: gradient transparency.
    this error seems to occur when the files are over 500KB -  also the files are purely vector and contain very little in the way of transparencies.

  • Selecting, grouping, and linking layers

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78d2a

    That link doesn't work for me.
    I think it's missing .html -- http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78d2a.h tml
    Hey Mike,
    Linking layers is similar grouping layers in a sense, but a bit different as well.
    So you can have multiple layers retain their relationship to each other as you move them around, or transform them and they will transform together.
    Unlink them and they will act separately
    One difference of linked layers vs grouped layers is that you can move a linked layer up and down your layers panel, in and out of groups, and still maintain it's link to the other layers which may reside in a group. So that if you select that layer and move it on the canvas, it will still move with the layer it's linked to even though it's outside the group.
    You can link multiple groups together as well.

  • Is there a way to import a group of layers in one project in to another project ?

    Hi all,
    I'm currently using After Effects 5... yes that is version 5, not CS5.
    I'm trying to figure out if I can import a group of layers and their applied Effects in to another project while keeping all the editable attributes and the positions of the imported layers with respect to one another.
    I see that I can import a AEP project file in to another project via IMPORT FILE, but that just brings the raw layers/files in to the project window and does not place the layers in the timeline with all of their positions, Effects and edited attributes, the way that I'd like.
    I also tried Pre-Composing the layers, but that does not leave them editable once a pre-comp has been made... it just makes the 7 layers that I want to import in to another project all one layer and does not leave them editable the way the the 7 layers are separately.
    In Adobe Premiere, there is an actual "IMPORT PROJECT" selection under IMPORT that allows me to import an entire project file in to another project and lets me place the imported project where I want in the new project timeline... that is what I'm trying to do in After Effects.
    I realize that there may be an easy way to do this in one of the newer versions of After Effects, and one might say, "just buy the new AE CS5", but I figured out allot of things on my own so far and I like After Effects 5 for what I'm doing now... maybe later on the newer version.
    Thanks for any input,
    digi

    Hi Andrew,
    No, the two threads that I wrote back to report finding that old 1999 plug-ins package that were removed were...
    Cannot find "Caustics" and "Wave World" Effects in After Effects downloads
    ...origianally at this link, but it is now gone and also missing from my "Discussions" list...
    http://forums.adobe.com/thread/959158
    and
    Is there an underwater effect that can be produced in AE 4.1 ?
    ...originally at this link, and it is also gone and missing from my "Discussions" page...
    http://forums.adobe.com/message/4151249
    I had saved the links to those threads with bookmarks, but they were removed the day after I posted about finding those plug-ins.
    I wanted to get some info from earlier in the thread on one of those and when I went back they both were gone.
    I was able to find those two threads by doing a site-webcach search on Google to see if there was a snapshot of each thread in Google's cache... I did find shapshots of those two thread but they were taken the day that I first posted the questions before any replies or subsequent posts by me were posted.  Below are the Google cache links to those snapshots of those threads' pages, but as you'll be able to see, it only shows my original questions before all the replies by you and others on the forum and my final report of finding the plug-ins package...
    http://webcache.googleusercontent.com/search?q=cache:S06cU1F1-C4J:forums.adobe.com/thread/ 959158%3Fstart%3D0%26tstart%3D0+site:http://forums.adobe.com/thread/959158&cd=1&hl=en&ct=c lnk&gl=us
    http://webcache.googleusercontent.com/search?q=cache:3dtym60qrHcJ:forums.adobe.com/message /4151249+site:forums.adobe.com/message/4151249&cd=1&hl=en&ct=clnk&gl=us
    Having the Adobe forums Gestapo remove those threads is a little like burning old software books... meaning, I guess Adobe just doesn't want people discussing old software downloads, even though I did not post the actual link for the the old "AE 6.0 Bonus Plugin Pack" and "AE 5.5 Power Pack Plug-Ins" that I found.  I only reported back on those threads that I found the plug-ins packages after several lengthy Google searches.  Since those plug-ins packages were no longer available from Adobe, I thought it was quite a find to be able to track them down elsewhere after all this time.  They were 12 and 13 year old plug-ins packages, but they had been posted only in the last couple of years.
    Someone else on one of those threads had also told me that AE 6 plug-ins would not work in AE 5, but that turned out to not be true... I don't remember who that was... maybe that was the person who removed my threads because he/she didn't like having a thread that indicated that he/she was wrong.
    Anyway, thanks for your info again today... very, very helpful.
    digi

  • Firefox crashes for unknown reason lately, so I removed it and reinstalled it. How can I put my Favorites (bookmarks) back into the newly installed FireFox???

    Firefox crashes a few times when I was on Facebook and with email, also watching dramas online. Most of the time due to Adobe Flash and I did submit crash report. Later it crashes for unknown reason while I have email and Facebook on different tabs -- when I was on the tab of email, it looks system hang and not responding. This happened to my laptop that uses Windows Vista as I noticed. I don't remember it ever happens to my desktop that uses Windows XP.
    It's pretty annoying of such known crash, but before removing Firefox, I did try to update all add-ons or plugins and it looks like doesn't work out. After updating for couple times and it still crashed like that, I removed Firefox and reinstall it.
    '''Now I want to know how to put the shortcuts from my Favorite folder into the newly installed FireFox's bookmarks.''' I didn't backup the bookmarks by using Firefox. I even went to Firefox help for instructions, but it only mentions how to merge/input the bookmarks from other browsers. Please note the version I've removed and inrestalled is the same -- 3.6.13.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder

Maybe you are looking for

  • I lost all my iMovies and could someone please tell me how to get them back?

    Recently I dropped my iPad and because I had apple care the next day I got a brand new one, but I accidentally started my new iPad as a new one. In the past I have made so many iMovies it's unreal and I have spent ridicolous amounts of time on making

  • 5800 music problem

    so i have a nokia 5800 and i am very happy with it...well except for the music player. i was hoping that it would be fixed with the new firmware upgrade but sadly, it has not. so when i'm jamming my tunes at random moments a song will start playing a

  • Exchange Support ~ Push Not Working??

    Is there any reason that the Droid 2 Global would not receive push corporate email when set up through corporate sync properly?  I have heard mixed feedback from members of the tech world stating that the only Verizon android that support "real push"

  • Why does scaling distort objects?

    I can't get certain graphics to scale down correctly correctly. Take a look at the 2 jpegs enclosed - one solid, the other with 1px outline. The graphic men were originally 40mm tall. In each case the one on the left is the original. The one on the r

  • Import dialogue fails to open when CF card inserted

    Hi Despite being configured to do so the import dialogue fails to open automatically when I insert a CF card, although Lightroom starts. I have searched the Adobe site for answers with no luck and am unable to find an email contact address for Adobe