Automating Batch Scripts & Sub Var changes

What is the most efficient way to automate batch scripts? Changing and updating substitution variables? I'm sure there are many ways to automate batch scripts. I was unsure how to do this with the Hyperion tools without purchasing a third party tool.

FWIW, <br><br>We use BAT files and VBS scripts scheduled by Windows Task Scheduler (we use Win2k Server).<br><br>Jeff McAhren<br>Dallas, Texas

Similar Messages

  • Dynamic Calc'd Member not picking up Sub Var changes  -  11.1.1.3

    Hi,
    We have a Dyn Calc'd member formula using a sub var on a member. When sub var is updated, values in member formula referencing the sub var don't update. We have stop and start the application for it to pick up the new sub var in the member formula.
    any ideas?

    Unfortunately you have to live by the definition in dbag which is in the post that Tim provided the link for but nobody seems to follow links these days :)
    "To ensure that a new substitution variable value is available in formulas, partition definitions, and security filters, stop and restart the application. All other uses of substitution variables are dynamically resolved when used."
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Change currently active LV version in batch script

    Hello,
    I use two different applications on my computer and one of them should run in LV 2011, the other one in LV 2012. Both versions are installed and it works fine as long as I start the correct LV version manually before starting the application (by starting and closing the required LV version from C:\Program Files (x86)\National Instruments\... before starting my application).
    I want to do this automatically in a command script, so basically I want to do the following:
    * Check which LV version is currently active (which LV version was started last)
    * If the currently active LV version is NOT the required one: change to the required LV version (by starting LV and closing it, or preferably doing it differently if someone could tell me how)
    * If the currently active LV version is the required one: Do nothing
    There are two problems I could not solve so far:
    * How do I get the currently active LV version (I checked windows registry, but I only see my installed LV versions, and not which one is currently active)
    * How can I close LV with a batch script (or how can I change the currently active LV version w/o opening and closing it)
    Thanks in advance,
      Tobias
    PS: I did the same for different TestStand versions, by reading out the TestStand system environment variable and if requuired changing the TestStand version via the command line of the TS Version Selector. This works fine, but there is no system environement variable that tells the currently active LV version.
    Solved!
    Go to Solution.

    They might have different toolkits installed. Block diagrams on our old projects are included, but on our new projects we plan to not include them anymore. Driver compatibilty is a problem that we check each time we have this situation with different versions to make sure that it is working as expected. On one project I did not install the new driver, but kept the old one to make sure there are no changes to the old project.
    It is a problem when we execute old code with a newer LV version than the version was used during the validation of the same code. We probably would have to do some revalidation with the newer LV version and this is what I try to avoid (working in the medical device industry means a lot of validation).
    I could not find the current LV version in the Windows registry. But it must be located somewhere, since TestStand gives the Active LV Version in the LV Adapter configuration and when I open a VI in Windows Explorer the last used LV version is started.
    So my question is where does TestStand and Win Explorer read this out, since then I could read the same thing out in my batch script.

  • Batch script for automating process

    Hi all, not sure if this is the right area asking about batch scripts, but this has to do with the back-end system in Hyperion.
    I was wondering if there is a way to run a batch script on the transaction log that will give a list of any new GL accounts that have been added in the prior month or within the last 30 days? Can it also show which users are added to the account?
    The purpose of this is to automate the process periodically and eliminate the Outline Maintenance Log or import to the Outline Maintenance Log. It would be helpful for adding more new cost centers.
    Lastly, can I also run a batch script to see how often our end-users are in Hyperion reports?
    thank you.

    +...give a list of any new GL accounts that have been added in the prior month...+
    Correct me if i'm wrong:
    You want to know new members added in the account dimension recently. Is that right?
    If so, you could do a select command like that:
    SELECT O.OBJECT_NAME -- Just the member name. For alias, you need another join
    FROM HSP_ACCOUNT A -- For performance, i put the smallest table here
    INNER JOIN HSP_OBJECT O ON A.ACCOUNT_ID = O.OBJECT_ID -- Join to get the member name
    WHERE O.CREATED >= (SYSDATE-(30)) -- last 30 days
    Note this specific select you can only get the account dimension. Entity has his own table too.
    For custom dimention it gets a little more complicated.

  • Automated Batch Overide Save As not working

    I have created an action in CS4 that includes a Save for Web at that end. When I try to run an Automated Batch and change the save folder location using the overide check box and selecting the new forlder, the batch run still saves to folder specified in the action. There is no overide.
    I am using Windows 7. Please see the screencast here: http://www.screenr.com/1xo

    The commands in the batch dialog for override save as and renaming don't apply to
    export plugins, which is what save for web is.
    You can make it work by setting the folder you want to save the images to when you
    use save for web (the folder you choose when using save for web to record the action)
    Then add a Close without saving step at the end of the action.
    In the batch dialog set the Source folder and set none under Destination.
    (the images will open, run the action and close one at a time)
    Added: An easier way would be to use the Picture Processor script which has a save for web option.
    Then you wouldn't need the save for web or close steps in your action.
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3409&sid=73d7ab9891f7b601c9078f1717a9efd 3&start=15
    MTSTUNER
    Message was edited by: MTSTUNER

  • [Resolved][ODQ] Error Running Exported Batch Script Outside of ODI

    Dear ODI experts,
    I have Installed 10.1.3.4.0 ---> selected "Oracle Data Integrator, Oracle Data Profiling, Oracle Data Quality 10.1.3.4.0" ---> Complete (1012MB)
    - follow all steps of "Design a Name and Address Cleansing Project" section in Sample Tutorial
    - in "Oracle DQ User Interface", right click Projects->Quality->customer master[1]
    - select "Run" from the context menu
    - the background tasks completed 100% properly
    - export the project as a Batch Script
    - make changes to config.txt, runProjectN.cmd, and *.stx files following as specified in the Sample Tutorial document
    - at step 13-f, got the following errors by executing runProjectN.cmd
    Wed Nov 28 17:18:37 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e7_us_globrtr_p2.dat>. errno = 2; N
    o such file or directory Occurred in Transformer - (cl_open).
    I did a full search in ODI folders and couldn't find "e7_us_globrtr_p2.dat".
    I tried both export with data and export w/o data with proper change to specify input file path, and got the same error.
    Appreciate any suggestions and/or hints help me further debug of fix this issue.
    Regards,
    Roy
    The following is a complete message echo of runProjectN.cmd
    ===========================================================================
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>runproject1.cmd
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>set TS_PROJECT=D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>set TS_CONFIG=D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts\config.txt
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>set TS_SETTINGS=D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>set TS_DATA=D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data
    D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\scripts>cd /D D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call tranfrmr D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e5_tranfrmr_p1.stx
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call globrtr D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e6_globrtr_p2.stx
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call tranfrmr D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e9_tranfrmr_p3.stx
    Wed Nov 28 17:18:37 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e7_us_globrtr_p2.dat>. errno = 2; N
    o such file or directory Occurred in Transformer - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call cusparse D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e10_cusparse_p4.stx
    Wed Nov 28 17:18:37 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e9_us_tranfrmr_p3.dat>. errno = 2;
    No such file or directory Occurred in Customer Data Parser - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call tsqsort D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e11_srtforpm_p5.stx
    Wed Nov 28 17:18:37 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e10_us_cusparse_p4.dat>. errno = 2;
    No such file or directory Occurred in tsqsort - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call uspmatch D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e12_pmatch_p6.stx
    Wed Nov 28 17:18:37 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e11_us_srtforpm_p5.dat>. errno = 2;
    No such file or directory Occurred in CGeoIO::initGIO - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call winkey D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e13_winkey_p7.stx
    Wed Nov 28 17:18:38 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e12_us_pmatch_p6.dat>. errno = 2; N
    o such file or directory Occurred in CWKD::initWKD - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call tsqsort D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e14_srtforrl_p8.stx
    Wed Nov 28 17:18:38 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e13_us_winkey_p7.dat>. errno = 2; N
    o such file or directory Occurred in tsqsort - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call rellink D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e15_rellink_p9.stx
    Wed Nov 28 17:18:38 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e14_us_srtforrl_p8.dat>. errno = 2;
    No such file or directory Occurred in CMatcher::InitMatcher - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call common D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e16_common_p10.stx
    Wed Nov 28 17:18:39 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e15_us_rellink_p9.dat>. errno = 2;
    No such file or directory Occurred in Create Common - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>call datarec D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\settings\e17_datarec_p11.stx
    Wed Nov 28 17:18:39 2007 - 03503E ERROR: Can't open file: <D:\Bin\Oracle\ODIDQ10134\demo\oracledq\projects\oracledq\project1\data/e16_us_common_p10.dat>. errno = 2;
    No such file or directory Occurred in CReCons::initRC - (cl_open).
    D:\Bin\Oracle\ODIDQ10134\oracledq\quality_server\tsq11r0s\Software\bin>
    ===========================================================================
    Solution:
    Needs to modify "e9_tranfrmr_p3.stx" to point to "e6_nomatch_globrtr_p2_us.dat".

    Seems to be the DRM service went down, try running the batch after stopping & restarting the service.

  • A way to track where all the Sub Var are applied?

    Hopefully this is the section where to post.
    Is there a way of tracking where all the substitution variables are being used in the reports?
    Either in reports or calc scripts, or in a 3rd format, if there is one.
    We just don't want to open up each script individually and scan for use of the sub var, or open each report and see if it's used.

    Hi there,
    Is this HFM or Essbase?
    Regards,
    Thanos

  • Batch Script to display last modified file from multiple directories

    Hello,
    I am trying to find the name of the latest file  or the last modified file from a set of given directories.
    I approached the problem by breaking it into two parts: a.  read all the directories from a .txt file and display the names of those directories and files under those directories.  b. Find the latest file present in any given directory and
    Upto this point all worked well, but when I am trying to combine both these batch scripts, I am unable to get the desired result.
    I am using BATCH SCRIPT only to complete this.
    My tried script is as below:
    a.  TO SEE ALL THE DIRECTORIES SPECIFIED IN "path_123.txt" FILE
    for /f "delims=" %%i in ('type "C:\Users\sonkar\Desktop\path_123.txt" ') do (set locall=%%i
    echo %locall%
    echo %%i
    b.  TO FIND THE LATEST FILE PRESENT IN THE DIRECTORY
    set BUILDDROP="E:\"
    for /f "tokens=*" %%a in ('dir /A:-D /B /O:-D %BUILDDROP%') do set NEWEST=%%a&& goto :next
    :next
    echo %NEWEST%
    But when combining both is not working at all.
    Any help is appreciated.

    Since batch files lack the ability to do date arithmetic you are pushing them well beyond their limits. Either VBScript of PowerShell could handle this type of task. Here is a VBScript solution. You must save the code in a .vbs file, then modify it to suit
    your exact needs.
    'Find the most recent file in a collection of folders
    '11 Sep 2014 FNL
    Dim dDate, dDate_, sFile, sFile_
    Set oFSO = CreateObject("Scripting.Filesystemobject")
    Set oList = ofso.OpenTextFile("C:\Users\sonkar\Desktop\path_123.txt", 1)
    aList = Split(olist.ReadAll, vbCrLf)
    oList.close
    dDate = cdate("01/01/2000")
    For Each sFolder In aList
        dDate_ = cdate("01/01/2000")
        ProcessFolder(sFolder)
        If dDate_ > dDate Then
            dDate = dDate_
            sFile = sFile_
        End If
    Next
    WScript.Echo "Most recent file: """ & sFile & """"
    WScript.Echo "File date: " &dDate
    Sub ProcessFolder(sFldr)
        If LTrim(sFldr) = "" Then Exit Sub
        WScript.Echo "Processing """ & sFldr & """"
        For Each oFile In oFSO.GetFolder(sFldr).Files
            If oFile.DateLastModified > dDate_ Then
                dDate_ = oFile.DateLastModified
                sFile_ = oFile.Path
            End if
        Next
        For Each oFolder In oFSO.GetFolder(sFldr).SubFolders
            ProcessFolder(oFolder.path)
        Next
    End sub

  • Calling oracle procedure from batch script

    i have a .bat file, in which i am using sqlldr to load into a staging table from csv file, and then using merge to insert / update into target table
    i have 2 doubts
    1) my first doubt is regarding batch script..how to handle the errorlevels which are greater than 1?
    so generally speaking, how do i handle all the errors at once..and make sure the control goes to
    run_sqlldr0 always? and handle the error meaningfully if its other than 0 ?
    below is my batch script, and i get error
    goto run_sqlldr2
    the system cannot find the batch label specified - run_sqlldr2
    @echo on
    call oraenv.bat
    if not exist %mainpath% goto mainpath_def
    if not exist %scripts% goto scriptspath_def
    if not exist %logs% goto logspath_def
    if not exist %data% goto datapath_def
    goto x1
    :x1
    goto run_sqlldr%ERRORLEVEL%
    echo run_sqlldr%ERRORLEVEL%
    if run_sqlldr%ERRORLEVEL% NEQ 0 goto run_sqlldr1
    echo "entering sqlldr"
    :run_sqlldr1
    echo "entered sqlldr1"
    echo "some error"
    echo mergedata%ERRORLEVEL%
    :run_sqlldr0
    echo "entered sqlldr0"
    sqlldr userid = scott/tiger@orcl control=%mainpath%\cm.ctl log=%logs%\cm.log discard=%logs%\cm.dsc bad=%logs%\cm.bad SILENT=(HEADER, FEEDBACK)
    goto mergedata%ERRORLEVEL%
    :mergedata1
    echo "entered mergedata1"
    echo cleandata%ERRORLEVEL%
    :mergedata0
    sqlplus -s scott/tiger@orcl @%scripts%\merge_stg.sql
    goto cleandata%ERRORLEVEL%
    :cleandata1
    echo "entered cleandata1"
    sqlplus -s scott/tiger@orcl @%scripts%\clean_stg.sql
    goto exit
    :cleandata0
    echo "entered cleandata0"
    echo "error in removing data"
    goto exit
    :mainpath_def
    echo "mainpath not existing as specified %mainpath%, Please edit ORAENV with correct value"
    goto exit
    :scriptspath_def
    echo "scripts path not existing as specified %scripts%, Please edit ORAENV with correct value"
    goto exit
    :logspath_def
    echo "Logs path not existing as specified %logs%, Please edit ORAENV with correct value"
    goto exit
    :datapath_def
    echo "Data path not existing as specified %data%, Please edit ORAENV with correct value"
    goto exit
    :exit
    2) my second doubt, is this the right way of calling the stored procedures merge_stg and clean_stg?
    in clean_stg, i use dynamic sql to truncate the staging table
    create or replace procedure trunstg is
    lsql varchar2(2000) := 'truncate table stg_ldrtest';
    begin
    execute immediate lsql;
    end;
    /

    i have changed the code
    @echo on
    call oraenv.bat
    if not exist %mainpath% goto mainpath_def
    if not exist %scripts% goto scriptspath_def
    if not exist %logs% goto logspath_def
    if not exist %data% goto datapath_def
    goto x1
    :x1
    goto run_sqlldr%ERRORLEVEL%
    echo run_sqlldr errorlevel: %ERRORLEVEL%
    if run_sqlldr%ERRORLEVEL% NEQ 0 goto run_sqlldr1
    echo "entering sqlldr"
    :run_sqlldr1
    echo "entered sqlldr1"
    echo "some error"
    :run_sqlldr2
    echo errorlevel: %errorlevel%
    echo mergedata%ERRORLEVEL%
    :run_sqlldr0
    echo "entered sqlldr0"
    sqlldr userid = gautam/gautam@orcl control=%mainpath%\cm.ctl log=%logs%\cm.log discard=%logs%\cm.dsc bad=%logs%\cm.bad SILENT=(HEADER, FEEDBACK)
    goto mergedata%ERRORLEVEL%
    :mergedata1
    echo "entered mergedata1"
    goto end
    echo cleandata%ERRORLEVEL%
    :mergedata0
    sqlplus -s gautam/gautam@orcl @%scripts%\merge_stg.sql
    goto cleandata%ERRORLEVEL%
    :cleandata1
    echo "entered cleandata1"
    echo "cleaning error"
    goto end
    :cleandata0
    sqlplus -s gautam/gautam@orcl @%scripts%\clean_stg.sql
    goto end
    :mainpath_def
    echo "mainpath not existing as specified %mainpath%, Please edit ORAENV with correct value"
    goto exit
    :scriptspath_def
    echo "scripts path not existing as specified %scripts%, Please edit ORAENV with correct value"
    goto exit
    :logspath_def
    echo "Logs path not existing as specified %logs%, Please edit ORAENV with correct value"
    goto exit
    :datapath_def
    echo "Data path not existing as specified %data%, Please edit ORAENV with correct value"
    goto exit
    :end
    EXIT
    so the error is ORA - 30926, unable to get a stable set of
    rows in the source tables
    my merge is
    MERGE INTO ldrtest D
    USING (SELECT code,id,row_name,col1,col2,col3,crt_tm,md_tm,crt_user,mod_usr FROM stg_ldrtest) S
    ON (d.code = s.code and d.id = s.id and d.row_name=s.row_name )
    WHEN MATCHED THEN UPDATE SET d.col1 = s.col1,
    d.col2 = s.col2,
    d.col3 = s.col3,
    d.crt_tm = s.crt_tm,
    d.md_tm = s.md_tm,
    d.crt_user = s.crt_user,
    d.mod_usr = s.mod_usr
    WHEN NOT MATCHED THEN INSERT (d.code,d.id,d.row_name,d.col1,d.col2,d.col3,d.crt_tm,d.md_tm,d.crt_user,d.mod_usr)
    VALUES (s.code,s.id,S.row_name, s.col1,s.col2,s.col3,s.crt_tm,s.md_tm,s.crt_user,s.mod_usr);
    i did not understand what this error means..
    could anyone please help me out

  • Sub var question

    Hello...I have two questions re: substitution variables.<BR><BR>1. I believe Essbase evaluates sub vars "bottom-up"--that is, if you have the same variable name at multiple levels (database, application, server), Essbase uses the value from the lowest level. This is the case regardless of whether you're using the variable in a calc, report script, spreadsheet retrieval, etc. Is this correct?<BR><BR>2. What in the world does the "Set Substitution Variable Scope" command in the calc script editor do? It doesn't effect syntax checking, or the way the calc runs. I've also noticed this command doesn't exist in EAS...<BR><BR>Thanks,<BR>Jared<BR><BR>

    You already have a spry horizonal menu that you appear to be using as a vertical.  You might be able to insert another <ul> within the <li>, like so
    <ul id="MenuBar1" class="MenuBarHorizonal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
          <ul>
            <li><a href="#">Item 1.1</a></li>
            <li><a href="#">Item 1.2</a></li>
            <li><a href="#">Item 1.3</a></li>
          </ul>
      </li>
    If that does not work, perhaps you might just want to delete what you have and insert a vertical spry menu.
    I also notice all of your html files start with caps, looks like you have an Index html and a index.html.  I'm guessing that gave you a few headaches.
    Gary

  • Automated batch doesn't work in photoshop & from Bridge

    Hi all,
    Automated batch from  Bridge  tools>photoshop>batch  Photoshop cs5 stops working. Automated batch also doesn't work in photoshop. Automated actions work in Photoshop. All other Photoshop process work  from Bridge. I use a PC with windows. This happens even with files I was  previously able to do an automated batch with Photoshop. It doesn't  matter what the file extension is. This has only recently begun  happening for no apparent reason.

    First, given what you've written, it's important to ask:  48 x 48 what?  Details matter.  48 x 48 pixels?  Inches?
    Beyond that, yes, I believe the Image Size dialog interacts with us a little differently than it used to.
    Whether it's a positive or negative design change I can't say.  They're trying to pack a lot of functionality in there, and it might take a little getting used to...  It does seem deterministic:
    If you want to keep the physical print size the same and increase the pixel density - i.e., upsample the  image - you would have to choose physical dimensions.  Try this:
    1.  Change the units to inches.
    2.  Change the ppi value and press OK.  This resamples the image.
    On the other hand, if you want to keep the pixel count the same, but just change the ppi value so that it matches a particular kind of display, how would you do it?  Try this:
    1.  Change the units to pixels.
    2.  Change the ppi value and press OK.  This changes the metadata.
    Are you trying to assume what leaving the units set to percent means?  To me it says "xx % of the pixel count".
    -Noel

  • Batch/Script 3D Model

    Hello,
    I have a Model/Scene in PS/CS5 and I'm looking to batch multiple versions with a different texture map applied to each.
    Here's the basic actions:
    Open "Model" / Load texture "Name_01" from list / Rasterize / Export as PNG using texture file's naming convention, "Name_01" / Repeat...
    This appears to be outside PS actions to accomplish.
    Any thoughts or scripting gurus to recommend?
    Thanks!

    xbytor2 wrote:
    Can you record an action that does what you want for a particular model and texture?
    Yes, but not entirely. I've got two hurdles...
    1. I'm referencing a new texture file for each instance of my model and using that texture file's naming convention as the final exported PNG. I realize that I could do a batch rename after the fact, so this is not my main issue.
    2. When doing this to a single file I can record an action for everything, but...
    Since the batch of files I'm processing is referenced in the middle of my action (Load "Name_01" as a new texture for model), I don't see how to interpret it into a workable batched script.
    This may require a combination of PS and Automator scripts, but that may be getting too heady for me alone.
    Any help would be great!
    Thanks

  • Script for printing changed pages only

    Does anyone know of a script that will allow the printing of only those pages that have had changes made to them since a previous save? I'm a typesetter doing work only on books and journals and sometimes it's a bit tedious to keep track of the individual pages one works on. thanks,

    Ok,
    Here is a raw code. All you need to do is edit the script to specify the printer preset you want to use. I don't have a printer my self to debug but I think it should work.
    Here is the idml to grab the object styles. Don't forget to apply on objects located onto the pasteboard. The script look for these objects and grab the page name next to them to finally print these pages.
    Hope it helps,
    Loic
    function main(){
              var doc,
              changedArray = [],
              changedStyle,
              unchangedStyle,
              i=0,
              max=0,
              found = [],
              pagerange = [];
              obj,
              vb,
              leftPage,
              leftPageBounds,
              rightPage,
              rightPageBounds,
              pagerange = "";
              if(!app.documents.length){ return; }
              var doc = app.activeDocument;
              changedStyle = doc.objectStyles.itemByName("changed");
              unchangedStyle = doc.objectStyles.itemByName("unchanged");
              if(!changedStyle.isValid ||  !changedStyle.isValid){
                        alert("Problem with object styles. Script requires both \"changed\" and \"unchanged\" styles.");
                        return;
              app.findObjectPreferences.appliedObjectStyles = changedStyle;
              found = doc.findObject();
              max = found.length;
              for(i=0; i<max; i++){
                        obj = found[i];
                        vb = obj.visibleBounds;
                        leftPage = obj.parent.pages[0];
                        leftPageBounds = leftPage.bounds;
                        rightPage = obj.parent.pages[-1];
                        rightPageBounds = rightPage.bounds;
                        if(vb[1]>rightPageBounds[1]){
                                  pagerange.push(rightPage.name);
                        else if(vb[1]<leftPageBounds[1]){
                                  pagerange.push(leftPage.name);
              app.printPreferences.activePrinterPreset = app.printerPresets.itemByName("my printer preset");
              var oldPrintPrefs = doc.printPreferences.pageRange;
              doc.printPreferences.pageRange = pagerange.join(",");
              alert("Gone printing");
              app.print();
              doc.printPreferences.pageRange = oldPrintPrefs;
    main();

  • Hyperion Reports - Suppress based on Sub Var

    Hi,<BR><BR>I have a report with the time periods in the columns. Column [A], which is suppressed, is Sub Var $CurMnth. Column "B", which is suppressed, is a range of time periods (months). Column [C] is the sum of Column "B". I want to conditionally suppress Column [C] based on the value of the CurrMth Sub Var.<BR><BR> <BR><BR>So, IF CurMnth = Jul, then suppress Column [C]. I can't find a way to do this. Is it possible?<BR><BR> <BR><BR>Thanks.<BR><BR>

    <p>Well, if your value "Jul" does not changes, the youcan do conditional supressions.</p><p> </p><p>Suppose you column with sub var is colum a then use</p><p> </p><p>If data value in cell [a,1] is equal to data Jul, --> usethis condition for conditional supression.</p><p> </p><p> </p><p>I use something like this in my reports and it works fine.</p><p> </p><p>hope this helps !</p>

  • MDX SUB VAR ERROR

    Hi All,
    I'm trying to write a simple MDX formula, however when I try to use a SUB VAR in the formula I keep getting an error message. However, when I replace the Sub Var with the member name the SubVar is currently set to, it works.
    The formula is:
    1 - IIF (IS(QTR.CurrentMember, [Q1] ), [&q1hybcqw],0)
    The &q1hybcqw is set to a member from a different dimension to that stated in the IS(QTR.CurrentMember, [Q1] ). When I use the actual member it works, which give's the formula:
    2 - IIF (IS(QTR.CurrentMember, [Q1] ), [EOQ],0)
    The error in formula number 1 is "Error(1260046) - Unknown Member "EOQ" used in queryhybyrCQW" - note - "hybyrCQW" is the name of the member that contains the formula.

    In calc scripts, the substitution variable should have quotes around the member, even if it doesn't otherwise need them -- I don't know if this is the same case for MDX calcs though, but give it a try as it might be at least part of the answer.

Maybe you are looking for