Trigger jsxbin file using Vbscript

Hi,
I have tried the below code for run the jsxbin file under the Script Panel folder for InDesign CS6 using vbscript. The Indesign launch properly but the script does not execute. Also it is working fine in InDesign CS4 and CS5.
Set myInDesign = CreateObject("InDesign.Application.CS6")
myInDesign.MenuActions.Item("test.jsxbin").Invoke
Please provide the solution.
Thanks
Satish

set docXML = CreateObject("Microsoft.XMLDOM")
docXML.Async = False
docXML.Load(manifestName)
Set nodes = docXML.documentElement.selectNodes("//PACKAGE/APPLIST/APP/SHORTCUTLIST/SHORTCUT")
for each n in nodes
n.setAttribute "LOCATION", "%CSIDL_PROGRAMS%\App-V Applications"
Next
docXML.save(manifestName)
WSCRIPT.Echo manifestName &" got updated."
¯\_(ツ)_/¯

Similar Messages

  • Add a line to end of the file using VBscript

    HI
    I am working with a software that only accept Vb script commands.
    I have a file that has 8 columns. I need to add a line at the end of the file using VB script
    I need this line to add numbers of amount column and put 22 in 7th column and leave the rest empty.
    example:
    2.01E+13
    77008900
    9.88
    6/3/2013
    1/14/2014
    1/17/2014
    2.01E+13
    77008900
    66.07
    6/5/2013
    1/14/2014
    1/17/2014
    added line
    66.07+9.88=75.95                                               
    22
    the files have different number of rows. please help

    why in the word you think you are smart as the fact is that you don't know shit.
    I explained to you that the software has the ability to edit the file using VBscript. Now if you cant do it dont say that it makes no sense. because others already help me to solve this.
    do everyone a favor and don't answer my questions please, Well you never answered any, don't post any nonsense comments
    I am sorry but I don't think any of us can understand what you are trying to ask.  What software?  VBScript is a scripting language that you use to write a script.  It cannot modify a file that is open by another process.
    We posted the suggestion to look into using the FileSystemObject to append a line to a file.  The examples show you how to do this.
    I suspect that the real problem is that, since you don't speak English natively, we are not understanding what you are trying to ask.  I know that, for me, what you are asking doesn't make sense. Another guess is that you have a program that is able
    to use VB to do things.  Is that what you mean by "softwares".  Are you saying that another program is written in VBScript and you want to modify it?
    You have to clarify these things.
    ¯\_(ツ)_/¯

  • How to merge two columns in csv file using vbscript?

    How i can merge two column in csv file using vbscript or powershell?
    1  , 2  , 3  , 4  , 5
    1  , 23 ,  4 ,  5
    thanks

    Here are two examples
    http://msdn.microsoft.com/en-us/library/ms191250.aspx
    calulated
    http://msdn.microsoft.com/en-us/library/ms191250.aspx
    Gary Newman MCSE, MCT, CCNA, MCSD, MCPD, MCDBA, MCAD, MCSA, MCTS Developer and Administrator On SharePoint 2013 SharePoint Practice Manager for AmeriTeach Denver, CO.

  • Executing a transaction from IRPT file using VBscript in XMII

    Hi Everyone,
                        This is prasad .I want to execute a transcation from irpt file using  vbscript in XMII .Can any one help me on this will be helpful to me.
    Thanks,
    Prasad.

    Ram,
    JavaScript  is the main scripting language for MII pages, not VBscript. Even if you are using MII 12.0, you can view the MII Best Practices guide for more information on using JavaScript with MII. The link is [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f43a39-be98-2910-9d9c-a59785f44e41].
    Regards,
    Kevin

  • How to export data to an excel file using VBScript

    I'm trying to create a VBScript in DIAdem (V9.1) which automatically saves all the current channels in the data portal to an excel file. I've tried using 'Call ExcelExport' and specify a full file path but the file is never created. What am I doing wrong?
    Thanks,
    Steve

    Hi Steve,
    There are a couple of other things you can try. If you don't like Ingo's suggestion about multiple Excel STP files, your only real option is to create an ASCII file. Note that you can give the ASCII file an extension of *.CSV or even *.XLS, and Excel will read it right in.
    So the question boils down to how to format the ASCII export correctly and quickly.
    You can use the DAT file approach Ingo mentioned and even re-write the file with VBS to include a few header lines of your own choosing. Note that this approach does NOT support text channels. There is an example of this in the zip file attached below.
    You can alternatively use the CSV export function in DIAdem 9.1 to output an ASCII file with the name of each channel as the single header row above all the values. There is an example of this in the zip file attached below.
    You can also just read the values from the DIAdem channels and write them out to an ASCII file cell by cell, managing everything with VBScript calls. There is an example of this in the zip file attached below.
    I hope that helps,
    Brad Turpin
    DIAdem Product Support Engineer
    National Indstruments
    Attachments:
    DIAdem ASCII Export.zip ‏5 KB

  • Search the text file using vbscript.

    Hi I have some data in my text file. Below is the content. Now I need to search the file whether it contains identityType as ApplicationPoolIdentity. Any help in vbscript???
     name:"example"
     queueLength:"1000"
     autoStart:"true"
     enable32BitAppOnWin64:"false"
     managedRuntimeVersion:"v2.0"
     managedRuntimeLoader:"webengine4.dll"
     enableConfigurationOverride:"true"
     managedPipelineMode:"Integrated"
     CLRConfigFile:""
     passAnonymousToken:"true"
     startMode:"OnDemand"
     [processModel]
       identityType:"ApplicationPoolIdentity"
       userName:""
       password:""
       loadUserProfile:"false"

    ok my solution is below,
    CONST ForReading = 1
    Dim File1
    Dim FileToRead
    Dim strLine
    Dim infoResult
    Dim strDir, objFile, returnvalue
    strDir = "C:\Scripts\"
    File1 = "sample.txt"
    FileToRead = strDir & File1
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile(FileToRead, ForReading)
    Do Until objFile.AtEndOfStream
        strLine = objFile.ReadLine
            if instr(strLine, "identityType") <> 0 then
              if instr(strLine, "LocalSystem") <> 0 then
                    infoResult = "Found"
                    exit do
                end if
            else
                infoResult = "Not Found"
            end if
    Loop
    objFile.Close
     Wscript.Echo infoResult    
    Set objFSO = Nothing
    Set objFile = Nothing

  • Create Fiat File Using Trigger in SQL Server

    Dear All,
        How to Create a Flat File using Trigger in SQL Server?

    Take a look at osql/sqlcmd, bcp, COM calls, xp_cmdshell, etc.  Here are a few links with code examples:
    https://www.simple-talk.com/sql/t-sql-programming/reading-and-writing-files-in-sql-server-using-t-sql/
    http://www.nigelrivett.net/SQLTsql/WriteTextFile.html
    http://stackoverflow.com/questions/8132663/creating-a-text-file-on-local-machine-using-sql-server-2008
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using jsxbin files in a Photoshop extension

    I have seen that jsx files can be converted to jsxbin files which hide the source from the user. Is it possible to use such jsxbin files in a Photoshop extension?
    If yes, how would one go about converting a jsx file to a jsxbin file?
    Thanks!

    No, it's as safe as we can get:
    @JSXBIN@ES@[email protected]hOhQ
    iAiNjZiCjCjZiCjOhQiBiKiKiIjOiBiTjaiCjKiYiCjZiCiOjZiCjOiBiNiIjCjZiCjOhQiBiCiaiJj
    OiBiFiYjaiIjKiYjKiTjKiKjKiVjKiGjKiNjKiPiDjGjKjaiCjIiFKiEjGiSiCiWjaiEjKiVjKiZjKi
    ViFjGiBjGjGiBiCiFhUhQiCjIiBiChQiBjaiBiGiDiKjOjGjGiKiMjOiBiTjaiEjKiEjIiTjKiViHjZ
    iCiOjZiCjOiBiNiMjCjZiCjOhQiBiCiaiNjOiBiFiYjaiPjKiEjKiJKjKiCjKiTjJiKjJiFjJiVjKiQ
    jJiVjKiajKiRjKiGjJiKjJiFiIjGjKjaiEjKiCjKiRjKiRiJjGiSiCiWjaiHjKiEjKiJjKiCjKiTjJi
    KjJiFiKjGiBjGjGiBiCiKhUhQiCjIiBiChQiBiGiDiOjOjGjGiKiQjOKiBiTjaiEjKiUjIiTjKiViLj
    ZiCiOjZiCjOiBiNiQjCjZiCjOhQiBiCiaiRjOiBiFiYjaiRjKiUjKiVjKiTjKiKjKiPjKiIjJiKjJiF
    jJiVjKiQjJiVjKiajKiRjKiGjJiKjJiFiMjGjKiJjGiSiCiWjaiJjKiUKjKiVjKiTjKiKjKiPjKiIjJ
    iKjJiFiNjGiBjGjGiBiCiNhUhQiCjIiBiChQiBiGiDiSjOjGjGiKiUjOiBiTjaiEjKiVjIiTjKiUiOj
    Some smart people claims that is a proprietary flavor of Base64 encoding that isn't impossible to break, but there's plenty of people asking (if you google that) and no actual answers. Thanks god ;-)
    I've spent some time myself trying to reverse-engineer it (which in theory is totally doable, since you have infinite input/output: try something, encode it, try something different, encode it, etc); I even got some results! It's a nice exercise in cryptography, but either I am a really bad cryptographer, or I'm easy bored. If you're really motivated you can extract some var name or the like, but nothing very much complex.
    So it's kind of imperfect-state-of-the-art, which everybody is using.
    Totally different from YUI Compressor, Google Closure, etc. (which as I said are risky when Extendscript is involved)
    Regards,
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • How to trigger an audio file using midi...

    I'm trying to use the Apple AU Audio File Player to play a 10 second track that's an intro to one of our songs, but the only things that show up under the Parameter Mappings for that channel (the one that the AU Audio File Player is assigned to) are MIDI notes, and none of the midi notes trigger playing the audio file. Is there something I'm missing? Is there any way in Main Stage to play an audio file using a midi trigger?

    seems not a good question

  • How to run batch file using trigger?

    Hi, i am trying run a batch file using a trigger on a table.
    say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
    the values of col_2 keeps changing and col_1 are constant
    whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
    i did some searching but couldn't find any solution. Thanks in advance
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

    >
    the script will be started around 60-70 times a day
    >
    No - as marwim said the script will be executed every time the trigger is fired. And that trigger, depending on how it is written, might be fired several times for the same transaction.
    And if the trigger is fired the script will be executed even if the transaction that caused the trigger to fire issues a ROLLBACK.
    Triggers are non-transactional. You need to clearly define the business rules for when the script should run. Should it run only when the transaction is COMMITTED? Or should it run if the transaction executes even if the transaction performs a ROLLBACK?
    A trigger is the wrong solution for your problem.
    Please clarify what the business rules are that should control the execution of the script.

  • How do I get the number of channels available in DIAdem using VBScript?

    I want to know the last number of the available channels in DIAdem-DATA using VBScript. If there are not enough channels, I'll allocate new ones using ChnAlloc.
    For the first run of the script, I do know there're 60 channels, but in a second run I might have created the additional channels already (if the script didn't fail) and I don't want to do the allocation a second time. So I need to know the number of the last channel. Unfortunatly I didn't find any function in the help providing this number.
    Thanks,
    Carsten

    Hi Carsten,
    I have a few thoughts for you plus some useful code. Bear in mind that you can change the number of static DIAdem channels (by default 60 of length 8192) as well as the number of available dynamic channels (by default 1000) to whatever you want. These memory matrix settings get stored in your Desktop.DDD file (DIAdem's ini file), so that each time you launch DIAdem it will create the channels according to your specifications. The maximum number of channels of all types that DIAdem can have is 65536 (2^16).
    Secondly, don't forget that you can address channels by name or by number. If the channels are named distinctly, addressing channels by name is the most reliable method. If you use ChnAlloc() to allocate new channels, and you want to address those new channels by channel number, you MUST use CNo() immediately after creating the new channel in order to find out that channel's number. It will not always be the next available channel number, because the next available channel may not be long enough. ChnAlloc() will latch on to an existing channel if it can find one long enough, and it will create new channels only if it finds none of the existing channels suitable.
    In the VBScript I attached to this email you will find all the DIAdem variables which contain information about the maximum available channels and the maximum length of each channel (not its currently set length). Note that DIAdem's data matrix is divided into 8 submatrices, each with 2 GBytes of addressable memory (2^31 Bytes). Each submatrix can have multiple static channels assigned to it. DIAdem's dynamic channels come first from DIAdem's application RAM (Windows allocates no more than 2 GBytes per application) then from the Windows swap file for its virtual memory
    Now, in addition to the variables which tell you the maximum possible channel count and lengths, another very useful variable is "GlobUsedChn", which returns the highest channel number currently filled with some amount of data.
    Ask if you have additional questions,
    Brad Turpin
    NI
    Attachments:
    View_DataMatrix.VBS ‏2 KB

  • How to run a batch file using tigger....

    Hi, i am trying run a batch file using a trigger on a table.
    say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
    the values of col_2 keeps changing and col_1 are constant
    whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
    i did some searching but couldn't find any solution. Thanks in advance
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    sorry wrong foum to post.
    will post in the correct one
    how to run batch file using trigger?

    Hallo,
    welcome to the forum.
    This is the forum for the tool {forum:id=260}. Your question should be placed in {forum:id=75} or {forum:id=61}.
    When you post your question there please provide additional information like db version, what kind of trigger you want to use, how you want to prevent the execution when the transaction is rolled back... {message:id=9360002}
    Regards
    Marcus

  • SOAP to FILE using BPM to catch exception and save error into the table

    Hi All
    My scenario SOAP to FILE using BPB is working fine but now I have a requirement to catch an exception if something wrong happened on a runtime and save it into the tracking table, is that possible, if it is please point me to the similar step by step scenario.
    Thanks in advince,
    Yonela

    Yonela:
    As your original requirement is to save the eorr data into your database table, however, you was mis-leaded to alerting field.
    You are using BPM now, then that is the reason that I suggested to use excpetion branch.
    It does not matter SOAP to File seneario, it does not have to be SAP - RFC scenario, your BPM willl interact with database system.
    First you have block which include all the steps that possible generate exception: like Transformation step, and your final Aync send step (which will send data to file).
    Secondly, define a exception handler for that block.
    3. Modify each steps that posssible generate exception: e.g. transformation step, send step, add exception handler to them.
    4. Create exception branch in side the block
    5. Add another send step inside your exception branch, which will call RFC, RFC will write data to your table.
    6. If you want, you can add a control step in exception branch to trigger a alert, or terminate current process.
    At run time, any steps that trigger exeption,will cause your exception branch executed, and RFC will be called to insert data into your database table.
    Regards
    Liang

  • How to unpin default apps from the Start Screen using vbscript

    Hi,
    I am looking for a way to programmatically unpin apps using vbscript from the Windows 8 Start Screen. I need to unpin SkyDrive, People, Calendar and messaging. I have been searching for a couple of days but I'm coming up with nothing so far.
    I know how to pin my own choices of installed apps using vbscript but I can't figure out how to unpin the default apps.
    Thanks,
    Rob

    Some thoughts:
    I started to investigate the many ways to manage the Metro start menu.  There are APIs but none are exposed to batch or VBScript.
    1.  Programs are installed into the 'All User' start menu, defult users profile start menu and a set of global links can be defined for metro.  THis is almost identical to ll previous versions except for the linking process which sets up the defaults. 
    If we install Office 20133 it will, if we choose, show up in all user start menu.  Each user can then unpin this. 
    2. There is a file (binary) that keeps track of the Metro settings.  It seems to only be changeable via the API or by using the shell 'pin/unpin' verbs.
    3.  This behavior I identical to XP and other systems with the exception of how it is stored and in that you cannot remove items from the sztart menu prior to Windows 8.
    4. The default user profile can be customized and stored on the network so that it affects every system.
    5. The "All Users" 'profile' can only be customized after a program is installed or by altering the programs installer.
    What you are trying to do runs counter to all Windows design since the first version of Windows.  We have NEVER been able to alter the start menu from script in such a way that a user could just add the item back in.  Your request seems to be incongruous
    to the design of Windows.
    Now don't get me wrong.  What you are asking is partially possible but you need to alter the Windows image so that the All users profile does not propagate the shortcuts.  You can do this by just deleting them.  You need to delete them before
    a user account is generated on the box. Delete them in the image. You can do this with MDT.  The shortcuts will not propagate to the user.  The user can still search for an app and add it to the start menu.
    There may be a better way to set this up but I cannot see how without using the API.
    ¯\_(ツ)_/¯

  • Merging files in VBscript

    Hello, all.
    I have a question regarding using VBscript and using the adobe acrobat SDK. I'm fairly new at using it, so I'm sure i'm missing something important. I have acrobat 9 pro installed, and I've read over the API documentation and I have set up the following code:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    call main
    sub main
        Dim app
        Set app = CreateObject("AcroExch.App") 
        Dim srcDoc, destDoc
        Set srcDoc = CreateObject("AcroExch.PDDoc")
        Set destDoc = CreateObject("AcroExch.PDDoc") 
        dim test, test2
        srcPath = "C:\1.pdf"
        srcPath2 = "C:\2.pdf"
        destPath = "C:\3.pdf"
        test = destDoc.Create
        if test = -1 then
            srcDoc.Open srcPath
            destDoc.InsertPages -1, srcDoc, 0, srcDoc.GetNumPages(), 1
            srcDoc.close
            srcDoc.Open srcPath2
            destDoc.InsertPages -1, srcDoc, 0, srcDoc.GetNumPages(), 1
            destDoc.Save PDSaveFull, destPath
        end if
        srcDoc.Close
        destDoc.Close
        app.Exit
    end sub
    The code functions without error, however, the destDoc.save doesn't actually save anything. It even returns true as if it saved correctly, but the pdf file is just not there (in "C:\3.pdf"). I checked on the page count of destDoc before saving and it has the correct number of pages (a combined amount from 1 and 2) so i assume it merged the two documents successfully. Does anyone know why this would be? Also, sorry if this is in the wrong section, i wasnt sure if this should go here or in the acrobat scripting forum.
    Thanks in advance!

    Simple merge VBS.
    For a little bit more look at: https://groups.google.com/group/adobe.acrobat.sdk/browse_thread/thread/6842ae988adee7c5/1e 8301171db34aa8?hl=de&lnk=gst&q=Reinhard%2BInsert#1e8301171db34aa8
    HTH, Reinhard
    merge.vbs
    call main
    sub main
        Dim app
        Set app = CreateObject("AcroExch.App") 
        Set baseDoc = CreateObject("AcroExch.PDDoc")
        Set insertDoc = CreateObject("AcroExch.PDDoc") 
        srcPath = "C:\file01.pdf"
        srcPath2 = "C:\file02.pdf"
        destPath = "C:\file03.pdf"
        baseDoc.Open srcPath
        insertDoc.open srcPath2
        baseDoc.InsertPages -1, insertDoc, 0, baseDoc.GetNumPages(), 1
        baseDoc.Save &H1, destPath
        app.CloseAllDocs
        app.Exit
    end sub

Maybe you are looking for

  • Everything in my iTunes has disappeared, how do I get it back?

    Basically, I went into my iTunes to discover that everything (Music, TV Shows, Films etc.) has disappeared. I have regretingly not back up my files, therefore I am asking if anyone knows how to get my files back?

  • Loss of App Grouping

    My iPad has completely lost the app grouping I setup...again.  I had to group apps manually and loss of this grouping (a very time consuming effort) is a major point of frustration.  Does anyone know is the iPad support "Smart Folders" or any other m

  • Restoring wine menu in KDE [SOLVED]

    Hi, i'm using KDE 4.4.1 and wine. Before i decided to clean up mess in KDE menu, all wine installed menu items were under "lost and found" As http://wiki.archlinux.org/index.php/Win … Fix.5B1.5D states, i have edited /etc/xdg/menus/kde-applications.m

  • Error when trying to open

    I am trying to open an after effectrs project like so app.open(aep); where the variable aep is a file object that was aquired using getFiles on a folder object.  I get the followeing error how can the path not be valid...I never entered a path, I sup

  • BT Infinity 8 day sync requirement!!

    Hello There, Just had BT Infinity installed and the install went through smoothly however the engineer said he was experiencing errors on the line. DUring this stage I was busy running a broadband speed test and was getting 12mb/s down and 8mb/s up o