Unlock all objects in document(s)?

I suspect the answer is no, but is there a way to do this? I've got 60 files originally made by rhesus monkeys and they found the "lock" command.
Thanks.

Ariel,
There is no need to loop through allPageItems. It's just slow and pointless.
allPageItems returns all items no matter if they are grouped or not.
If you noticed, you can't lock object which is inside of group.
Therefore, using simple one line of code you can unlock all
items in the document like Jongware did in his post:
app.activeDocument.pageItems.everyItem().locked = false;
To unlock items just on master pages use this:
app.activeDocument.masterSpreads.everyItem().pageItems.everyItem().locked = false;
To unlock all items just on pages, not master pages:
app.activeDocument.pages.everyItem().pageItems.everyItem().locked = false;
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com

Similar Messages

  • Get a list of all objects in a document by type?

    Is there a method somewhere that i can retrieve all objects,
    children, grandchildren, etc., by passing it's type? say i want to
    get all TextArea's in a document- i imagine something like
    getObjectsByType('TextArea') or something similar. Does this method
    exist? If not, would the only way to do this is to make a recursing
    function go through all children? Thank you! -b

    Hi all,
    I found a way to get what I was looking for.  I am sure its not a supported way, but as a SQL DBA,  I used the only way I know, which is hitting the tables.
    I used the AllLists to get the list title, last updated, and item counts and I joined it to the AllUserData to get the directory of the list.
    Joe

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • How to update managed metadata column for all file in document library using powershell

    Hi,
    How to update managed metadata column for all file in document library using powershell?
    Any help on it.
    Thanks & REgards
    Poomani Sankaran

    Hi TanPart,
    I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation  Document Library.But i am getting below error in powershell.
    Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
    Could you tell me which is the issues in it?
    See the code below.
    $web = Get-SPWeb http://ntmoss2010:9090/Site
    $list = $web.Lists["DocLib"]
    $query = New-Object Microsoft.SharePoint.SPQuery
    $query.ViewAttributes = "Scope='Recursive'";
    $query.RowLimit = 2000
    $caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
            '<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
    $query.Query = $caml
    do
        $listItems = $list.GetItems($query)
        $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
        foreach($item in $listItems)
            #Cast to SPListItem to avoid ambiguous overload error
            $spItem = [Microsoft.SharePoint.SPListItem]$item;
            Write-Host $spItem.Title       
    while ($spQuery.ListItemCollectionPosition -ne $null)
    Thanks & Regards
    Poomani Sankaran

  • How do you unlock an object in Fireworks CS5?

    Hi There,
    I locked a few objects but now I can't find an unlock command - how do you do this in Fireworks?
    Found a menu in the layers palate which did the trick - pretty cryptic though!
    Cheers
    Ben

    First, make sure the objects are not on a master page. If not, you can either click on the little lock icons next to the objects in the layers panel, or open the layers panel menu and select Unlock All.

  • All old pages documents are blank

    Did the update to Pages 4.0.3. iWork '09. Running 10.5.8. MDD Dual 1.44
    Now all old Pages documents are blank.
    Suggestions?
    Thanks,
    Rich

    Kensey,
    Have you recently begun using Lion? Has it been more than 2 weeks since you last opened those documents?
    Did you notice a button marked "Unlock" in that dialog that informed you that the document was locked?
    Jerry

  • Faint blue speckles and lines appear all over printed documents, Laser Jet CP3525dn

    Dear Toner Problem Community,
    Every time I print, faint blue speckles appear all over my document.  When I print in mass, blue lines also begin to appear at around page 34, and double blue lines begin to appear around page 62.  I performed "Process Cleaning" three times with no difference.  Someone suggested vacuuming out excess toner, but I pulled out the cartridge and don't see any excess toner.  Please help.  Thank you!

    PrepressPro1 wrote:
    <snipped>... so if your looking for this forum to play detective and tell you who in your workflow set the elements to overprint, I don't think this can be done. I don't think I have ever seen Illustrator set any elements to overprint all by its self. <snipped>
    Hi PrepressPro...
    Many thanks for your earlier inputs, but not quite sure where you got the idea that i want someone or anyone to play detective... i've understood the Overprint problem... and moved on. If anything, maybe i was just musing and wondering if any particular action turns on "Overprint Fill"...
    Or maybe, i was referring to the second question which has not been resolved yet... Quoting it below for easy reference:
    ++++
    The other issue...
    Same black background(s)... placed  Photoshop file/s with a transparent background... Prints fine at the  printers (various machines and media) ... But on the laserprinter an HP  Color Laser Jet CP1510 series, there's a dark patch around the image  (the actual file area).
    ++++
    To elaborate, the pix above are product shots which have been cut out and placed on a transparent background... The PS file is then placed in AI CS4 with the object option selected to maintain transparency. The transparent area is printing darker on the printer above. But is fine when sent to commerciqal printers...
    Attached is a scan of the problem...

  • Create DB view  to hold all header sales document data

    hi dear
    i want Create DB view  to hold all header sales document data on the following tables:
    VBAK, VBKD, VBUK, KNA1 as follow:
    FROM VBAK:
    Sales Document
    Created on
    Time
    Created by
    Doc. Currency
    Division
    Sales Group
    Sales Office
    FROM VBKD:
    Price group
    Customer group
    Sales district
    Price List
    Incoterms
    Payt Terms
    FROM VBUK:
    Overall status
    Totals status
    Pricing
    Document cat.
    Document object
    FROM KNA1:
    Name
    Name 2
    City
    Postal Code
    Govern.Code
    Search term
    Street
    Telephone 1
    Fax Number
    One-time acct
    Address
    2. i want also Select and display all data from that view  from program code, sales order will be the only parameter.
    Any pointers in this regard are very much helpful.
    Regards
    Waseem Hesham

    Hello
    SE11 -> View -> Create -> Database view
    In column TABLES:
    VBAK
    VBKD
    VBUK
    KNA1
    Join conditions:
    VBUK-MANDT = VBAK-MANDT
    VBUK-VBELN = VBAK-VBELN
    VBAK-MANDT = VBKD-MANDT
    VBAK-VBELN = VBKD-VBELN
    KNA1-MANDT = VBAK-MANDT
    KNA1-KUNNR = VBAK-KUNNR
    View fields:
    MANDT VBAK MANDT
    VBELN VBAK VBELN
    ERDAT VBAK ERDAT
    ERZET VBAK ERZET
    ERNAM VBAK ERNAM
    ... ENUMERATE HERE ALL FIELDS YOU NEED
    Save and activate.
    Then in programm:
    tables: z_your_view.
    data: itable like z_your_view occurs 0.
    parameters: p_vbeln like vbak-vbeln.
    select * from z_your_view into table itable where vbeln eq p_vbeln.
    anything do with data .....

  • Script to unlock all layers

    Hi there,
    I'm a little useless when it comes to scripting but I need a self-contained script that simply unlocks all the layers in a current document.
    I'm using a script that batch exports a folder to RTF (batch_convert.jsxbin) but it's having a few problems with locked layers. Luckily, it allows you to run a script on each document it opens before it exports. If I had a script that would simply unlock all the layers first I reckon it could do the job nicely.
    Thanks,
    Dan

    I didn't take a look at your posted link but if it is an exported binary then you may be out of look… Check and contact the original author…
    Edit. OK, I think I see your direction now… Shut up mark u is still a muppet… sorry

  • Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before.

    I have develop a custom solution for SharePoint Foundation 2010 that provide PDF documents filled with lists data and attachemnts.
    If the Customer run the solution to get the PDF we found in the ULS log following entry:
    03/07/2014 12:07:20.69  w3wp.exe (0x0B10) 0x18EC 
    SharePoint Foundation General                        90hv Unexpected 
    Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:    at Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString(String
    source, String defaultResourceFile, UInt32 language)     at Microsoft.SharePoint.SPFieldCollection.get_DisplayNameDict()     at Microsoft.SharePoint.SPFieldCollection.GetFieldByDisplayName(String strDisplayName, Boolean
    bThrowException)     at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)     at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    
    at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)    
    at ECM_PDF_Excel.ListClicked.GetECOs(Dictionary`2 searchedEC... e918ecd4-7ed6-44bb-9e4f-d764586a2f79 ...RECONumber)    
    at ECM_PDF_Excel.PDF.Create()     at ECM_PDF_Excel.Layouts.ECM_PDF_Excel.ECMPDFExcel.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
    context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 f... e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    03/07/2014 12:07:20.69* w3wp.exe (0x0B10)                        0x18EC SharePoint Foundation        
     General                        90hv Unexpected ...lags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32
    flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    We check the method
            /// <summary>
            /// Returns the ECOs in a Dictionary: ECO Number, Suffix
            /// </summary>
            /// <param name="searchedECRECONumber">Dictionary, with the search ECR/ECO Number</param>
            /// <returns>Dictionary ECO Number, Suffix</returns>
            public static Dictionary<string, string> GetECOs(Dictionary<String, String> searchedECRECONumber)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                string ecoNumber = string.Empty;
                string ecoSuffix = string.Empty;
                if (searchedECRECONumber.ContainsKey(ConstantData.listClickedECONumberDictionary))
                    ecoNumber = searchedECRECONumber[ConstantData.listClickedECONumberDictionary];
                else
                    return listECOs;
                // Ich suche die ECO Nummber bei gegebener ECR Nummer
                // Ich brauche den Listen Namen der in den Spalten Realtion ECR Number & Realtion ECO Number einen Wert hat
                SPList dataList = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists);
                if (dataList != null)
                    SPListItemCollection dataListItems = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists).Items;
                    foreach (SPItem dataListItem in dataListItems)
                        Object relationECRColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECRNumber];
                        Object relationECOColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                        if (relationECRColumnName != null && relationECOColumnName != null)
                            // Ich habe den Listennamen gefunden in dem Spalten Realtion ECR Number & Realtion ECO Number einen Wert haben
                            string searchedListName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_Title];
                            string searchedECOSuffixColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                            // Get the List from variable listName
                            listECOs = GetECOsDictionary(searchedListName, searchedECOSuffixColumnName, ecoNumber, relationECOColumnName);
                return listECOs;
    - What take we wrong?
    - How can we avoid this message?
    Regards
    Jonnyenglisch
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

    Here the code of GetECOsDictionary:
             /// <summary>
            /// Fill the dicionary with related ECO Numbers/Suffix
            /// </summary>
            /// <param name="searchedListName">String: the name of the list</param>
            /// <param name="ecoNumber">String: the ECO Number</param>
            /// <param name="relationECOColumnName"></param>
            /// <returns>Dictionary</returns>
            private static Dictionary<string, string> GetECOsDictionary(string searchedListName, string ecoNumber, Object relationECOColumnName)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                SPQuery oQuery = new SPQuery();
                oQuery.Query = "<OrderBy>" +
                                    "<FieldRef Name='" + "Title" + "' Ascending='TRUE'></FieldRef>"
    +
                                "</OrderBy>" +
                                "<Where><BeginsWith>" +
                                    "<FieldRef Name='" + "Title" + "'/>" +
                                    "<Value Type='Text'>" + ecoNumber + "</Value>" +
                                "</BeginsWith></Where>";
                SPListItemCollection searchedListItems = webContx.Lists.TryGetList(searchedListName).GetItems(oQuery);
                foreach (SPItem searchedListItem in searchedListItems)
                    // Wenn die geclickte ECO Nummer gleich der Listen ECO Nummer ist dann setze die gefundene ECO Nummer
                    string foundECONumber = (String)searchedListItem[relationECOColumnName.ToString()];
                    string[] splitECONumber = foundECONumber.Split(ConstantData.splitBy_Slash);
                    if (ecoNumber == splitECONumber[0])
                        ecoNumber = splitECONumber[0];
                        if (splitECONumber.Count() == 1)
                            listECOs.Add(foundECONumber, "0");
                        if (splitECONumber.Count() > 1)
                            listECOs.Add(foundECONumber, splitECONumber[1]);
                return listECOs;
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

  • Portal unlock xml objects

    Hi all,
    I'm new to Portal development and I'm having some problems with locked xml objects after some users access them.
    The problem occurs in the news section of the portal.
    When I go to the KM content, the xmls objects are locked to the last user who modified the file and I can't unlock these objects.
    This problem started after the EHP1.
    Could anyone help me?
    Thank you,
    Fernando

    João Macedo wrote:
    Hi Fernando,
    >
    > This appens when a user is editing the XML or otherwhise when the pop-ups is locked for the portal.
    >
    > To unlock, you can goo to the details of xml file, actions -> unlock.
    >
    > BR,
    > João Macedo
    Hi João,
    I'm unable to unlock these files, the menu unlock option is not available. I have an administrator account but I'm not able no unlock xml files locked by another users. I can unlock only the xml locked by my account.
    Olá João,
    Não consigo desbloquear os arquivos XML, no menu do KM não aparece a opção de desbloquear. Minha conta é de administrador mas mesmo assim não aparece a opção de desbloquear, somente aparece essa opção para os arquivos bloqueados pelo meu usuário. Existe algum perfil de usuario acima do administrador?
    Abs

  • CRM Object extension document

    Hi all,
    I have unable to find the link to CRM Object extension document on help.sap.com or service marketplace.
    Has anybody clue, where I'll be able to find it?.
    I dont know where is this document available.
    Thanks in advance & regards,
    Andrea

    Hi Andrea,
    For extending the object, you need to create a subtype of the business object.
    Refer to the following link for more details:
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4adbf453d11d189430000e829fbbd/frameset.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4adbf453d11d189430000e829fbbd/frameset.htm</a>
    Lokesh
    pls. reward appropriate points if it helps.

  • It shows white border on all sides of document after publishing

    I am facing some problems with publishing of flash file. After publishing at HTMl; it shows white border at all sides of document.
    My document size is Width :- 1280 Height : 650. It is adding border on all sides border at top and bottom are greater than that of Left and Right.
    I have tried it many ways, altered my flash setting as well but no use. I am really stumped due to this.
    To my surprise at SWF file it showing perfect match and fit exactly into window (not showing any borders like HTML)
    I dont know exactly from where it is getting white borders.
    My Publish Setting Are as follows
    Flash :-
    Version : Flash Player 9
    Load Order : Bottom Up
    ActionScript Version : ActionScript 2.0
    HTML :-
    Template : Flash Only
    Dimenssion: Match Movie
    Quality :- High
    Window Mode : Window
    HTML Alignment : Default
    Scale : Exact Fit
    Alignment : horizontal :- Left, Vertical : Top
    Any help would be greatly appreciated

    There is no margin or not any CSS code at my HTML file.
    Here is code
    <code>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>preloader2</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                'width', '1280',
                'height', '650',
                'src', 'preloader2',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'window',
                'devicefont', 'false',
                'id', 'preloader2',
                'bgcolor', '#ffffff',
                'name', 'preloader2',
                'menu', 'true',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', 'preloader2',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1280" height="650" id="preloader2" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="preloader2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="preloader2.swf" quality="high" bgcolor="#ffffff" width="1280" height="650" name="preloader2" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>
    </code>

  • AppleScript - Resize page and all objects.

    Hi, we'd like to take an existing page and not only resize page and all objects on page proportionately to fit new size.  For example, our current page might be 9.5x20.25 inches and we'd like to go to 11.5 to 23.5 inches.  Manually, I can go to file->document setup and change height and width to new sizes then select all objects and change W: and H: to match new sizes and seems to work finw but would like to try to do this from AppleScript if possible?
    Thanks,
    Joe

    Look up the options available for the resize command in the app dictionary… page is also supported object…

  • Rasterize all objects?

    Is there a way to automatically rasterize all objects with a PDF joboptions setting? I've opened my setting in a text editor and found this line:
    /RasterVectorBalance 1
    Woulod changing that number do it?

    Actually, you can. I found a pdf document on Adobe's site entitled "PDFCreationSettings.pdf" that explains all the possible settings.<br />You have to edit the joboptions file in a text editor.<br /><br />The settings are:<br />        /PresetName <PncRasterizeAll><br />        /PresetSelector /UseName<br />        /RasterVectorBalance 0<br /><br />PnCRasterizeAll is a flattener setting I created in Illustrator.<br />RasterVectorBalance is a scale from 0 to 100. 0 being all raster and 100 being no rasterization.

Maybe you are looking for

  • Iphone os 3.1 issues, cause of error !?

    Hello, maybe I am on of a thousound who is experiencing issues for OS 3.1. I've got the frozen iphone problem, when trying to unlock the slider after standby. And just the same for taking calls from standby. Besides, my phone won't suddenly dial out

  • Chart XML not being saved

    I have created a chart in a rtf template using the Word add-in, and then modified the XML via the 'Advanced' tab. If I then upload the template to my BI Publisher report I can run the report ok. However, if I then try to edit the template there is no

  • How much to repair the screen

    how much to repair the screen, macbook air 11' thanks

  • How to start Process chain ?

    Experts, In one of my process chan, Attrib. Change Run got failed. rest of the Process chan ran properly. So, if i open that PC, i could see Red line at the Attr. Change run Tab. How would i just execute my change Run Process only from the Process ch

  • Adobe Create PDF, my main usage is to combine 2 files and delet part of it, can I do That?

    I want to suscribe to Adobe Create PDF, my main usage is to combine 2 files and delet part of it, can I do That?