Editing An Exisiting Script

hello, im fairly new to java script and I've only ever used the basic indesign scripts.  I found this very handy script http://www.rorohiko.com/wordpress/otherproducts/sizelabels/ it labels the size (demensions) of every image in the document onto its own layer - its beautiful and i love it.  the only thing i want to do is to add the file name in front of the size in each text box.  is this possible?  ive been trying to incorporate the stock "LabelGraphics" script into this one and I'm having no luck shooting in the dark.  can anyone please help me, i would be so thankful!

Hi Bishop3,
The above Kasyan, script will add the document file name.
If you need add the image name in before the size dimensions, use the below lines.
If you need this use the below lines. from line #430.
try{
    labelItem.contents = (pageItem.graphics[0].itemLink.name) +"-"+RoundString(width, kRoundToDecimals) + "x" + RoundString(height, kRoundToDecimals);
    }catch(e){
        labelItem.contents = RoundString(width, kRoundToDecimals) + "x" + RoundString(height, kRoundToDecimals);
thx
csm_phil

Similar Messages

  • Users priveleges who is able to edit the RMAN script in OEM

    Hi
    Can anyone help me, how to find the list of users who has privileges to change/edit the RMAN script in OEM?
    Thanks

    Hi,
    I believe its required DBA privileges as well as OS level login credential to edit the job,
    you can Query from dba_role_privs which user having DBA role assign, and find those user having OS level Credential.
    HTH

  • How edit the cue script

    I have a cue 7.1 . I need edit the AA script, but there is not EDIT button. Im unable to edit the script.
    In other cue 8 that I have it only allow me edit only one of the scripts.
    How can I enable the edition of one AA sctipt?
    Thnks        

    Hi Rafael
    I hope to take a look on the below link , please.
    http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unity-express/63897-cue-custom-scripts-start.html
    https://supportforums.cisco.com/docs/DOC-1257
    Thanks
    Please rate all useful information

  • Not able to edit my Sap script form using se71 ?

    I have been working on SAP Script say ZKI_FORM using se71 in polish language.
    Today When I try to make changes as usual, it is not allowing me to go into change mode . It is giving Error in object Editing like below.
    " Changes to Repository or cross-client Customizing are not permitted
    Choose 'Display object' or 'Cancel'. "
    My functional consultant doesn't know why it is happened like that ? Even my team lead doesn't know this.
    COULD ANY BODY PLEASE SUGGEST HOE TO GO TO CHANGE MODE OF THE SCRIPT FORM AND MAKE MY CHANGES  ?
    THANKS IN ADVANCE .

    hi
    Give the form name ..
    menuiten--> utilities --> convert original language
    Step by step for copying form.
    give the standard form name in SE71 and language as DE
    click create.
    popup come... check radibutton copy from original..
    given the zformname and green check.
    save it and back.
    give the zformname again and language DE and click change..
    go to menuitem Utilities --> Convert original language
    give new language to EN.. green check..
    SAve and BACK.
    give zformname and language as EN and change..
    there u can do all modifications..
    Or use SE76 give formname and source language and target language...
    then change and press SAVE.
    Regards
    SAB

  • Using VB API in VBA to edit the Calc Scripts

    Guys,
    Does anyone of you have VBA source code/examples utilizing Essbase API for the following operation.
    I want to copy Calc Script from Server to the client, edit the Script using VBA and copy back the Script to the Server. Any kind of info is appreciated.
    Thanks in advance
    HYPuser

    I posted some real sample code a while back for a completely different function (member renames).
    Renaming Existing Member Names
    So while you'll have to write the calc modification code yourself (or ask Glenn his rate ;-)), this at least shows you how the initialization / login / termination of the API would work. That's probably the most confusing aspect of using the VB API for the first time anyway.
    All that said, if this is from Excel and the user will already be logged in via the Excel Add-In, I believe that you can make life much easier and grab the hCtx directly without any initialization / login/ termination worries. I probably should have done that myself in the example I gave. See Tim Tow's posts in this thread:
    API
    EDIT: Two things I just noticed - first, the code sample I gave even has an example of polling for ProcState, so that gets you closer than I thought! Second, remembered that the line that reads...
    While ProcState.State ESB_STATE_DONE
    ...should actually have a 'less than / greater than' symbol between ProcState.State and ESB_STATE_DONE. Can't get the forum to display them correctly, even in code tags...
    Edited by: TimG on May 16, 2011 2:55 PM

  • How to edit the installation scripts in the supporting objects

    I wanted to update one of the installation scripts in the supporting objects. I clicked into that script and use the "script editor" tab. After editing the script, I clicked "Apply Changes" button. It redirected me to the upper level of the page. When I reopen the script, the content of this script is messed up and has the content of another script, not what I have changed. What could happen with it? There is one case that the script was all wiped out!
    One general question, how can I easily update the install scripts and reload it without export and import the whole application? or Can I?
    Thanks
    Fengting

    Fengting,
    I am not sure what causes this, but I have had the same issue with shared components >> report queries. Sometimes if you have multiple report queries it becomes impossible to edit any of them. If I remember correctly I tried using a different browser and everything seemed to work ok. I was using Firefox when I was having the issue.
    Sorry this is not an answer, but I feel your pain!
    Cheers,
    Tyson Jouglet

  • How to edit the VuGen script?

    I am usng VuGen 11.0to  generate script, how to edit the script to make this happen - that inserts a new record to the database when the script runs in BPM?

    Yes, 'View' is read only. Get KompoZer, which is free: you can create web pages in it, or open existing pages and edit them.

  • Editing an export script - please help!

    Hello Photoshop friends,
    so I have an export script that I downloaded from the web which exports all layers to a file type of your choice - PNG, GIF, etc. This is fine, but the dialog box doesn't support file format options such as matte, dither, transparency and so forth. Is it possible to edit the script to give it literal values for these inaccessible variables instead of the default? I'v been digging around the script, but I'm not really sure what I'm doing.
    Specifically, I want to leave the script intact except the following settings for the PNG8 format:
    Colours 256
    Transparency - YES
    "No transparency dither"
    Matte: "none" (currently it gives me a white matte)
    Please, I would really appreciate if anyone could point me in the right direction please, please!
    Ulerika.

    Hey Michael, thanks for your quick reply. I tried to attach the script, but the forum won't allow me to do so. The script in question is here:
    http://tranberry.com/photoshop/photoshop_scripting/tips/layerstoPNG.html
    There is one big section dealing with PNG8 which I suspect is the place which needs to be changed. An extraction from this section for example reads:
    "var id35 = charIDToTypeID( "Mtt " );
    desc4.putBoolean( id35, true ); //matte
    var id36 = charIDToTypeID( "MttR" ); //matte color"
    Thanks.

  • How to directly edit PL/SQL Scripts

    I can't open PL/SQL source files directly into a PL/SQL editor - they're opened as SQL scripts. The tool still seems targeted towards database maintenance rather than developing code held in a separate version control system.
    Whilst technically the PL/SQL source files are just SQL scripts this doesn't make for easy PL/SQL development.
    A change to a PL/SQL source file involves:
    - Open source file into SQL script tab.
    - Choose connection to run script against.
    - Run as a SQL script.
    - Close source file.
    - Navigate to package spec/body in tree browser and open read-only in a view tab.
    - Click to edit object source - opens in new tab.
    - Edit source and compile.
    - Add 'create or replace' at top and '/' at end.
    - Select 'Save As...' and navigate to original source file.
    - Close script window that this automatically opens for newly saved file, and close edit source tab. Same task in PL/SQL developer:
    - Open source file into a Program Window.
    - Edit source and compile.
    - Click save.
    Making a single change is bad enough - try it when you're making substantial changes to a source file and you want to regularly check compilation and save changes.
    Can anyone help make this easier ?

    The tool still seems targeted towards database maintenance rather than developing code held in a separate version control system.They'll get to it eventually...
    I can't open PL/SQL source files directly into a PL/SQL editor - they're opened as SQL scriptsIs the extension .sql? Change it to .pls or .pks/.pkb. They seem to use the dumb extension-based system to find out what files they are dealing with, instead of parsing the contents.
    If the code doesn't get syntax coloured, open a function or procedure from database first, that seems to wake him up.
    Also make sure the files are as the same as in the DB (with create or replace, without final slash), so you can compile them directly from the same file-based editor.
    You still have to assign connection and navigate to the PL/SQL in the DB to view compilation errors and run/debug though. There are some requests on the announced SQL Developer Exchange for these (http://htmldb.oracle.com/pls/otn/f?p=42626:37:260789750723810::NO:::). Please vote for them to see them implemented.
    K.

  • Editing movie from script (API)

    Hi,
    I would like to know if there is an option to edit a clip by a pre-defined script, using premiere pro (i.e API).
    If not - do you know other options rather than premiere pro?
    Thanks,
    Roy Oron

    using premiere pro (i.e API).
    Thankfully, no.  Otherwise editing as a skilled and artistic profession would soon become obsolete.
    However, you can do it using TET (Traditional Editing Techniques).

  • Editing a .scpt script from cron

    Hi Folks -
    Does anyone know if it is possible to run a script that would edit an Applescript .scpt file. I would like to run a daily cron job that would insert text into to an existing .scpt file. Any suggestions would be appreciated... thanks!
    - Jorma

    AppleScript does not have anything quite like include, but depending on exactly what you are wanting to do you can have one script load another (see Saving and Loading Libraries of Handlers) or pass parameters to a script from a shell (see the osascript manual page).

  • Tiff file edit in Sap Script

    Hi,
    I am changing PO script, some body uploaded standard text contained tiff file into sap.
    That tiff file contains some text, Now i want to edit some text in that file.
    Now i don't have that original file, how can i find out that file in SAP?
    thanks,
    fractal

    When you uploaded the Tiff file using the Program into SAP, you would have saved that Tiff file as a STandard text into SAP.
    Unless you change the SAP proposed Standard text name,
    Standard text name would start with "ZHEX-MACRO-*", with Text ID 'ST'.
    Now try looking for standard text of that Name.
    I know this is a convoluted process. But no other way seems to there.
    Hope this helps
    Vinodh Balakrishnan

  • EDIT MASK in Script

    Hello,
    I want to display all dates in my Purchase order Print preview in the same format in which user has set his date (SU3).
    Purchase Order is using script MEDRUCK to display the data.
    Please help.

    Hi,
    you can use
    /: SET DATE MASK = 'date_mask'
    Assuming a current system date of March 1st, 1997.
    /: SET DATE MASK = 'Foster City, MM.DD.YY'
    &DATE& -> Foster City, 03.01.97
    &DATE(Z)& -> Foster City, 3.1.97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997
    You can revert to the standard setting by using the SET DATE MASK command again with an empty string in place of the date mask:
    /: SET DATE MASK = ' '
    Regards
    Sudheer

  • How to edit RMAN schedule script on OEM?

    I created a schedule backup script on RMAN using OEM. But I didin't include the log error clause in the script. But now I can't find in OEM where can I change the script. I found only where the script is showed.
    Someone could help me?

    You need to create new backup schedule with corrected script and remove the old one.

  • Editing template using script.

    I have read that it is possible with the scripting in after effects to batch create videos using templates…for example a script which provide instructions to AE to take data(text or images) from a xml, csv or .txt file and render out the video in any format?
    Say if i want to customize a template 50 times using 50 different text , can i just make a text file or list of the text changes and do an automated render..??
    I know the same question might have been asked previously in the forum however i could not find a strong solution there fore i am posting this question.
    any solution would be a great help.

    There are a lot of scripts available on the web for things like lower thirds from spreadsheets. AE Ehansers has a bunch of free ones and a nice forum. AEscripts.com is another resource. There is also a scripting forum right here. Check the links on the right side of this forum's home page under the Related Forums or Sub Forums heading.

Maybe you are looking for

  • Downloading photos from Phone to iPhotos by USB

    My phone is Sony Ericsson K700i, but when linked to iMac by USB, no icon shows on desktop. I thought I would just be able to click on Import in iPhoto to download photos. CDs which came with USB cable are only compatible with Windows. Do I need softw

  • Data Guard Broker fails with ORA-16635 and ORA-03135

    Hi All, I configured Oracle RAC with Dataguard 11.2 on Windows 2003. I've already configured Standby without Data Guard Broker and everything is working fine, but when I try to use Data Guard Broker, he can not synchronize the files from the Data Gua

  • How to maintain default folder view (broken when leopard clients connect)?

    hi there, we run 10.4 tiger server and have the problem that if 10.5 leopard clients connect to the share their changes to the folder view become the new default for everyone connecting after them. with 10.4 clients the default folder view is looked

  • Exporting referenced images

    Hi -- I've created an album of edited images from my USB linked Wolverine hard drive, so they are referenced masters. I want to export them to a folder so that I can batch convert them to jpg, but when I go to export versions, it says "Cannot export

  • After Effects CS5 Mac crashes on launch with a warning

    I get the following error message: After Effects Warning: Could not rename the file '/Users/jonahlee/Library?Preferences/Adobe/After Effects/10.0/Worspaces.9216.1407350837851841.xml' to workspaces.xml'. The strange thing is that the file does not see