Beginners question, how to use script?

Hi there
Im on OSX, ID4, soon upgrading to ID5.5
I've been looking for a way to automatically add metadata (author) to a document/exported PDF.
So i found this http://forums.adobe.com/message/3443064 - looks like the answer I'm seeking, but how do i actually put that into use? Where/how to i add the script?
Can it be run upon opening/creating a new document, or upon exporting to PDF?
I'm an experienced indesign user, and I've done some visual basic, php before. But haven't used scripting in InDesign.
Any pointers in the right direction is greatly appreciated. Thanks.
- Lasse Fernov

Hello, ldflkbuc943894353221:
  tomaxxi's script in the thread you cite isn't really a normal script. It is a script that installs an event handler that is automatically triggered every time you create a new document in InDesign, suhc as with File > New.
You would save that file as, perhaps, tomaxxiAddXMP.jsx, and then you have some choices. You can just drop it in the User Scripts folder, according to http://www.danrodney.com/scripts/directions-installingscripts.html. At which point you would have to run it once per session (from the Scripts panel, after which point all subsequently created documents would have that happen.
Alternatively, you might want to use it as a startup script. This is an OK idea, except that it might violate your expectations and surprise you sometime if you forget about it. If you follow the above instructions, instead of installing it in the "Scripts Panel" directory, you would go one level up (to "Scripts") and create a directory called "Startup Scripts" and place it there.
Then restart InDesign. It will then always run whenever InDesign starts.

Similar Messages

  • How to use Script in ADF model?

    Hi!
    I don't know how to use Script in ADF model. Help me, please!
    Detail: javaScript.
    Thanks so much!

    You can put your Javascript code in the Onmouseover property of the column.
    I don't have the Javascript code for changing the color but for example the following will pop up an alert
    <af:outputText value="#{row.DepartmentId}" onmouseover="alert(\'Unload event fired!\')">

  • Interface/Method question (how to use the method insert_table)

    Hi people!
    I'm working with DOI (desktop office integration).
    So far I've been able to reflect flat variables from my ABAP program into a Word Doc, but when it comes to internal tables I'm not sure how to achieve this.....
    I find out in the interface i_oi_word_processor_document the method insert_table, but I can't find a single simple example on how to use it....
    If no one knows how to use this method, does anyone know how to reflect an internal table fron my program into a Word Doc by another mean?
    Thanks in advance!!!
    Regards,
    Laura

    Hi Laura
    If you want you can use direct OLE calls. For this, you can refer to the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a> published at SDN.
    Kind Regards
    *--Serdar
    [email protected]

  • How to use script undeploy applications

    Is anyone familiar with OAS script? I want to undeploy some applications using script rather than EM. Any suggestion or help is appreciated.

    In 10.1.2, you can write your own shell script and use dcmctl undeployApplication command:
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13997/cmds.htm#BEIGDEFI
    In 10.1.3, you can use Ant or admin_client.jar to write your own script:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28951/dplyapps.htm#i1038931
    Hope this helps.
    Thanks
    Shail

  • Where to find the example illustrated how to using script to deploy app

    Hi
    my new job involves configure and deploy app in WL Server. one of tasks is
    to write script and use script file to configure and deploy app.
    This script may need to specify the JDBC for various app (like one app
    communicates with oracle, the other may want DB2, etc).
    anyway, Can any one tell me where to find an example, an URL which shows
    what I want?
    Thanks lots in advance.
    John
    Toronto

    click window and tick actions. that will open the actions
    panel if the flash program. find a frame that contains that button.
    click on an spot off-stage and then click on the button. you may
    see code in the actions panel that control that button's behavior.
    if not, look in the properties panel (window/properties/tick
    properties) for the instance name of that button. now search for
    code attached to a frame/layer that references that instance
    name.

  • EJB question: How to use abstract class in writing a session bean?

    I had written an abstract class which implements the session bean as follow:
    public abstract class LoggingSessionBean implements SessionBean {
    protected SessionContext ctx;
    protected abstract Object editRecord(Object obj) throws Exception;
    public LoggingSessionBean()
    super();
    private final String getBeforeUpdateImage(Object obj) throws Exception {
    // implement the details of extracting the backup image ...
    public void setSessionContext(SessionContext ctx)
    this.ctx = ctx;
    private final void writeThisImageToDatabase(String aStr) {
    // connect to database to write the record ...
    public final Object update(final Object obj) {
    try {
    final String aStr = getBeforeUpdateImage(obj);
    writeThisImageToDatabase(aStr);
    editRecord(obj);
    } catch (Exception e) {
    ctx.setRollbackOnly();
    This abstract class is to write the backup image to the database so that other session beans extending it only need to implement the details in editRecord(Object Obj) and they do not need to take care of the operation of making the backup image.
    However, some several questions for me are:
    1. If I write a class ScheduleSessionBean extending the above abstract class and the according 2 interfaces ScheduleSession and ScheduleSessionHome for this session bean (void update(Object obj); defined in ScheduleSession), do I still need to write the interfaces for LoggingSession and LoggingSessionHome?
    2. If I wrote the interface LoggingSession extending EJBObject where it defined the abstract methods "void update(Object obj);" and "void setSessionContext(SessionContext ctx);", that this meant I needed to write the ScheduleSession to implement the Logging Session?
    3. I used OC4J 9.0.4. How can I define the ejb-jar.xml in this case?

    Hi Maggie,
    1. do I still need to write
    the interfaces for LoggingSession and
    LoggingSessionHome?"LoggingSessionBean" can't be a session bean, because it's an abstract class. Therefore there's no point in thinking about the 'home' and 'remote' interfaces.
    2. this
    meant I needed to write the ScheduleSession to
    implement the Logging Session?Again, not really a question worth considering, since "LoggingSessionBean" can't be an EJB.
    3. I used OC4J 9.0.4. How can I define the
    ejb-jar.xml in this case?Same as you define it for any version of OC4J and for any EJB container, for that matter, since the "ejb-jar.xml" file is defined by the EJB specification.
    Let me suggest that you create a "Logging" class as a regular java class, and give your "ScheduleSessionBean" a member that is an instance of the "Logging" class.
    Alternatively, the "ScheduleSessionBean" can extend the "Logging" class and implement the "SessionBean" interface.
    Good Luck,
    Avi.

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • Questions how to use it

    Hello all,
    after a long journey through the various documents about SAP Mobile Documents I thought this would be the fastest way to get answers to my questions:
    1. How can I aa members to my folders from the IOS apps (iPhone, iPad)?
    2. How can I make a folder from my documents to a folder I can share?
    thanks upfront to everyone who helps me to answer these question.
    Regards
    carsten

    Hi,
    Till SP3,
    - From Mobile Apps for SAP Mobile Documents, you can't edit shares (incl. adding members, creating public link for existing shares etc.). You have to do this from Web interface. The Web Interface is mobile ready and you can use it to edit the shares from your mobile.
    - Sharing folders is not supported so far.
    We will be developing these in next service pack - SP4.
    Regards, Ashwani Kr Sharma

  • How to use Script Editor to open iTunes visualizer?

    I have an AppleScript which I used to use in previous versions of OS X to open a visualizer and put it into full screen if music was currently playing. If no music was playing, then it would turn off the visualizer and take iTunes out of full screen. This script still works, but only if iTunes is already open and you can see iTunes on the desktop. If iTunes is open with music playing, but not visible(not visible on the desktop aka minimized or you clicked the red "x" to close iTunes, but not actually quit it), then I get the error...
    "Can’t set «class pVsE» of application "iTunes" to true.
    iTunes got an error: Can’t set visuals enabled to true. (-10006)"
    How can I fix this error so it no longer happens?
    I believe I just need to find a way to bring iTunes to the desktop, even if it's already open. Again, it works just fine if you can see iTunes on the desktop
    Any suggestions?
    I am using Mac OS X Yosemite 10.10.3.
    Thanks for any help!
    Here is the Apple Script...
    tell application "iTunes"
         activate
         delay 1
         if player state is playing then
              if visuals enabled is true then
                   set full screen to false
                   delay 3
                   set visuals enabled to false
             else if visuals enabled is false then
                  set visuals enabled to true
                  set full screen to true
            end if
       end if
    end tell

    The visualizer appears to be bound to the browser window - if there is no browser window, enabling the visualized fails.
    The simplest solution, therefore, may be to show the browser window before trying to enable the visualizer:
      else if visuals enabled is false then
      set visible of browser window 1 to true -- add this line to show the browser window
      set visuals enabled to true
      set full screen to true
      end if

  • How to use script engine.sh

    I've the Standalone BPM Oracle. I want to start and stop the BPM system through the Linux command line. To start the system, I use the script startwebconsole.sh, and it starts the BPM tomcat and the engine that we have, but when I want to stop the system I use the script stopwebconsole.sh, but it stops the Tomcat BPM but the process of the engine is still running. I think that first, I must to stop the engine with the script engine.sh.
    Usage: engine <operation:start> <webconsoleProtocol:HTTP> <webconsolePort> <directoryURL> <engineId>
    My question is what is the directoryURL? I don't know if this is the connection to the directory database or other thing.

    You can put your Javascript code in the Onmouseover property of the column.
    I don't have the Javascript code for changing the color but for example the following will pop up an alert
    <af:outputText value="#{row.DepartmentId}" onmouseover="alert(\'Unload event fired!\')">

  • Data Merge:  How to use script on the preview next a record and pre a record?

    Preview data records too much, want to use the script implementation preview next a record and pre a record, and set shortcut keys for the script.
    the following script can be opened and closed to preview:
    app.menuActions.itemByID(108035).checked
    But I don't know preview next a record and pre a record script in how to implement.

    Bump. I'm looking for this shortcut as well. Any help would be very appreciated.

  • How to use scripts in RMAN for backup

    Hi I would like to create some scripts for recovery backup and then use it in rman,how can it be accomplished?
    For example I would launch an incremental backup the week and a full the sunday.
    I would like to launch this scripts automatically, any ideas on how I can do this?

    hi
    Note the following restrictions:
    Execute CREATE SCRIPT only at the RMAN prompt.
    RMAN must be connected to a target database.
    RMAN must be connected to the recovery catalog either through the CATALOG command-line option or the CONNECT CATALOG command, and the catalog database must be open.
    You cannot run CREATE SCRIPT once and then use this same script on multiple target databases. You must connect to a specific target database and then run CREATE SCRIPT to create a script for this specific target. Each script is associated with one and only one target database.
    You cannot execute a RUN command within a stored script.
    The @ and @@ commands do not work within CREATE SCRIPT.
    Quotes must be used around the script name when the name contains either spaces or reserved words.
    Keywords and Parameters
    For descriptions of the individual commands that you can use in a stored script, refer to the appropriate entry, for example, "BACKUP".
    Syntax Element Description
    'script_name'
    Creates a stored script with the specified name. The statements allowable within the brackets of the CREATE SCRIPT 'script_name' { ... } command are the same allowable within the RUN command. The statements within the braces constitute the job_command_list.
    Note: To run the stored script, specify EXECUTE SCRIPT within the braces of the RUN command.
    Example
    Creating a Script: Example
    The following UNIX shell script creates a recovery catalog script called b_whole_10 that backs up the database and archived redo logs, then executes b_whole_10:
    #!/usr/bin/tcsh
    rman TARGET / CATALOG rman/rman@catdb <<EOF
    # creates recovery catalog script to back up database and archived logs
    CREATE SCRIPT b_whole_l0
    BACKUP INCREMENTAL LEVEL 0 TAG b_whole_l0
    DATABASE PLUS ARCHIVELOG;
    # runs the recovery catalog script b_whole_10
    RUN { EXECUTE SCRIPT b_whole_10; }
    EOF

  • Simple Question -- How to use global variables in an another function??!

    Function named globalLeftMargin that has:
    Global NumberVar LeftMargin := 5;
    HOW DO I USE THIS IN ANOTHER FUNCTION?  B/C IT DOES NOT RECOGNIZE IT AND GIVES THIS ERROR:
    The ) is missing.
    The other function is:
    Space(LeftMargin)

    Hi Ajay,
    Add WhilePrintingRecords at the beginning of each formula like:
    WhilePrintingRecords;
    Global NumberVar LeftMargin := 5;
    WhilePrintingRecords;
    Global NumberVar LeftMargin;
    Space(LeftMargin)
    Good luck,
    Brian

  • Question:How to use MySQL database as a service in Oracle Cloud

    Hello All,
    I want to use MySQL as backend for my application.How can i select MySQL database.Its showing me only to choose Oracle database.
    Thanks in advance.

    The Oracle Database Cloud Service uses the Oracle Database.  You do not have access to the underlying operating system to make the choice you are seeking.
    When the Oracle Compute Service comes out later this year, you could use one of those "infrastructure only" environments and load MySQL into it.  You would be responsible for all maintenance of MySQL and the environment.
    Hope this helps.
    - Rick Greenwald

  • How to use Script Performance

    Hello,
    I have two computers, the first I give name infra (for database) and the second is portal (for portal).
    1. Where Can i execute the perl loadlogs.pl script in portal or in infra computer to load web cache log files or oc4j log files ?
    2. which table the log files to be stored if we select http_logfile,oc4j_logfile and webcache logfile. owa_logger or other table?
    How to fill other tables beside table owa_logger ?

    1. You need to run it on both machines and collect all three files from each machine.
    2. The other tables are partition element tables and temporary tables for reporting purposes the only table that needs filling is OWA_LOGGER

Maybe you are looking for

  • How to access listbox binding data from a button which is not part of listbox in xaml page

    Hi I have the below listbox and its bdining as below  <ListBox x:Name="listMyPosts" ItemsSource="{Binding Path=MyPostsDataSource}" Grid.Row="0"  >            <ListBox.ItemTemplate >                       <DataTemplate >                               

  • I have a hp photosmart premium c310. my printer works fine but i am having problems scanning.

    I have a hp photosmart premium C310.  I can print no problem but have recently tried to scan a document.  I received the message 'Try starting scan from computer.  Refer to documentation details'.  This prompted me to look for the relevent file in or

  • Oracle database 10g Developer release

    I would like to know when will the support for Java be available in Oracle database 10g Developer release for Microsoft Windows XP x64 (AMD/Xeon processors). I want a full working Enterprise version for Window XP x64.

  • Can i update ios 7 to ios 8

    Hello Sir/Madam                          Can i update ios7 to ios8?

  • Message stucking in R3 side itself

    HI All, when sending the data through proxy to xi but they all  stuked in R3 ,i have checked this in SXMB_MONI of R3 side and it's saying it is alreay schdeule in the queue and some it is given the HTTP 500 timeout error.plz help on this... Regards