How do I set the layer name?

I am trying to find an example of a way to rename a layer. Everything I try seems to fail.
Anyone have any?

I thought I would post the code I was using to see if anyone can figure out why it is not working. I have tried many variables of things similar to below:
error = sPSActionReference->PutProperty(reference, classProperty, keyName);
error = sPSActionReference->PutEnumerated(reference, classLayer, typeOrdinal, enumFirst);
error = sPSActionDescriptor->PutReference(descriptor,
keyNull,
reference);
if (error) goto returnError;
error = sPSActionDescriptor->PutString(descriptor,
keyText,
name);
if (error) goto returnError;
error = sPSActionControl->Play(&result,
eventRename,
descriptor,
plugInDialogSilent);

Similar Messages

  • How can I set the Object Name to the file name on import?

    All-
    I've been manually typing the filename into Aperture's Object Name metadata field. Is there a way to do this automatically? I use metadata presets to fill in many other fields on import but haven't found a way to set metadata fields on a file-by-file basis.
    Perhaps there's a way to do this with the thousands of images already in my library as well...
    Thanks,
    Andreas

    Here's the cleaned-up version:
    tell application "Aperture"
    set selectedImages to the selection
    repeat with i in selectedImages
    set tName to name of i
    set value of IPTC tag "ObjectName" of i to tName
    end repeat
    end tell
    Some other related bits, which you can probably work out how to put into the above script:
    Find out the AppleScript names of the IPTC tags (but only tags which have a value for that image), the names will be listed in the 'result' pane in the Script Editor:
    tell application "Aperture"
    set selectedImages to the selection
    get name of every IPTC tag of item 1 of selectedImages
    end tell
    The same for EXIF tags:
    tell application "Aperture"
    set selectedImages to the selection
    get name of every EXIF tag of item 1 of selectedImages
    end tell
    And for any custom tags you have set up. If you haven't set up any custom tags (one of my main reasons for going with Aperture) this will just return camera and picture time zones:
    tell application "Aperture"
    set selectedImages to the selection
    get name of every custom tag of item 1 of selectedImages
    end tell
    Finally, keywords:
    tell application "Aperture"
    set selectedImages to the selection
    get name of keywords of item 1 of selectedImages
    end tell
    To grab the first keyword name try 'name of keyword 1 of...' etc.
    To grab the parent keywords for hierarchical keywording stuff try experimenting with 'get parents of keywords of'. The keywords seem to be read-only from AppleScript, so a magic script that added all parent keywords doesn't seem to be possible.
    Ian

  • Setting the layer name from a format plugin with CS2 and before

    Hello,
    I wrote a new format plugin and the name of the layer shown in PS , when I read a file, does not seem to be consistent on all computers for versions CS2 and before :  some times I get "Background" and some times I get "Layer 0" .
    When the layer is named is "Background",  it is locked. If I double click on the layer, I get a panel to rename it and the name suggested is "Layer 0" (and not "Background").
    Somehow, it seems that my plugin is not doing exactly the right thing or there is a setting in PS options (or in the registry) that controls/causes that behavior. My understanding is that we can't name layers from the plugin before version CS3 (setting the layerName field in the FormatRecord makes no difference for CS2 and before).
    I do not care much about the actual layer name as long as that name is consistent for all installations. Does anybody know what is going on?
    Thank you!
    Gilbert

    If it has transparency, it has to be a layer ("Layer0").
    If it doesn't have transparency, it is treated as a background.
    And yes, changing the background to a layer does normally rename it to "layer X".

  • How does one set the Network Name of the Printer

    Hi,
    I have two 7525's on my home network.  How do I change their names from the default serial number based name to something meaningful so IOS/Android users can easily tell which printer is which?

    Hi,
      Greetings of the day!
    There are many ways of achieving the above and the easiest way is mentioned on the link attached below :-
    http://windows.microsoft.com/en-in/windows/rename-printer#1TC=windows-7
    The above applies to other windows OS as well as win7.
    And to make it meaning ful, you would need to get creative  
    If you have any queries related to the same OR any other do reply.
    Regards,
    Mohammed

  • How can I set the file name and folder for output to PDF from another application?

    I am developing an application in Microsoft Access where the printed reports are to be saved in PDF format for archive purposes. I can send the output to Adobe X, but the default file name is the Access report name and the folder selected is the one last used.
    What I need to do is to create the file with a specific name (which changes for each run) and to a specific folder (which also changes for each run).
    The language I'm using is Visual Basic for Applications which is located in an Access form that controls the report production.
    Any suggestions, please?

    Got it - many thanks.

  • Setting the role name dynamically

    Hi,
    I have defined 4 roles in the application. In the workflow navigation, i have created a notification. How can i set the role name property of the Notification message dynamically so that as soon as the control comes to that notification, all the users in that role gets the notification message?
    Thank you.

    Hello,
    Define a attribute which holds the value of one of the four defined roles.Then create some activity (with some defined function) which will select the role and assign to the attribute.
    In the notification give the performer value as attribute name.
    This will solve your purpose.
    Kind Regards,
    Kumar.

  • How to Set the JNDI name in J2EE 1.4 ??

    Hello,
    I am sure i am have done everything right except for the JNDI name ! I have recently shifted to J2EE 1.4. I was using j2EE 1.2.
    So kindly tell me how should i set me JNDI name in the deploytool.
    Here is the exception i got when i tried to run my application without having set any JNDI name !!
    http://img220.imageshack.us/img220/832/hellodt5.gif
    Thanks.

    There are 2 types of descriptors:
    standard and portable deployment descriptors (e.g. ejb-jar.xml, web.xml, application.xml, etc)
    vendor specific deployment plan (e.g., sun-ejb-jar.xml, sun-web.xml, sun-application.xml, jboss.xml, weblogic.xml, etc)
    When you are developing ejb apps with glassfish, or JavaEE SDK, or Sun Java System Application Server, you usually package all descriptors in META-INF directory inside the jar.
    You can also create portable apps that do not contain any vendor specific deployment plans. So you can deploy it to any appserver. At deployment time, you then specify an option to pass the deployment plan to deploy tool. This is required by JSR 88 and all J2EE- or JavaEE-compliant appserver must support this.
    In Glassfish, JavaEE SDK, or SJSAS, you can:
    $SJSAS_HOME/bin/asadmin deploy --deploymentplan /tmp/deploy-plan.jar /tmp/my-ejb.jar
    where /tmp/deploy-plan.jar is a jar file containing sun-ejb-jar.xml for the deployable ejb-jar:
    jar tvf deployment-plan.jar
    0 Thu Oct 12 11:55:00 EDT 2006 META-INF/
    106 Thu Oct 12 11:54:58 EDT 2006 META-INF/MANIFEST.MF
    570 Thu Oct 12 11:55:00 EDT 2006 sun-ejb-jar.xml

  • How to set the card name of wml in Simple Result?

    Hi,
    I nned to set the card name appearing in the WML device (browser show the name of the card in the top of the screen)
    How do i set an page tile in SR? I cant find such a parameter any where on the tags... Ideas?
    Regards,
    Lars

    Lars,
    You may use SimpleTitle element to display the title. See the following example copied herewith from developer's guide.
    <?xml version = "1.0" encoding = "UTF-8" standalone="yes" ?>
    <!DOCTYPE SimpleResult PUBLIC "-//ORACLE//DTD SimpleResult 1.1//EN" "http://xmlns.oracle.com/ias/dtds/SimpleResult_1_1_0.dtd">
    <SimpleResult bgcolor="99ff99">
    <SimpleContainer>
    <SimpleText>
    <SimpleTitle>Seach Result</SimpleTitle>
    <SimpleTextItem>
    <SimpleEm level="strong">1 Entry found</SimpleEm>
    <SimpleBreak msecs="500"/>
    <SimpleStrong level="strong">Chandra Patni</SimpleStrong>
    <SimpleBreak/>400 Oracle Pkwy
    <SimpleBreak/>Redwood Shores
    <SimpleBreak/>CA, 94065
    </SimpleTextItem>
    </SimpleText>
    </SimpleContainer>
    </SimpleResult>

  • How to set the snc name to abap server with IDM?

    HI all:
         I want to set the snc name from IDM , but I didn't konw  which attribute that I would be set.
    I there anyone konw this?
    thanks!

    Hi Shi,
    I'm guessing you don't know which attribute in the MX_PERSON class contains it?
    If this is what you meant, then there isn't a default attribute for that, you can either create one manually or let the synch process create it by enabling "automatic attribute creation" setting for the Identity Store.
    Eric

  • How do I set the default welcome page for PUBLIC user

    gurus,
    i'm using -
    Oracle 9i Database
    Oracle 9ias Portal Release 2
    QUESTION => how do I set the default welcome page for the PUBLIC user.
    i did the following to achieve this -
    1. logged into portal
    2. clicked on builder
    3. clicked on administer tab
    4. selected PUBLIC user in the Portal User Profile portlet
    5. went to the preferences tab
    6. in the default home page selected a custom page group
    7. logged out of portal
    8. open a new browsere session
    9. type the portal URL and i get the login page ....??
    i'm unable to understand this behavior ... shouldn't i be getting the page group that i set for the PUBLIC user in step 6 above ....
    the second QUESTION is => when the user logs out he/she should see the PUBLIC page set in step 6 above ... but, instead the user sees a page that is as follows -
    Partner Application Name Logout Status [Logout Status]
    Oracle Portal (portal) logout status
    The SSO Server (orasso) checkmark
    buzz.resva.trw.com:7778 checkmark
    infrastructure.happy.resva.trw.com checkmark
    portal1.buzz.resva.trw.com checkmark
    portal2.sylvester.resva.trw.com checkmark
    sylvester.resva.trw.com:7778 checkmark
    so, how can i set the default page for the PUBLIC user and also a page when he user logs out.
    ideas anyone ....?
    thanx a bunch.
    hero

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • Is it possible to print the layer name on file/copy when print or export file?

    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl

    Karl Z wrote:
    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl
    InDesign's pasteboard, bleed, and slug areas are independent for each document page. Running header text variables in these areas can capture sources on document pages. If you place a text frame with a character style for the layer name, and a character style for the language name, on a layer, and capture them in a character-style-based running header in the slug, for example, the source from whichever layer is visible will appear in the running header in the slug area. Similarly, you can capture other text variables for page number, filename, date/time, etc.
    It may take a little fussing to set it up the first time, but thereafter when you change layer visibility, the visible layer name changes automatically.
    NOTE: Text frames on master page pasteboards, bleed, or slug areas do not appear on document pages unless they also touch the document page border.
    Above: Master page view
    Above: Page 1 view
    Above: Page 2 view
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • ¿How do I set the calendar to start week on Monday and not Sunday in my iphone?

    ¿How do I set the calendar to start week on Monday and not Sunday in my iphone?

    The jewish calendar does not have names for the days of the week. The week ends with the holy Sabbath (Saturday) and therefore the Sunday is the first days after Sabbath (Yom Rishon), the Monday the second day after Sabbath (Yom Sheini), etc.
    The Christians believe that Christ was raised on the first days of the week (Mathew 28:1, et al) AFTER the Sabbath was over. So their holy day is the Sunday and the working week starts on a Monday.
    The business days in the western world are numbered starting with the Monday as day number 1 (Timetables of Airlines, Calendars, even Microsoft Windows...).
    Unfortunately in the United States religious freedom extends to a level which is not understood easily by the rest of the world. Since the MAC OS X allows to change the first day from a Sunday to a Monday, one might wonder why Apple decided to give the iPhone a jewish touch.
    It could be supposed that this is the way of the least resistance. Only few complain about this issue, but if it were the other way around a lot of people would complain...
    PS: I agree with the others here: It is very, very annoying and more than once I entered an appointment into the wrong day...;-)

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    Points will be awarded.
    BR
    sivs

    Hi Siva,
    Reporting statistics data is only written to the database table if BW statistics have been manually activated for the corresponding InfoProvider first. If this has not been done, it is therefore not possible to display any reporting statistics in transaction ST03.
    Therefore activate the reporting statistics for all relevant InfoProviders. To do this, set the OLAP flag in the BW Administrator Workbench (transaction RSA1) in the area Tools ® BW Statistics for InfoProvider.
                    Check here...........
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/86df4254d81e1fe10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Hope this will help you shiva.........
    Regrads,
    Vijay

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • How do you set the Crystal Report Viewer Printer to Duplex

    Using the code below I can print in duplex mode, but this does not let me view a report before printing
    How do I set the Printer in the Viewer Control Bar of the Crystal Report Viewer to Duplex Printing programmatically rather than having to manually select Duplex through the preferences option?
    I have searched but the only example code I found produces errors in the code and will not run
    Private myReport As ReportDocument
    myReport = New ReportDocument()
    myReport.PrintOptions.PaperSize = PaperSize.PaperA4
    myReport.PrintOptions.PaperOrientation = PaperOrientation.Portrait
    myReport.PrintOptions.PrinterDuplex = PrinterDuplex. Vertical
    myReport.PrintToPrinter(3, False, 0, 0)
    In my VB6 Project that I am converting to VB.NET when I added Report.PrinterDuplex = crPRDPVertical, this allowed me to view the report and then print with Duplex without having to set the Print Preferences manualy
    I found 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET
    But this causes errors
    Imports CrystalDecisions.ReportAppServer.ClientDoc
    Imports CrystalDecisions.ReportAppServer.Controllers
    Dim boReportClientDocument As ISCDReportClientDocument
    Dim boPrintOutputController As PrintOutputController
    Dim boPrintReportOptions As New PrintReportOptions
    Edited by: DavidMills on Feb 18, 2011 11:58 AM

    Hi David,
    You can mix both engines, just declare them both with different report object names. Here's all of my references:
    using System;
    using System.IO;
    using System.Xml;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.ReportAppServer.CommonControls;
    using CrystalDecisions.ReportAppServer.CommLayer;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.ObjectFactory;
    using System.Data.OleDb;
    using CrystalDecisions.ReportAppServer.DataSetConversion;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.Windows.Forms;
    using System.Data.SqlClient;
    using System.Runtime.InteropServices;
        public class frmMain : System.Windows.Forms.Form
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
    My file open dialog:
            private void btnOpenReport_Click(object sender, System.EventArgs e)
                rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
                openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";
                openFileDialog.FilterIndex = 1;
                 if (openFileDialog.ShowDialog() == DialogResult.OK)
                      btnOpenReport.Enabled = false;
                      btnSaveRptAs.Enabled = false;
                      object rptName = openFileDialog.FileName;
                    try
                        rpt.Load(rptName.ToString());
                        rptClientDoc = rpt.ReportClientDocument;
                    catch (Exception ex)
                        MessageBox.Show("ERROR: " + ex.Message);
                        return;
                    MessageBox.Show(rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString());
                        MessageBox.Show("Report opened.","RAS",MessageBoxButtons.OK,MessageBoxIcon.Information );
                        btnOpenReport.Enabled = true;
                        btnSaveRptAs.Enabled = true;
                    //MessageBox.Show(rpt.RecordSelectionFormula, "my record: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    As for the page number I use it off the Engine report object:
    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    And it works for me...
    Thank you
    Don

Maybe you are looking for