Script worked in Abobe 7 & 8; not in 10

Hi,
I have a program that produces hundreds of pdfs with each run.  Each pdf consists of between 10 and 1,000 ps files.  The creation of the ps files is done in a Microsoft Access database.  The database sends individual reports as ps files to a watched folder.  There are four different reports for each minor group and between 1 and 100 minor groups to a major group.  Each major group gets one pdf.  In order to signal to Distiller to take action the following script was used:
/PathName (C:\Documents and Settings\X646894\EPEPEBuild/PostScript/*.ps) def
/RunDir {
{ /mysave save def
          dup = flush
          RunFile
          clear cleardictstack
          mysave restore
255 string
filenameforall
} def
PathName RunDir
This has been successful since 2005.  We were just upgraded to Adobe Pro X.  The script no longer works.   I need to either get help to convert the script so it will work with Distiller X or I need to get a reference to the Distiller scriping language in Adobe Distiller X so I can try to figure this out.
Thank you for your help,
Rick

Exactly what is your problem?
Does your VBA script place the files in the expected watched folder?
Does distiller fail to distill the created file?
Do you keep the log files on failure?
Distiller does not find the watched directory?
What is the version of MS Office that you are using?
For watched files, ever since version 4, there are 2 added subdirectories to the watched folder an 'IN" and "OUT" both created by distiller. The PS file goes into the "In" directory and the PDF, PS and log are placed in the 'Out' subdirectory. I would expect your directory to the 'in' directory for the watched folder 'C:\Documents and Settings\X646894\EPEPEBuild' would have to be
C:\Documents and Settings\X646894\EPEPEBuild/PostScript/in/*.ps

Similar Messages

  • Short, basic VB script works on 2003 Server but not on 2012 R2 server

    Hello all,
    Hopefully I'm posting this in the right place. I have a legacy VB script that I need to keep, but I'm having trouble getting it to work on Server 2012 R2.
    The script reads a file called "Test.txt" that contains the following string:
    String1|String2
    Part of the VB script is to read this "Test.txt" file and parse this line into 2 separate elements based upon the "|" delimeter:
    On Error Resume Next
    Dim FSI, inputFile, String, f, WshShell,WshNetwork, WshFSO, StringArray
    inputFile = "Test.txt"
    CONST ForReading = 1, ForWriting = 2, ForAppending = 8
    Set FSI = CreateObject("Scripting.FileSystemObject")
    Set f = FSI.OpenTextFile(inputFile, ForReading, True)
    Set WshShell=WScript.CreateObject("WScript.Shell")
    '********* Read the file ********
    String = f.ReadLine
    msgbox("String: "&string)
    '********* Split the line *******
    StringArray = Split(String,"|", -1, 1)
    msgbox("stringarray(0): "&stringarray(0))
    msgbox("stringarray(1): "&stringarray(1))
    The variables in this script when ran on Server 2003 are:
    string = String1|String2
    stringarray(0) = String1
    stringarray(1) = String2
    So this script parses the String1|String2 line perfectly on Server 2003. However, running this same VB script on Server 2012 R2 results in very strange output:
    The variables in this script when ran on Server 2012 R2 are:
    string = ӱƥt
    stringarray(0) = ӱƥt
    stringarray(1) =
    Is there anything on Server 2012 R2 that I need to install to get this to work in VB, or what is the issue with Server 2012 R2 and visual basic? I'd LOVE to redo this in PowerShell but I need to keep it Visual Basic for legacy reasons for a few more months.

    Hmm interesting. I tried using the 3 different "format" parameters for the OpenTextFile method, and none of them worked on Server 2012 R2:
    http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
    However, I copied the text file directly from the 2003 server and placed it on the 2012 R2 server, and then the script worked great!
    Thanks for steering me in the right direction Bill!

  • Simple Script works on 10.6 but not 10.5.8

    Hi,
    Brand new to Applescript...I made a simple script (saved as an application) to rename Excel Sheet Tabs and it works on my MBP (10.6.2) however when I try sharing with other users (10.5.8), it fails to carry out properly. It opens a blank workbook rather than the "test.xls" workbook and won't go any further. Am thinking it might be due to:
    1) where the script and .xls file were originally created/saved?
    2) 10.6.2 vs. 10.5.8?
    3) method of sharing? Tried attaching to Mac OSX Server Wiki, NAS and e-mailing but still wouldn't work.
    here's the script-
    tell application "Microsoft Excel"
    try
    open workbook workbook file name "test.xls"
    activate object worksheet "names"
    set myRange to range "A2" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 3 to myName
    set myRange to range "A3" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 4 to myName
    set myRange to range "A4" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 5 to myName
    set myRange to range "A5" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 6 to myName
    set myRange to range "A6" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 7 to myName
    set myRange to range "A7" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 8 to myName
    set myRange to range "A8" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 9 to myName
    set myRange to range "A9" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 10 to myName
    set myRange to range "A10" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 11 to myName
    set myRange to range "A11" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 12 to myName
    end try
    end tell
    Any suggestions will be greatly appreciated! THANKS!

    more info:
    a co-worker with a MacBook (10.5.8) was able to download the script and .xls file from our server and it worked...
    An eMac (10.4.11) was not able to run the script.
    All machines are running 2008 Office for Mac

  • PHP Script works in Chrome, IE9 but not in Firefox 15

    This page is a PHP script for creating hyperlinks to all files in a directory:
    http://www.checktheevidence.co.uk/audio/index.php?dir=&sort=date&order=desc
    It works fine in IE9 and Chrome, but Firefox "give up" about 3/4 way down the listing the hyperlinks for the files are no longer shown. Weird stuff.
    This issue has been present for a long time

    It's not pretty, is it. The problem is that your page opens <strong> tags without closing them. For example:
    <div>
    &lt;a href="Victoria Derbyshire Cuts off Police Constable talking about The Club in the Police - Radio 5 Live - 13 Sep 2012.mp3" class="w"><b>&lt;strong></b>Victoria Derbyshire Cuts off Police Constable talking about The Club in the Police - Radio 5 Live - 13 Sep 2012.mp3 &lt;/a>
    (1.5 MB) (Modified: Sep 17 2012 11:06:37 PM)
    &lt;/div>
    This causes Firefox to "nest" tags in the page past a maximum depth. After that point, it just dumps text to the page. Similar/related past threads:
    * [https://support.mozilla.org/en-US/questions/846246 Part way through a particular web page, HTML stops being rendered]
    * [https://support.mozilla.org/en-US/questions/929969 text is missing from webpage]
    So just a small fix to your PHP and you should be good to go.

  • SQL script works in SQL Developer but not when scheduled

    I have a script that I can run, logged onto my server as a user with full permissions and into my database as SYSDBA, that produces a CSV file on the server when I run it from SQL Developer ON the server. HOWEVER, when I set it up as a scheduled job, using those SAME CREDENTIALS (same Windows/network user; same database user), I get no output. The job indicates that it's running successfully, but no file gets created.
    Any advice is greatly appreciated.
    Here's the script:
    WHENEVER SQLERROR EXIT FAILURE;
         set serveroutput on
         DECLARE
         my_query varchar2(5000);
         BEGIN
         my_query := q'[
    SELECT client_id, JOB_NAME, SCHEDULE_TYPE, TO_CHAR(START_DATE,'MM/DD/YYYY HH24:MM') AS START_DATE,
    REPEAT_INTERVAL, ENABLED, STATE, RUN_COUNT,
    TO_CHAR(LAST_START_DATE,'MM/DD/YYYY HH24:MM') AS LAST_START, LAST_RUN_DURATION,
    TO_CHAR(NEXT_RUN_DATE,'MM/DD/YYYY HH24:MM') AS NEXT_RUN
    FROM DBA_SCHEDULER_JOBS
    WHERE instr(client_id,'10.') is not null
    ORDER BY LAST_START_DATE DESC
         p2k.ccsd_any_query_to_csv('HRISEDB_E_OUTPUT_MK', 'dbserver_job_output.csv',my_query);
         end;
    =================================================================
    Here's the called procedure (I don't really understand it -- I gleaned it from others on the internet):
    -- DDL for Procedure CCSD_ANY_QUERY_TO_CSV
    set define off;
    CREATE OR REPLACE PROCEDURE "CCSD_ANY_QUERY_TO_CSV" (p_dir in varchar2, p_filename in varchar2, p_query in varchar2) AUTHID CURRENT_USER
    is
    l_output utl_file.file_type;
    l_theCursor integer default dbms_sql.open_cursor;
    l_columnValue varchar2(4000);
    l_status integer;
    l_query long;
    l_colCnt number := 0;
    l_separator varchar2(1);
    l_col_desc dbms_sql.desc_tab;
    l_col_type varchar2(30);
    l_datevar varchar2(8);
    BEGIN
    l_query := 'SELECT SYSDATE FROM DUAL; ';
    dbms_sql.parse(l_theCursor, p_query, dbms_sql.native);
    dbms_sql.describe_columns(l_theCursor, l_colCnt, l_col_desc);
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
    for i in 1..l_col_desc.count LOOP
    utl_file.put( l_output, l_separator || '"' || l_col_desc(i).col_name || '"' );
    dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    l_status := dbms_sql.execute(l_theCursor);
    while ( dbms_sql.fetch_rows(l_theCursor) > 0 ) loop
    l_separator := '';
    for i in 1 .. l_colCnt loop
    dbms_sql.column_value( l_theCursor, i, l_columnValue );
    utl_file.put( l_output, l_separator || '"' || l_columnValue || '"');
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    end loop;
    dbms_sql.close_cursor(l_theCursor);
    utl_file.fclose( l_output );
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    exception
    when others then
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    raise;
    end;
    /

    hello,
    does oracle showing any errors in user_scheduler_job_run_details for this job ? I would advise try inserting some debug statement to identify where exactly its stuck. Also please check sample configurations syntax for user_scheduler_jobs.
    Cheers
    Sush

  • Script works fine in CC but not CS5- Any tips?

    So i have this script that detects instances of XXXXXXXX and turns them into hyperlinks. It works fine in InDesign CC however won't play nice in CS5.
    Anyone have any tips as to how I can go about making it work?
    var myDoc = app.activeDocument;
    var myLinkStyle = myDoc.characterStyles.itemByName("link"); // the Character style of the links
    var myURL = "http://www.abc.com.au/part/{part_id}?utm_source=ABC%PublicationName&utm_medium=Catalogue&utm_term={part_id}&utm_campa ign=Catalogue"; // url of your company
    var myUrlPartReplace = new RegExp("{part_id}", 'g');
    var i, myLinks, myLink, mySource, myDestination;
    for (i = myDoc.hyperlinkTextSources.length-1; i >= 0; i--){
        mySource =  myDoc.hyperlinkTextSources[i];
        if (mySource.sourceText.appliedCharacterStyle == myLinkStyle){
            mySource.remove(); // removes existing hyperlinks to avoid "double bookings"
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\<(\\d\\d\\d\\d\\d\\d\\d\\d)\\>";
    myLinks = myDoc.findGrep();
    app.findGrepPreferences = null;
    for (i = 0; i < myLinks.length; i++){
       myLink = myLinks[i];
       mySource = myDoc.hyperlinkTextSources.add(myLink);
       myDestination = myDoc.hyperlinkURLDestinations.add(myURL.replace(myUrlPartReplace, myLink.contents.replace(" ", "")));
       myDoc.hyperlinks.add(mySource, myDestination);
    Thanks in advance!

    HI Trevor,
    Thanks for the suggestion. I copied the script into a new file and tried to run from the ESTK... no luck (see screenshot).

  • Scroll script works in Flash 6, but not in 9

    I have a simple scroller script that works fine for scrolling
    a movieclip in Flash 6, but when I publish in anything later, it no
    longer scrolls. Both are set to AS2. Is there an obvious reason
    that anyone can see of why this should be? When I test the script
    syntax in the actions panel, it says there are no errors in the
    script. By tracing I can see that there's no trouble with targeting
    the up and down buttons or scroll slider, and the slider still
    drags, but the content MC doesn't move as it should. Thank you very
    much for your help, in advance. Here's the script, in case the
    answer isn't obvious from the description:

    You were right! It works now, even as posted above. I just
    remembered I had fixed an upper/lower case inconsistency just for
    neatness since I last tested, never thinking that would fix the
    problem! I just tested again and to my surprise, it works great. I
    guess neatness does count!!! Thanks again, kglad!

  • Script works in PowerShell ISE but not in regular PowerShell window

    Hello all!
    I've got another PS conundrum to ponder.  I have the following script lines:
    write-host"Check
    for password complexity requirements:"-foregroundcolorblack-backgroundcolorwhite
    write-host""
    import-moduleactivedirectory
    $PasswordPolicy=Get-ADObject$RootDSE.defaultNamingContext
    -PropertypwdProperties
    $PasswordPolicy|Select@{n="PolicyType";e={"Password"}},`
    DistinguishedName,`
    @{n
    ="Password complexity requirements";e={Switch($_.pwdProperties)
    0{"Passwords
    can be simple and the administrator account cannot be locked out"} 
    1{"Passwords
    must be complex and the administrator account cannot be locked out"} 
    8{"Passwords
    can be simple, and the administrator account can be locked out"} 
    9{"Passwords
    must be complex, and the administrator account can be locked out"} 
    Default{$_.pwdProperties}}}}
    |ft*-auto
    When I run this code in ISE, it works great.  It returns the value for the setting "1" which is what this GPO is set to.
    But, when I run this same code in elevated PowerShell prompt, I get the following error:
    Any help would be greatly appreciated.

    Hi,
    Are you creating $RootDSE before you use it?
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Script works for one frame but not another

    I set up 2 keyframes, each one loads a different text file
    into a dynamic text box. The text box for the first keyframe is
    named "session" and the text box for the second keyframe is named
    "oneptq". The text file for the first text box is named Titles.txt
    and the text file for the second keyframe is 100Q.txt. The code I'm
    using is identical (except for the respective names of the text
    boxes and text files) but for some reason the text will load in the
    first text box but not the second.
    Here's my AS for the first keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    session.text = lvLoader.textbody;
    lvLoader.load("Titles.txt");
    And my AS for the second keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    oneptq.text = lvLoader.textbody;
    lvLoader.load("100Q.txt");
    I can't figure this thing out. Please help. Thanks.

    Have you double checked that it's a DYNAMIC text box? Maybe
    it was accidentally swapped by to static at some point...

  • Script works in one frame, but not with frames before it

    Hi all-
    I'm a complete AS/Flash n00b, but hoping that I can get some guidance on this.
    I'm trying to test a very simple function for an e-learning module that is to train people on using 'quick keys' or key combinations on their keyboard. Basically, I want to show them a command and have them practice. In the practice, they will be asked to use a command and then have to do it on their keyboard.
    I used the code below successfully with one frame and a couple layers. I created a text-area ("traceArea), put it on the stage, set up the event and function... it works great! (although I'm sure the code isn't very pretty) When anything other than ctrl-p is pressed, it traces the "Try again!" message and when ctrl-p is pressed, "Great job!" pops up.
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
    function detectKey(event:KeyboardEvent):void
    if (event.ctrlKey== true && event.keyCode==80 )
    traceArea.text = "Great job!";
    else
    traceArea.text = "Try again!";
    So, then I tried to build on to the file and added two frames before the previous AS code.
    Frame 1 - Intro
    A short introduction to the 'module' with a continue button. The code for this frame is:
    stop();
    continueBtn1.addEventListener(MouseEvent.MOUSE_UP,buttonPressed);
    function buttonPressed(event:MouseEvent)
    nextFrame();
    Frame 2 - Instructions
    This frame shows the viewer the correct keys to use to print (ctrl-p). There is another continue button here. Code:
    stop();
    continueBtn2.addEventListener(MouseEvent.MOUSE_UP,buttonPressed);
    The last frame is then the 'practice' (see first code above).
    When I run this file, there are no errors, but when it gets to that last frame, nothing is traced and there is no output on any keyboard command. I know the solution must be pretty easy, but I'm missing it and have no idea what it might be!
    Any help is appreciated. Thanks!
    -Andy

    use the trace function to debug your flash code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
    function detectKey(event:KeyboardEvent):void
    trace(event);
    if (event.ctrlKey== true && event.keyCode==80 )
    traceArea.text = "Great job!";
    else
    traceArea.text = "Try again!";

  • Script Works on MacBook and Mac Mini but Not MacBook Air

    I just bought a new Mac Mini and 11' MacBook Air, and I have a script that works on the former but not the later. Running it on my Air generates the error, "error "Finder got an error: Can’t set alias "My Hard Drive!:directory path:File Name copy.doc" to "FileName}doc"." number -10006 from alias "My Hard Drive!:directory path:File Name copy.doc".
    Here is the script:
    tell application "Finder"
    set theFile to item 1 of (get selection)
    set TheName to name of theFile
    set duplicatedFile to (duplicate theFile) as alias
    end tell
    set capName to do shell script "/bin/echo " & quoted form of TheName & " | /usr/bin/awk '{for(i=1;i<=NF;i++)sub(/./,toupper(substr($i,1,1)),$i)}1' | tr -cd [:alnum:]_. "
    tell application "Finder" to set name of duplicatedFile to capName
    set longURL to "http://domainname.com/" & capName
    set curlCMD to "curl --stderr /dev/null "http://bit.ly/api?url=" & longURL & """
    set bitLy to (do shell script curlCMD)
    set the clipboard to bitLy
    set curlFTP to "curl -T " & quoted form of POSIX path of duplicatedFile & space & quoted form of ("ftp://unsername:[email protected]/path/" & capName)
    do shell script curlFTP
    tell application "Finder" to move (duplicatedFile as alias) to trash

    There is a problem with duplicate names.
    !http://farm2.static.flickr.com/1283/5188829536_841015b22c.jpg!
    I am not sure what statement failed for you. Please clarify if I guessed wrong.
    I did encounter some problem with the exclamition point in a name.
    There could be a problem with exclamation point in a url, but didn't try.
    You could use unix to do the rename.
    tell application "Finder"
       set theFile to item 1 of (get selection)
       set TheName to name of theFile
       set duplicatedFile to (duplicate theFile) as alias
    end tell
    log duplicatedFile
    set capName to do shell script "/bin/echo " & quoted form of TheName & " | /usr/bin/awk '{for(i=1;i<=NF;i++)sub(/./,toupper(substr($i,1,1)),$i)}1' | tr -cd [:alnum:]_. "
    -- Use unix to rename
    set unixName to POSIX path of duplicatedFile
    log "unixName=" & unixName
    set baseP to do shell script "dirname " & quoted form of unixName
    log "baseP=" & baseP
    set baseN to do shell script "basename " & quoted form of unixName
    set baseN to quoted form of baseN
    set baseP to quoted form of baseP
    -- Rename the file. 
    set what to do shell script "cd " & baseP & "; " & "mv " & baseN & " " & capName
    -- tell application "Finder" to set name of unixName to capName
    log "what=" & what
    set longURL to "http://domainname.com/" & capName
    log "longURL=" & longURL
    set curlCMD to "curl --stderr /dev/null \"http://bit.ly/api?url=" & longURL & "\""
    log "curlCMD=" & curlCMD
    set bitLy to (do shell script curlCMD)
    set the clipboard to bitLy
    set curlFTP to "curl -T " & quoted form of POSIX path of duplicatedFile & space & quoted form of ("ftp://unsername:[email protected]/path/" & capName)
    do shell script curlFTP
    tell application "Finder" to move (duplicatedFile as alias) to trash
    Robert

  • GPRM Button scripts work in Simulate, but not after burning

    Hello everyone:
    I have a question regarding GPRM-based buttons and scripting menu navigation. My scripts work perfectly in DVD Studio Pro's simulate mode, but after building and formatting a DVD, the scripts do not function properly on a set top box, in Apple DVD Player, or when playing from the Video TS folder. The scripts were based off of a tutorial by Hal MacLean at dvdstudiopro.co.uk.
    Essentially, I have one track which is accessed via a Main Menu or a Chapters Menu. There is an animation that plays at the head of each menu, so menu has a loop point. The user should return to the correct screen, the correct button should be highlighted, and the menu should jump to the loop point. All of these things happen in simulate mode, but after burning, the loop point is ignored: The correct menu and buttons are highlighted, but the menu plays from the beginning. Here is how the project is laid out:
    From the main menu, if the user chooses Play Movie, the following script plays:
    mov GPRM 0, 1
    Jump Feature
    From the main menu, if the user chooses Chapters, the following script plays:
    mov GPRM 0, 0
    Jump Chapters Menu
    Each of the chapter buttons is assigned to the start of a scene. The feature's menu call is assigned to the following script:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu(Loop) [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu(Loop) [GPRM 1]
    I was able to make the menus behave properly by writing the scripts this way:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu Script [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu Script [GPRM 1]
    Main Menu Script:
    Jump Main Menu(Loop)
    Chapters Menu Script:
    Jump Chapters Menu (Loop)
    But, although the user is returned to the correct menu and the loop point, now only the default button is highlighted.
    Has anyone run into the same issues? Can anyone see any flaws in my scripts, or have any suggests? i would really appreciate any thoughts you all have. Thanks for your time!

    Do you have any pre scripts atached to the menus? I was having the same problems as you and found that pre scripts and GPRMs don't play nice (at least in DSP). Removing the pre scripts solved my issue.
    http://discussions.apple.com/message.jspa?messageID=4643747#4643747
    Good luck!

  • A php script works in IE but not in safari .. please help

    The following php works in internet explorer but not in safari or chrome .
    In IE all files are saved in specified folder .
    But in safari , xml portion works .. that is myxml.xml is saved in 'uploads/'.$temp directory ... but uploaded files are not saved in the given folder ..instead they are saved in 'uploads' folder .... not in 'uploads/'.$temp folder or 'uploads/'.$temp.'/image/' folder ...
    The script is called from flash ...
    I am new to php ... please help ...
    <?php
    session_start();
    $temp=$_SESSION['myfolder'];
    $raw_xml=file_get_contents("php://input");
    if(isset($_FILES['Filedata']['name'])){
    $whichfile=$_FILES['Filedata']['name'];
    $whichextension=substr($whichfile,-3);
    if($whichextension=='flv'||$whichextension=='pdf'||$whichextension=='txt'||$whic hextension=='mp3'){
    move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/'.basename ($whichfile));
    elseif($whichextension=='jpg'||$whichextension=='png'||$whichextension=='gif'){
    move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/image/'.ba sename($whichfile));
    elseif($raw_xml!=false){
    $fp=fopen('uploads/'.$temp.'/myxml.xml','w');
    fwrite($fp,$raw_xml);
    fclose($fp);
    else{
    echo "&fname=$temp";
    ?>

    Use this style rule for that image to get that custom cursor:
    <pre><nowiki>cursor: url("dart.cur"), auto;</nowiki></pre>
    See also:
    *https://developer.mozilla.org/en/Using_URL_values_for_the_cursor_property

  • Script Works in Formcalc but not Javascript

    I have two radio button lists laid out in two columns to select garment sizes (small, medium, large). The "M" side is MEN and the "W" side is WOMEN.  The Radio button lists are named MENS and WOMEN respectively.
    ITEM    QTY.       COST       ITEM    QTY.    COST 
    ||MS                          ||WS
    ||MM                          ||WM
    ||ML                          ||WL
    ||NO SELECTION                ||NO SELECTION
                        TOTAL                      TOTAL
    The user selects the size using the radio button, moves into the QTY field to input the quantity and the COST is automatically calculated in a read-only numeric field (the QTY and COST fields are not shown above).
    However, if a radio button (other than "NO SELECTION") is selected in one list and you attempt to select something in the OTHER list, after inputting a quantity a message box will pop up saying:  “Unable to calculate totals.  You have an active selection in the other side.  Please set the other side to 'No Selection' to continue."  The event used for this in the QTY field is "exit".
    Additionally, the fields are reset to zero (0) making the TOTAL zero (0).
    The "NO SELECTION" button of each list has a value of 1.
    I have a formcalc script in each of the QTY fields on the mens side that read:
    if (Women > 1) then
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.")
         MS=0
         MM=0
         ML=0
    endif
    The WOMEN side has a similar formcalc script if something is selected on the MENS side.  It works fine in formcalc.  However, when I try to use Javascript to perform this, the message box does not appear.
    if (Women > 1) {
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.");
          MS=0;
          MM=0;
          ML=0;
    I am teaching myself JS and wanted to put functions into the project since this is all repetitive.  However, I don't understand why it works with formcalc and not JS.  The book I purchased for learning JS was a bad choice (and I won't mention it here).  However, any help would be apppreciated.
    BTW, I used UPPER CASE in this post for emphasis.  The case matches in the actual script.

    Paul, will this script work, instead?
    var brain
    var correctSyntax = "Object.rawValue"
    if (correctSyntax != "Object.rawValue") {
       xfa.host.messageBox("YOU ARE AN IDIOT!);
       brain = ""
    Learning Javascript is gonna be a loooong process for me
    But as they say, if you don't make mistakes, how will you learn?  I'm glad there are guys like you around.
    THANKS, PAUL!

  • OOTB script supplied with Illustrator CC does not work

    Hi everybody,
    I'm searching someone that could tell me how to use the scrpit supplied out-of-the box with Illustrator CC whose french name is "EnregistrerDocAuFormatSVG". As I have only a french version of the product, I do not know the english name. This script is supposed to export all opened files in Illustrator in SVG format in a suppplied folder.
    Each time I used it, the SVG that is done is not correct whereas the same operation I have done manually using "Save As..." is working. In other words, the SVG done manually is not the same as the SVG done using the script !!!
    So I think that there are some errors in the script or some missing configuration.
    Please help me solve this problem.
    I already post a french post for this problem, but it seems that the community is more english people...so I repost the post in english.
    I will also post the same post in "Scripting Illustrator forum", because I do not know which forum is the best to receive such a problem.
    Eric.

    Thanks you,
    Hi,
    I was just reading this part of reference guide when you answered to me.
    After some tries, I succeded modyfing the original script so that SVG is saved in a good way...
    But now my work is not finished: I need to automate this three steps in whatever way.
    I thought that the best way was to automate the processus of loading a file and running the script using automation...but even if the program is working, the result is not good (I do not understand why). When having a phone call with support technical team, I understood that whereas Illustrator permits to automate, this operation is not supported.
    So I have to find another way that is supported by Adobe to do the same thing as the automation function...
    I though that I could write a command line that could take a paramter (my input file I want to convert) and run Illustartor with some program line parameters.
    Is there some way to run a script after having open a file in Illustrator ?
    Eric.

Maybe you are looking for

  • Flash album exporter plug-in

    I used to use Flash Album Exporter happily until the last update of Aperture - i'm now running 2.1.4. Now when i try to export with it aperture quits. Has anyone got any ideas on how to make 2.1.4 play nice with Flash Album Exporter, or have any alte

  • File Upload Demo Doesn't Work

    Applet loads & I can select the file to upload. However, once I have selected the file to upload there is a message that says "Encoding...." for just a split second and then the applet hangs. The "Encoding..." message window has a yellow banner acros

  • HT1386 Why has iCloud taken days to sync my bookmarks.

    I have a huge dilemma.  I had the misfortune of turning on iCloud. And it began doing all its magical endeavors but now I have a huge mess.   It duplicated most of my songs in iTunes library it's been syncing my bookmarks in safari for days and I can

  • li   styles and JSF

    Hello all, I'm trying to give a tab like appearence to the <a4j:commandLink>. For this i'm using <div>, <ul> and <li>. I need to assign a different style class for the <li> where the link is clicked. The commandLink is displaying a page onclick. So i

  • Master Data Extraction through Open Hub services(InfoSpoke)

    Hello,          I need your help on this issue, Here is my scenario... I want to extract Master data from BW (Info Object) as a file and put it in a server then later that can be picked up by some other deprtment for their process. This process has t