New to Scripting

Hi all, I'm new to scripting and wondered if there was a way to select a certain layer out of three that were present?
Any info would be great,
Cheers,
-Ford

Ok, Just to make my question a little clearer, Can anyone tell me a way to add to a script a way to select a layer and everything in that layer by using the current layer selected as a reference, Select the next or previous layer basically.

Similar Messages

  • (new to scripting) Only allow certain paragraph styles to break to next column/page

    Hi all,
    As stated, I'm very new to scripting. I've done a few small scripts to automate Photoshop tasks and such. I'm in the process of trying to learn Javascript as much as possible, with the hope of bringing about more efficiency for our small production department. It's a daunting task, but I'm trying my darnedest.
    One of the number one goals I have is the find a way to automate pagination of weekly transaction records. These records run between 32 to 48 pages normally, with each page having 5 columns. Creation of these pages is very systematic, so it would seem that this process should be able to be automated, but there are some challenges I'm having a hard time thinking about how to attack.
    One of the key tasks needing to be figured out is getting the records to go in with headings and subheadings always starting at the top of a page/column. Just about all the copy comes in with predetermined paragraph styles, so a script should easily be able to search for instances of each style. What needs to eb accomplished is only allowing the flow of copy to break on certain styles and not others ... (counties, towns, etc.)
    For example: if you have the following  ...
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    If the two records above were to fall near the end of a column, the break to the next column should NOT occur anywhere except:
    - Before the county (causing the county to start at the top of the next column
    - Before the second town (Dystopia Village, forcing that town to the top of the next column)
    - After both (forcing whatever town/county is next to goto the top of the next column)
    So basically, I need to find a way PREVENT column breaks where they should not occur. Inserting column breaks is one thing (I know how to do that). Prevention is the issue though that confounds me.
    Does anyone have any thoughts of how to achieve such a thing? I know there are "non-breaking space" characters ... is there, or could there be, some kind of a "non-breaking return" character? Or would it be more feasible to test for the paragraph style at the bottoms of columns and insert column breaks in once it finds an appropriate match?
    Am I going about this all wrong?
    Again, any help or suggestions are more than welcome.
    Thanks much.
    ~Nate
    FYI .. using InDesign cs5.5

    I am now wondering about a possible solution. It would be one hell of a challenge for me to figure out how to code it, but I at least need to figure out the theory first, then I'll try to figure out how to code it.
    Again, the issue at hand is preventing column breaks for the "listing" style in the following example. Please note, the number of "listing" lines varies. If the following two entries (in a long list of similar entries) were to be near the end of a column, I'm trying to cause the flow of text to break only before a county style, or a town style (if it's not the first town in the county).  Basically, no breaks in the middle of listings.
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Naomi previously suggested messing with the "keep options" in the styles. This will solve the issue of preventing breaks before listing details start. But it won't help in keeping listing details from breaking, since the number of lines can vary.
    I'm now thinking ... might it be possible to have a script search all copy, looking for the last line of listings, and then apply a second listing style with a different keep option setting? The "normal listing" style would "keep next 1 line". The "last listing" style would not, therefore, allowing a break.
    Here's a map of what I'm thinking: (bear with me on the terrible syntax, this is just for illustrative purposes)
    listingNormal has keep with next 1 line applied
    listingBreak does not keep with next line
    if currentLineStyle == listingNormal
    AND
    style of next line != listingNormal {
    currentLineStyle = listingBreak
    Does this make sense? If so, does this sound feasible?
    Thanks any and all.
    ~Nate

  • Looking to set the result of a variable based on the content of another (new to scripts)

    Hi,
    I'm new to scripts, new to acrobat forms to be honest, so be gentle with me
    I have a text field Acc1pnt which can accept either Y or N as an entry. Based on the answer, text field Acc1snd would always be N/A if the result of Acc1pnt is N. I'm looking for a script that will add N/A to the second text field and skip over it (make read only?) if the answer to the first field is N.
    Sorry if I'm making this look like hard work. Basically a check is made as to whether an accessory is received and, if it is, whether it is 'sound' or 'damaged'. Obviously if it isn't received then it's condition is irrelevant hence N/A in the senond text field.
    Also, is there something simple I can add to convert an entry to a capital letter?
    Thanks in advance
    Cliff

    Hi Gilad
    I've shied away from radio buttons as the users are used to tabbing through the fields and 'clicking' a radio button would mean taking their hands from the keyboard, I will certainly consider it though.
    Acc1snd (the 2nd variable) should be editable ONLY if the answer to Acc1pnt (the 1st variable) is Y. If the value of the 1st variable is N then Acc1snd can only be N/A (not applicable) and should not be editable.
    Obviously if the user makes an initial mistake and needs to change the value of the 1st variable to Y then the 2nd variable would then need to be editable.
    I will run through the tutorials this evening

  • I am new to scripting & I need Script for Document color mode

    Hi,
    Please help me to create a script which should find the Document color mode. I am new to scripting. And please let me know how to use the same.
    Balaji

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • Anyone tried the new Weblogic Scripting Tool (WLST)?

    Has anyone tried using the new WebLogic Scripting Tool (WLST) that was recently
    posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
    It looks to be a handy tool that is built upon jython and enables you to easily
    navigate, inspect and manipulate the WebLogic MBean tree on a running server.
    It also has a nice scripting tool which allows you to convert a config.xml file
    into a script that can be run to recreate a domain or specific resources within
    the domain. This is exactly something I have been looking for because we occasionally
    recreate domains or subsets of a domain for testing and POC purposes.
    The utility is fairly well documented and works well for the most part. The only
    issue I have run into so far is that is does not seem to understand JMS Distributed
    Destinations. When I try to convert a config.xml that contains a DD to a script
    it throws a null pointer exception. I have not tried a cluster yet.
    I noticed the utility was authored by someone at BEA. Is there potential that
    BEA will support this in the future if it catches on? Has anyone had experience
    with WLST or jython that would cause you to reccomend (or not) using it?
    Thanks.

    Darryl,
    Thanks for the valuable feedback. My comments are inline.
    Darryl Stoflet wrote:
    As a fairly long time wlshell user who recently started testing wlst there are
    few features I have found lacking in wlst.
    1. For monitoring purposes I am frequently using the -g and -r options to wlshell's
    get command for graphing and repeating respectivelyI haven't looked at -g and -r options in wlshell, but will do so.
    Although there is no graphical monitoring of attributes in wlst, but
    there is certainly some monitoring capability (which will be enhanced
    further in the coming version). Please take a look at the
    monitorAttribute() function.
    wls:/(offline)> help('monitorAttribute')
    Description:
    Monitors the specified attribute every by polling every interval.
    Syntax:
    monitorAttribute(attributeName, interval, monitorFile)
    attributeName = Name of the attribue that you would like to monitor.
    interval = Time (in seconds) to wait before the next fetch
    monitorFile=[optional] File path where the monitored data will be
    written to.
    Example:
    wls:/mydomain/runtime/ServerRuntimes/myserver/ExecuteQueueRuntimes/weblogic.kernel.Default>
    monitorAttribute("ServicedRequestTotalCount",10)
    Press Return to quit monitoring
    Monitoring started for attribute ServicedRequestTotalCount
    wls:/(offline)>
    >
    2. wlshell 2.0 adds the option when connecting to the admin server to also connect
    to all managed servers in that domain. This is a nice feature for monitoring because
    you then have access to all the runtime mbeans in each managed serverYes, this indeed seems to be a very nice feature. We will consider this
    for our next release.
    >
    3. There is not a good way to pass cmd line options(variables) to wlst. In wlshell
    I can send cmd line options via -v. I have tried something similar with wlst using
    -loadProperties but this is a little laborious because I do not necessarily want
    to create a properties file when a passing in only one or two variables. Also
    I find loadProperties lacking somewhat (see 4 below)ok, I just realised that there is indeed a bug in wlst where the command
    line arguments are not being honored. In Jython one can access the
    command line arguments from the sys.argv variable. For example,
    java weblogic.WLST -i foo.py var1 var2 var3
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to Weblogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> print sys.argv
    ['foo.py', 'var1', 'var2', 'var3']
    wls:/offline>
    But this isn't working properly, please keep using the loadProperties
    untill this has been fixed.
    >
    4) loadProperties treats all created variables as strings. While this is understandable
    from the perspective that getProperty returns a string, it would be nice if wlst
    was smart enough that when a property is numbers only its an int, otherwise a
    string etc.
    wlshell does this logic/conversion for you which really simplifies calling methods
    that expect the particular datatype. To get around this problem you can create a script file say,
    variables.py which would look like,
    # variables that will be used
    theInterpreter.set('var1',10)
    theInterpreter.set('var2','i am a string')
    java weblogic.WLST variables.py
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to Weblogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/(offline)> print var1
    10
    wls:/(offline)> print var2
    'i am a string'
    >
    5. I'd like to be able to send cmd output etc to a file while running within wlst.
    In wlshell its a simple as adding >> filename to the end of the command. In wlst it is not as simple as doing >>, it is more than that. You can
    choose any output stream to direct your output to. In your case you can
    create a FileOutputStream and route the output to this stream for any
    particular command.
    Example,
    # create a file output stream say fos
    from java.io import FileOutputStream
    fos = FileOutputStream("output.txt")
    # save the default output stream to a variable to
    # switch it back
    sys.stdout=fos
    # Now all output for any function will go to output.txt
    ls()
    cd('foo')
    # after done with your functions switch it back
    sys.stdout=origOutput
    This is the right Jython way to do it. This works for all output streams
    , very useful when you embed an interpreter in a servlet and would like
    to display the output via a PrintStream etc.
    >
    >
    All in all wlst is a nice tool. Personally if the above features were added it
    would be much easier to transistion to wlst for good.
    Also I really like the wlst offline tool. Its nice to be able to do the whole
    create and configure domain process with one tool. Will this be supported. Yes indeed. We are working on merging both the tools into one.
    I do
    not want to rely on it too much if it will not work in future weblogic versions.It will be supported in future release of weblogic.
    Thanks,
    -satya
    >
    Thanks,
    Darryl
    "Steve Hess" <[email protected]> wrote:
    Hello,
    I am the BEA Product Manager behind WLST.
    WLST, as it appears today on dev2dev, is an early release version of
    a tool that
    BEA does intend to support as part of our next major release. We decided
    to issue
    early versions of the tool because of the demand for a supported scripting
    solution,
    and to generate feedback from our user community. I encourage you to
    work with
    WLST, and assure you that this tool represents our current direction
    in management
    scripting.
    Also note, this newsgroup can be used to issue questions, concerns and
    feedback
    about WLST. The engineering and PM team will monitor this group and
    respond to
    your questions as quickly as we can. While we will not be able to respond
    to
    every feature request, we really value your suggestions, and will endeavor
    to
    improve the tool in ways that meet your real-world needs.
    Cheers,
    Steve Hess
    Director, WLS PM
    "George Lupanoff" <[email protected]> wrote:
    Has anyone tried using the new WebLogic Scripting Tool (WLST) that was
    recently
    posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
    It looks to be a handy tool that is built upon jython and enables you
    to easily
    navigate, inspect and manipulate the WebLogic MBean tree on a running
    server.
    It also has a nice scripting tool which allows you to convert a config.xml
    file
    into a script that can be run to recreate a domain or specific resources
    within
    the domain. This is exactly something I have been looking for because
    we occasionally
    recreate domains or subsets of a domain for testing and POC purposes.
    The utility is fairly well documented and works well for the most part.
    The only
    issue I have run into so far is that is does not seem to understandJMS
    Distributed
    Destinations. When I try to convert a config.xml that contains a DDto
    a script
    it throws a null pointer exception. I have not tried a cluster yet.
    I noticed the utility was authored by someone at BEA. Is there potential
    that
    BEA will support this in the future if it catches on? Has anyone had
    experience
    with WLST or jython that would cause you to reccomend (or not) using
    it?
    Thanks.

  • ACL rights assignment in new user script

    I've been tasked with converting an old new-user script that runs at least once a day written in VB to PowerShell. This script takes as input a CSV file we get from HR that has all necessary info and creates a user, adds them to specific groups based on
    the info in the CSV, enables their Exchange mailbox, and creates their home directory. I'm having a bit of trouble planning out the rights assignment part on the user home directory; I need to be able to add the specific user (set by variable at the beginning
    of the script) and three static groups. What is the best way to do that? I can easily grab outside modules if needed (a section of my script checks for and if necessary installs modules and adds snap-ins), but I'd rather keep this 100% PowerShell - no icacls
    or outside commands.
    Any suggestions?
    Thank you in advance.
    [email protected]

    Here's what I came up with for the File System Stuff:
    foreach ($user in $userlist)
    $samaccountname = $user.empid
    $FQN = "domain\" + $samaccountname
    $homedirpath = "\\fileserver\users\$samaccountname"
    new-item -ItemType directory -path $homedirpath -force
    #Set ACLs for user and required groups
    $homedir_acl = get-acl $homedirpath
    $acl_access1 = 'domain\HomeDirectory Admins'
    $acl_access2 = "domain\$samaccountname"
    $fullrights = "Fullcontrol"
    $modifyrights = "Modify"
    $inheritrights = "ContainerInherit,ObjectInherit"
    $rule1 = new-object system.security.accesscontrol.filesystemaccessrule ($acl_access1, $fullrights, $inheritrights, "none", "Allow")
    $rule2 = new-object system.security.accesscontrol.filesystemaccessrule ($acl_access2, $modifyrights, $inheritrights, "none", "Allow")
    $homedir_acl.addAccessRule($rule1)
    set-acl $homedirpath $homedir_acl
    $homedir_acl.addAccessRule($rule2)
    set-acl $homedirpath $homedir_acl
    #Set owner on home directory
    $owner = New-Object System.Security.Principal.NTAccount($FQN)
    $homedir_acl.setowner($owner)
    set-acl $homedirpath $homedir_acl
    [email protected]

  • Create a New Calc Script from VB.

    Does anyone know how to create a calc script using the VB Essbase API? We are going thru a large modification. Most of our calc scripts are stored on an oracle database. The idea is to send the stored scripts to a text file and then using the essbase api to create new calc scripts based on the the text files. Any help or ideas would be appreciated.Thanks

    This shouldn't be too difficult. You should be able to either read your existing script straight from your Oracle database using ODBC & ADO Recordset or from a test file using a scripting.filesystemobject and then make any changes using the VB code. Then use either the EsbBeginCalc/EsbSendString/EsbEndCalc or EsbCalc functions in the VB API to run them. I've used this sort of approach in the past to allow users to substitute specific members into 'template' calc scripts at runtime. Hope this helps.Mark Rixon www.analitica.co.uk

  • Opening OA page in new java script window from ProcessRequest method

    I wish to open new OA page in new java script window.
    Code is
    javascript:var help_win = window.open(strHelpDesk,'help_win',
    'resizable=yes,scrollbars=yes,toolbar=yes,width=600,height=500'); help_win.focus();
    strHelpDesk is the url of the requested new OA page .. How can we open that page in new window from processRequest .. I can't assign this code in pages's attribute ... The new Oa page should be opened whenever , control goes in Processrequest ... Do we have such command ? can we use pagecontext.redirectImmediately..or any other command ..
    thx in advance

    Yes, you can, what you need to do is
    add a raw text bean in your page.
    Attach this raw text bean to a transient attribute (column) of VO
    populate this column with your javascript function which will open a new window and inlcude its call here
    now whenyour page will render and process request is called ur javascript function is triggered and a new window will be opened.I guess i am clear!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • All hyperlinks but one fixed with Decode-new.jsx script

    Hi,
    I'm creating a course calendar for work and I have created registration icons that direct the user to a mailto: email link where I define the subject and the default body text in the email for every course. I have over 100 of these icon links and run the Decode-New.jsx script frequently to fix any of the hyperlink bug issues that happen in older versions of InDesign (I'm running on CS 6 but run on CC on my own personal system).
    The script fixes all but one of my mailto: links. I get the following error when I run the script:
    I've deleted the icon and recreated a new one and relinked the mailto and it didn't work. Then I copied and pasted an existing linked icon that does work and edited the mailto: to have the properties that I need....and that still didn't work. Then I saved the document and restarted my InDesign all together and did the 2 above steps again....and still nothing. I'm literally pasting in the exact same information of the mailto: url as in the other working links and just editing the subject title properties and it's just not working. I'm stumped.
    It would be ridiculous and bad UI to have all but 1 email registration link have predefined properties for the subject and body text. Any solutions?

    Any help would be appreciated. Outside of using script, I know my way around InDesign so I feel like I've exhausted every solution other than uninstalling and installing Indesign again, which is just too long of a process as I don't have administrative rights at work.

  • Uable to access active page / new to scripting (AS)

    tell application "Adobe InDesign CS5.5"
        tell active document
            make graphic line with properties {geometric bounds:{Watch2, Watch3, Watch4, Watch1}, flip:vertical, applied object style:"Crossout"}
        end tell
    end tell
    Hi,
    i need to write a script which draws a line before a selected text. So far, i have the x1/y1 + x2/y2 coordinates narrowed down (left it out in the code to keep the question simple), and this works fine by now.
    But:
    I need to draw the line just onto the selected text, e.g. the active textbox. When i do it this way (because im not so talented at scripting), the line gets created on page 1, but should alway land over the current textbox.
    Can someone help me out?
    While you guys are on it:
    • A next question if this works out would be, how to "group" the line together with that textbox behind?
    • And: The textbox could contain more items than one that get "crossed out", so all lines should group together. (Not that if I want to break a textbox with 5 lines, that i have 5 "housed" groups of lines)
    Heres a picture for what I need theses lines:

    Good morning,
    here we go further
    at the start having a group selected -> create a new page item -> using UI-Scripting to ungroup the group -> creating a new group storing all involved page items
    tell application "Adobe InDesign CS5.5"
        tell active document
            --get selection = group
            set currGroup to item 1 of selection
            --get page of currGroup
            set currPage to parent page of currGroup
            --get Bounds ...
            set currBounds to geometric bounds of currGroup
            --create line
            set theLine to make graphic line at currPage
            set anchor of path point 1 of path 1 of theLine to {item 2 of currBounds, item 3 of currBounds}
            set anchor of path point 2 of path 1 of theLine to {item 4 of currBounds, item 1 of currBounds}
            --invoking the ungroup command has to be outside the document tellblock...
            my unGroupCommand(currGroup)
            --page items still selected, store them in a array
            set currSel to selection
            --add theLine to currSell
            set end of currSel to theLine
            --make new group
            make group with properties {group items:currSel}
        end tell
    end tell
    on unGroupCommand(aGroup)
        tell application "Adobe InDesign CS5.5"
            set ungroupMenuAction to menu action id 118845
            invoke ungroupMenuAction
        end tell
    end unGroupCommand
    How to get parent page of textselection:
    tell application "Adobe InDesign CS5.5"
        tell active document
            --some text selected
            set currSel to object reference of item 1 of selection --class of selection is always list
            set parentTextFrame to item 1 of (parent text frames of currSel) --class of parent text frames is always list
            set parentPage to parent page of parentTextFrame
        end tell
    end tell
    stay strong, keep working on it!
    Hans-Gerd Claßen

  • How to deal with new Font script ?

    Hi,
    Can somebody explain me how the new JavaFX Font script works ?
    i.e. in preview SDK I wrote :
    var font:Font = Font { style:FontStyle.BOLD }
    which means : use the "default" font, with BOLD style, and default size.
    As the Font "style" attribute disappeared (why ???), what must I use in JavaFX 1.0 ?
    Thanks
    Bernard

    Hi,
    You can set bold text using this constructor of Font:
    public font(family: java.lang.String, weight: FontWeight, posture: FontPosture, size: Number) : Font ( [http://java.sun.com/javafx/1/docs/api/javafx.scene.text/javafx.scene.text.Font.html|http://java.sun.com/javafx/1/docs/api/javafx.scene.text/javafx.scene.text.Font.html] )
    example:
    Text
         font: Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR , 24);
         content: "HelloWorld";
    }or as a variable:
    var font:Font = Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR , 24);

  • RSS News Reader script?

    After overcoming the stuff in "rookie needs help", I now have the entire site ready to go. I'm under an agreement not to show the content publicly until my client approves it, so apologies for not posting a link.
    FWIW, this is a project directly related to the paperless electonic voting controversy, and the upcoming election (which we all anticipate to be an immense crisis - they should have solved this paper trail **** months ago), so all help is appreciated by more than just me - this one's for all of us. The site is likely to become a high-profile destination as November approaches.
    I need to read a newsfeed from another related site. However, the ability to install code on the site I'm presently building is limited to what I can put into the immediate web. The site is hosted on an ASP (application service provider), and I'm uncertain what the sysadmin will welcome beyond that.
    I have an ASP script that reads the newsfeed. It is demonstrated here:
    http://www.gbdg.net/clay/index_vu.asp
    What I am looking for, if such exists, is a similar JSP script. I am hoping this is simply a page I can install in my new site, and then execute via an include.
    Could someone please direct me to such a script, assuming this is possible? Or point me in the right direction?
    Thanks,
    Greg

    Yikes!
    I have a week before a mandatory launch, and this is one small aspect of what I need to do. I pray somone knows a script or such that I can download and install - the last thing I hope to do this week is to learn how to build a custom tag.
    Just as this page http://www.gbdg.net/clay/index_vu.asp reads content from http://www.votersunite.org/news-rss/index.xml and displays it in a formatted table, I can just as easily cause that box of news items to appear on the home page of a site - that page would also have other content. What I am looking for is a script that reads the XML newsfeed and displays it on a web page.
    Thanks
    FYI, here is the ASP RSS newsreader script that causes the above page to work:
    <%
    Dim objXML
    Dim objXSL
    Dim objFSO
    Dim strFile
    Dim strFileName
    Dim strXSL
    Dim strURL
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Dim fso, f
    ' File extension
    strFileName = "voters.xml"
    ' Format of current file e.g. 200160710cnn.xml
    strFile = Year(Now) & Month(now) & Day(now) & Hour(now) & strFileName
    ' Style sheet
    strXSL = "/includes/rss/rss.xsl"
    ' URL for XML Feed
    strURL = "http://www.votersunite.org/news-rss/index.xml"
    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    ' If a current file for this hour doesn't exist, then get a new one.
    If Not (objFSO.FileExists(Server.MapPath(strFile))) Then
         Set objXML = Server.CreateObject ("MSXML2.ServerXMLHTTP.4.0")
         objXML.Open "GET", strURL, False
         objXML.Send     
         xmlGet = objXML.responseText
         'strip out the crap to make it work...otherwise you will get a "The data necessary to complete this operation is not yet available." error.
         xmlGet = replace(xmlGet,"<!DOCTYPE rss PUBLIC ""-//Netscape Communications//DTD RSS 0.91//EN"" ""http://www.scripting.com/dtd/rss-0_91.dtd"">","")     
         ' Create new cnn XML file
         Set fso = CreateObject("Scripting.FileSystemObject")
         Set f = fso.OpenTextFile(Server.MapPath(strFile), ForWriting, True)
         f.Write xmlGet
         f.Close
         Set objXML = Nothing
         ' Now delete any older cnn files
         Set objFolder = objFSO.GetFolder(Server.MapPath("./"))
              For Each objFile in objFolder.Files
                   If (objFile.Name = strFile) or Instr(objFile, strFileName)=0 then
                   Else
                        objFSO.DeleteFile(Server.MapPath(objFile.Name))
                   End If
              Next
    End If
    Set objFSO = nothing
    ' Now load XML and XSL documents
    Set objXML = server.createobject("MSXML2.DOMDocument.4.0")
    Set objXSL = server.createobject("MSXML2.DOMDocument.4.0")
    objXML.load(Server.MapPath(strFile))
    objXSL.load(Server.MapPath(strXSL))
    Response.Write objXML.transformNode(objXSL)
    Set objXML = Nothing
    Set objXSL = Nothing
    %>
    RSS.xsl:
    <?xml version="1.0" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    - <xsl:template match="/">
    - <xsl:for-each select="rss/channel/item">
    - <xsl:if test="position() < 8">
    - <a>
    - <xsl:attribute name="href">
    <xsl:value-of select="link" />
    </xsl:attribute>
    <xsl:value-of select="title" />
    </a>
    - <xsl:if test="pubdate!=/">
    <xsl:value-of select="pubdate" />
    </xsl:if>
    <img src="/images/spacer.gif" alt="" width="10" height="6" border="0" />
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

  • New Tab script error prevents other functions from working. How do I remove "New Tab" content (sponsored links, etc)?

    I actually found the settings for it in the top right corner of the page, but figured I'd report it anyway.
    Basically, the New Tab Tiles have been causing script errors (prompt to stop script) that disable a few navigation controls, like being able to close a tab. Any tab that is open or opened after the script error will not close. I have to restart Firefox for the controls to start working again. I have found that the tiles that have been causing the problems are the one's that Firefox provides, as it still happens when my internet history is clear and not loading any tiles from my history.
    It doesn't happen every time, but it does happen regularly. I just changed my settings from "enhanced" to "classic" and will see if this helps, otherwise I will just turn it to blank if its still an issue.

    If it does happen there are other add ons that block scripts like No Script.
    However for script errors, general troubleshooting can be found: [[Warning Unresponsive script - What it means and how to fix it]]

  • New tool script to mass convert .flv to .avi files

    Just wanted to advertise the availability of a little bash script I wrote that will mass convert all .flv files to x264 encoded .avi files in a given directory with a single command.  This is useful for example if you you use have a number of youtube videos you wish to convert to x264 encoded video in the .avi container for playback later.
    I found the original script written by 3ED_0 in the AUR here which I adapted to run without arguments.  As such, it can be run on an entire directory of .flv files without user interaction.  It does this making use of mediainfo to determine the video and audio bitrates from the original files to pass on to the new files, and by some simple bash commands to handle filenames.
    Comments are welcome.
    Link to package in the AUR: http://aur.archlinux.org/packages.php?ID=35071

    You might try the following... I don't know if the movie would have the same characteristics or not.
    Canon Camcorder MPEG-4 ASF component
    http://www.canon-europe.com/Support/Patches/MPEG4_ASF/index.asp?ComponentID=1466 83&SourcePageID=26346
    http://downloadlibrary.usa.canon.com/cpr/software/video/mpeg4asf_osx10112.sit
    CanonMPEG4ASF.component
    Provides the following 'things':
    eat :726 :vASF "MPEG4 ASF Movie Importer"
    eat :ASF :vASF "MPEG4 ASF Movie Importer"
    eat :ASF_:vASF "MPEG4 ASF Movie Importer"
    eat :M4V :vASF "MPEG4 ASF Movie Importer"
    eat :m4AS:vASF "MPEG4 ASF Movie Importer"
    mhlr:aASF:CANO "MPEG4 ASF Audio Media Handler"
    mhlr:vASF:CANO "MPEG4 ASF Video Media Handler"
    It may also help if you are able to identify which video and audio encoding was used within the avi file...
    How to Identify the file*, video and audio** format of a movie or sound file
    In QuickTime Player
    Open the file
    Window menu > Show movie info
    Look in the Format: field
    Note that QuickTime Player may fail to display any audio information for some files.
    In MPlayer OSX
    Show the playlist window if it isn't already visible.
    Drag the movie file into the playlist window.
    Select the movie in the list
    Click the "i" button for info
    In VLC
    Open the movie in VLC
    Window menu > Info
    Click the black triangles so that they point down
    Note that VLC does not display the file format, only the format of the content (audio and video) within the file. A file ending in .divx for instance, is probably in actuality an avi file but VLC doesn't show that information - MPlayer will and QuickTime Player will - if - QuickTime Player will open the file to begin with.

  • My CS4 crashes when opening a new action script 3

    Hello folks,
    I’m new to Flash and am currently taking a class, so please forgive me if this turns out to be an obvious fix, but I’m using flash for the first time and have been trying to open a new flash file: action script 3 but haven’t been successful cause the program immediately crashes. I’ve checked to confirm that my laptop meets the requirements so I’m not sure what it could be.
    …Any suggestions? I’ve attached the error reports.
    Thanks for your time.
    signed,
    Hopelessly untech savy

    Thanks for the reply Ned. It does crash when opening AC2 also. And I do have the most current updates. Correction: it does open under "guest" user account in both ac2 and ac3.
    FYI. the other apps in CS4 work in my profile. And my laptop is new and meets the standards to run the app.
    ...Any suggestions? I would be most greatful for any feedback in correcting this issue.
    Thanks for your time.
    Naomi

Maybe you are looking for

  • Cannot upgrade to 10.8.2 on 13" retina

    i just bought MBP 13" retina display and have been trying to update to 10.8.2 to no avail. it keeps giving message as per above. also i cannot upgrade the iphoto as well as it requires 10.8.2 and i have only 10.8.1 installed. it keeps bringing me to

  • RECEIVING PARTNER DESCRIPTION

    Hi all, I need to create a custom table with the following fields: sold to, sold to description, EDI partner type, partner number, and partner description. My problem is where to retrieve the partner description if the partner type is equal to B (ban

  • Error message in 7.01 upgrade patch install

    When i try to install the 7.01 upgrade, I get an error message that says "Patch cannot be applied to this version of Adobe Presenter/" I uninstalled and reinstalled  Presenter 7 but still no help. Adobe Chat help was an abysmal waste of time. I need

  • Resources for end user testing...What works...

    I am involved in a project that will likely be a retail item. The client, art director and I are "so close" to the project that we do not feel adequate to give is full test. Thinking of hiring some folks (male and female-20-50 age range) and have the

  • About integration server

    Integration Server is the runtime,but how exactly 1)Integration engine 2)Business Process Engine & 3)Central Adapter Engine works can anyone help on this?