Automating Process with Scripts

Hello all,
I am a seasoned JavaScript programmer, and am currently working on a project which requires a lot of work, and I'm hoping that the process can be automated using scripts for InDesign.
Essentially, here's what I want to do. I have a 5 (sometimes, but rarely, 4)-digit string. I then have three rectangles underneath the text frame which I would like to apply a swatch to, depending on the final digits of the number. Numbers 0-9 are assigned a specific colour (and swatch), and at the moment I am manually going through each rectangle, and selecting it according to the last two digits, and applying the swatch to all those selected.
I am convinced that it must be possible to automate the process using InDesign User Scripts, but I don't have a good understanding of this. Here's an example of how the colours are assigned to the special bar codes:
0 = red 1 = blue 2 = green ....
So for the following code: 12312, I would like the bars underneath to have the following colours:
blue red blue
(i.e. top and bottom row = penultimate digit; middle row = last digit).
Could anyone indicate to me how I might write a script which loops through the pages in my document, finds the codes, extracts the last two digits and then applies a swatch to the rectangle object, depending on the number...
I am confident that I could write something like this using regular JavaScript and HTML, but that having been said, I am familiar with the DOM in HTML...
Any help or pointers would be gratefully received!
Thanks,
Ben.

Scripting InDesign is a very different beast than scripting HTML.
I highly recommend that you download Jongware's DOM in HTML or chm format and browse through it. It'll give you a pretty good idea of the DOM structure.
http://www.jongware.com/idjshelp.html
app.documents[0].pages gives you a collection of the active document's pages.
app.documents[0].pages.everyItem().getElements() gives them to you as an array.
pages have a textFrames collection. You can loop through that and check the contents of each frame for your numbers.
app.documents[0].swatches.item("Color Name") gives you a swatch and a textFrame has a fillColor property.
That should be enough to get you started...
Harbs

Similar Messages

  • 440 Automation error with script in "AftFileImport"

    Hi experts,
    I know there're some threads talking about this error,but I still need some help with my problem. If anyone knows the reason or have the same experience please share your solutions,thanks a lot!!!
    My Error log as blow:
    ** Begin FDM Runtime Error Log Entry [2011-10-25 18:03:26] **
    ERROR:
    Code............................................. 440
    Description...................................... Automation error
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13556
    IDENTIFICATION:
    User............................................. fdmadmin
    Computer Name.................................... FIACTHFMTD
    App Name......................................... FDMAP
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... fiacthfmtd
    Database Name.................................... FDMAP
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... ABCD
    Location ID...................................... 758
    Location Seg..................................... 10
    Category......................................... IFRS PA_2
    Category ID...................................... 17
    Period........................................... Aug - 2011
    Period ID........................................ 2011/8/31
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    This error occured after I add a script on Event "AftFileImport", I wrote some check scripts in Import and pass the result to "AftFileImport". But it shows some error at the line have "API.Import.ImpProcessMgr.State.dstDataWindow"
    .Did I use the wrong way to call this API? (purpose:If any error occured, stop import the file)
    My script as below:
    Sub AftFileImport(strLoc, strCat, strPer, strFile, lngRecs)
    'Oracle Hyperion FDM EVENT Script:
    'Created By:      fdmadmin
    'Date Created:      2011-10-24 17:50:51
    'Purpose:
    Dim checkPeriod, errPeriod, errYear, errCat
    errYear = RES.PvarTemp1
    errPeriod = RES.PvarTemp2
    errCat = RES.PvarTemp3
    checkResult = RES.PvarTemp5
    If checkResult = "OK" Then
    Else
    RES.PlngActionType = 6                    
    RES.PstrActionValue = "Source Data Year : " & Left(errYear,4) & " " & "Source Data Period : "& Left(errPeriod,3) & " " & "Source Data Cat : "& errCat
    API.Import.ImpProcessMgr.State.dstDataWindow = False
    End If
    End Sub
    ============================================
    Thanks!!
    WL
    Edited by: user13029084 on 2011/10/25 下午 7:07

    How are you importing the data? If you are using the Batch Loader, the file name sets the POV. Just ensure that the file name is accurate however it is created.
    Hi,I import text file and no matter what the file name is, I need to check the content if the year,period is the same with the POV. anyway,thanks .

  • Batch processing with Script Events Manager

    Hello all,
    I use the Script Events Manager to run a group of actions on a single file during the file open event.
    This workflow works well when dealing with a small quantity of files.
    Is there an efficient way to apply simultaneously a group of actions to folder of images?
    The PSCC Batch processor, Image Processor and Image Processor Pro only allow the use of one action at a time.
    I have try creating a combo action which includes a group of actions to run in the Batch Processor and Image Processor.
    When doing so I receive an error message from the Image processor and dialogs that from the Batch processor that suspend
    the program activity. I have had no luck with a combo droplet as well.  

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • Help with an Automator Process

    Hello, my name is Mike and this is actually my first post regarding Automator. I am trying to accomplish something that will make my day a whole lot easier but I am having trouble because it is a rather tedious workflow. Ok, here is what I am trying to accomplish...I deal with a company that emails me over "work order" as an .htm attachment, I have to manually open this email and print every attachment. What i would like to do is have the email from this company filtered down, download the attachment to a file so it can be printed and then mark the email as read so when the next time I run this workflow it will only get the the unread mail and the process goes on. Here is what I have so far....
    1-get specified mail items
    2-display mail messages
    3-filter mail messages
    4-get attachments from mail messages
    5-get folder contents
    6-open finder items
    That is the current workflow as it sits... some of the pitfalls I am running into is that the file is a .htm and must open with Safari. Next how can I create a script to delete the items from the designated folder as well as mark the ones in the inbox read ? Oh and sometimes when I run the current workflow i get the number of attachments in individual pages of Safari and sometimes it only wants to open the first attachment only.If anyone can give me some input with this it would be appreciated..
    Thanks,
    Mike Awad

    Have you looked into using the rules in Mail? In Mail's preferences (File > Preferences...) there is section for creating rules. One of the things you can have a rule do is run an AppleScript, and another thing you can do is have the messages marked as read.
    Unfortunately, I haven't had any luck getting an Automator workflow or application to work with the rules. However, if you prefer to use a workflow (saved as an application) instead of AppleScript, you can use the same workaround used by Folder Actions. Simply have the rule run an AppleScript which opens the workflow you saved as an application. Open Script Editor and create a new script with the following:
    using terms from application "Mail"
    on perform mail action with messages these_messages
    tell application "/Users/yourName/Documents/use for a mail rule.app"
    open these_messages
    end tell
    end perform mail action with messages
    end using terms from
    The easiest way to get the path to your workflow (saved as an application) is to delete everything between the double quotes "" and then drag and drop the file between the double quotes "". After you save the script, create a rule in Mail that will open this script. When you get new mail and a message matches the conditions to the rule, it will run this script which will in turn run the workflow you saved as an application from Automator.
    With a Mail rule, you can add another action to mark the messages as read, though that's not really necessary since being unread doesn't have to be one of the conditions to match the message. Since the rules are automatically applied when you get new mail messages, it won't bother with any of your old mail. With that said, you can select any messages in Mail and choose to apply rules to them using the command in the Message menu (or the contextual menu from right-clicking).
    It may turn out that'll you'll use more AppleScript, either within the workflow using Automator's "Run AppleScript" action, or perhaps by not using Automator at all. With Script Editor, you can open Mail's dictionary and discover what else can be done with Mail. Sorry, I didn't really have much time, but I hope this helps you figure out how you want to approach it. I think using the Mail rules will make it much more automated for you since they work immediately when your email is checked.

  • Automator query: I want to batch process with a program that doesn't offer batch processing.

    After much searching and experimenting I'm resorting to asking the direct question to see if you good folks can help me.
    I would like to be able to automate some image processing with the software "SketchMee". Unfortunately this is not something that the stand alone can do on it's own. I assume Otto can help me. I would like to essentially have a directory with "raw" (unprocessed) images. Have automator...
    1. open file in SketchMee (SketchMee will automatically render with previous settings)
    2. save new file in new directory
    3. repeat 100's and/or 1000's of times.
    Seems pretty straight forward but I'm having trouble making it happen.
    Does anyone have any advice or info for me here?
    Note: this is not a process that can be done in iPhoto, Photoshop or Graphics Convertor.

    Way better, IMHO of course, is Photoshop Elements.  It is not free but you can find deals on it but if not it really isn't too expensive.  For the amateur or advanced amateur it is far better than DPP (free included software) and even Lightroom.
    Lightroom is designed more for a person that takes 1000's and 10,000's of photos.  It has limited editing featuers.
    PSE is also more user friendly that full blown Photoshop.  Which you can not purchase any longer as it must be rented from Abode on a monthly basis.
    There is the free Gimpshop but it is the least user friendly of the bunch and has a steep learning curve.  But it is free.
    Lightzone is a free copy-cat version of Lightroom.
    But when you are ready for the best photo editing and RAW conversion software there is, there is nothing at the top except Photoshop.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • Stop a script process with a "Cancel" button

    Hi,
    I display a progress bar with a "Cancel" button while the  script is running. I can stop the script by pressing the "Esc" key but I  would like to stop the script process with the "Cancel" button. What  kind of command/event can I add to the button for doing this ?
    Thanks

    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox
    Check and tell if its working.

  • I was not given the option to purchase applecare + with iPhone 5.I tried calling Apple customer service, the automated process took my info but then came back and said too busy to help you now. How can I buy it now?

    I was not given the option to purchase applecare + with iPhone 5.I tried calling Apple customer service, the automated process took my info but then came back and said too busy to help you now. How can I buy it now?

    You should call Apple but you should get an email from Apple. I got one a few minutes ago and this is what they said about AppleCare+ :
    Thank you for your recent iPhone 5 purchase at the Apple Store.
    We would like to let you know that every iPhone comes with one year of hardware repair coverage through its limited warranty and up to 90 days of complimentary support. AppleCare+ for iPhone extends your coverage to two years from the original purchase date of your iPhone and adds up to two incidents of accidental damage coverage, each subject to a $49 service fee.
    We noticed you weren't given the opportunity to add AppleCare+ to your iPhone. If you would like to extend your coverage for only $99, please reply to this email by September 21st.
    After that date, if you would still like to purchase AppleCare+ within the first thirty days of receiving your iPhone, you can call AppleCare at 800-MY-IPHONE or visit an Apple Retail Store.
    Thank you for shopping with Apple.
    Sincerely,
    Apple Online Store Team

  • Problem with script based site creation

    I created a simple bash script that would create the folder structues and more imporatnatly, the http-conf files for the given sites. However, while the script works... and all seems well... in short time, the server will place all conf files into a "sites-previous-unusable" folder.
    Here is the other confusing part. Everything was working late last week, but when I got back to the servers from a long weekend... server.app could not tell that apache was running. After a few re-openings of server.app, eventually it starting failing on being able to read the server config.
    If anyone could help... please... any input or suggestions would be greatly appreciated.
    Recap of issues we are seeing:
    Apache begins to ignore all virtuals, and routes all to the default directory (/var/empty)
    All conf files get moved to a "sites-previous-unusable" directory in /etc/apache2
    What we are trying to do...
    We are trying to automate the process of creating folder and domain/subdomain structures for the design and development of our client sites. (see below script). Being that we have hundredes of sites... so an automated process is very much needed as server.app is a horrible interface for anything more then 5.
    -Michael
    #! /bin/bash
    # =======================
    # Siteup Script 1.0
    # Released:
    # =======================
    # =======================
    # The Script can only be run
    # under root level privileges
    # =======================
    ROOT_UID=0     # Only users with $UID 0 have root privileges.
    E_NOTROOT=67   # Non-root exit error.
    if [ "$UID" -ne "$ROOT_UID" ]
    then
      echo "Must be root to run this script."
      exit $E_NOTROOT
    fi
    # =======================
    #          set functions
    # =======================
    # =======================
    # functions: make_vhost
    # Description:
    # =======================
    function make_index
    cat <<- _EOF_
              <!doctype html>
              <html>
                        <head>
                                  <title>PLaceholder For: $DNAME</title>
                                  <meta charset="utf-8" />
                        </head>
                        <body>
                        <header>
                                  <h1>Placeholder</h1>
                        </header>
                        <content>
                                  <div>Client Domain: $DNAME</div>
                                  <div>File Location: $ROOTDIR/$FPATH</div>
                        </content>
                        <footer>
                                  <div>Copyleft 2010 - Our Company</div>
                        </footer>
                        </body>
              </html>
    _EOF_
    # =======================
    # functions: make_vhost
    # Description:
    # =======================
    function make_vhost {
    cat <<- _EOF_
    <VirtualHost 192.168.23.13:80>
              ServerAdmin [email protected]
              ServerName $SITE
              Alias /apache-resources "/etc/apache2/resources"
              DirectoryIndex index.html index.htm index.php
              DocumentRoot $PNAME/$FNAME/$DNAME/$FPATH
              <Directory $PNAME/$FNAME/$DNAME/$FPATH>
                        AllowOverride All
                        Order allow,deny
                        Allow from all
                        # Tell Apache to add theme support to autoindex
                        <IfModule mod_autoindex.c>
                                  Options Indexes FollowSymLinks MultiViews
                                  IndexOptions +FancyIndexing
                                  IndexOptions +VersionSort
                                  IndexOptions +HTMLTable
                                  IndexOptions +FoldersFirst
                                  IndexOptions +IconsAreLinks
                                  IndexOptions +IgnoreCase
                                  IndexOptions +SuppressRules
                                  IndexOptions +SuppressDescription
                                  IndexOptions +SuppressHTMLPreamble
                                  IndexOptions +XHTML
                                  IndexOptions +IconWidth=16
                                  IndexOptions +IconHeight=16
                                  IndexOptions +NameWidth=*
                                  IndexOrderDefault Descending Name
                                  IndexStyleSheet /apache-resources/css/autoindex.css
                                  HeaderName /apache-resources/include/header.html
                                  ReadmeName /apache-resources/include/footer.html
                                  IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
                        </ifModule>
              </Directory>
              ErrorLog          $PLOGS/$FNAME/$DNAME/error_log
              CustomLog          $PLOGS/$FNAME/$DNAME/access_log combined
    </VirtualHost>
    _EOF_
    # =======================
    #               header
    # =======================
    clear
    # =======================
    # set domain name variable
    # =======================
    # echo "==> Enter new domain name (domain.com): " ; read FQDN
    read -p "==> Enter new domain name (domain.com): " FQDN
    # =======================
    # set support variables
    # =======================
    HOSTNAME=`echo $FQDN |awk -F. '{ print $1 }'`
    DOMAIN=`echo $FQDN |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//' `
    DNAME=$FQDN
    FNAME=`echo ${FQDN:0:1} | tr 'a-zA-Z' 'A-Za-z'`
    PNAME="/Users/Shared/ClientDomains"
    PLOGS="/var/log/apache2"
    ROOTDIR="$PNAME/$FNAME/$DNAME"
    # =======================
    # create needed directories
    # =======================
    mkdir -vp $ROOTDIR/archive && chmod 0777 $ROOTDIR/archive
    mkdir -vp $ROOTDIR/digital-assets
    mkdir -vp $ROOTDIR/digital-assets/design && chmod 0777 $ROOTDIR/digital-assets/design
    mkdir -vp $ROOTDIR/digital-assets/images && chmod 0777 $ROOTDIR/digital-assets/images
    mkdir -vp $ROOTDIR/instances
    mkdir -vp $ROOTDIR/staging
    mkdir -vp $ROOTDIR/production
    mkdir -vp $ROOTDIR/templates
    mkdir -vp $ROOTDIR/subdomains
    mkdir -vp $ROOTDIR/subdomains/emailers
    mkdir -vp $ROOTDIR/subdomains/landingpages
    mkdir -vp $ROOTDIR/subdomains/sweepstakes
    mkdir -vp $PLOGS/$FNAME/$DNAME
    touch $PLOGS/$FNAME/$DNAME/access_log
    touch $PLOGS/$FNAME/$DNAME/error_log
    SDOMAIN=( "production" "staging" "templates" "emailers" "landing" "sweepstakes" )
    SPATHS=( "production" "staging" "templates" "subdomains/emailers" "subdomains/landingpages" "subdomains/sweepstakes" )
    ASIZE=${#SDOMAIN}
    for ((i=0;i<$ASIZE;i++)); do
              if [ -z ${SDOMAIN[${i}]} ]
              then
                        continue
              else
                        SITE="${SDOMAIN[${i}]}.$HOSTNAME.ourcompany.com"
                        FPATH=${SPATHS[${i}]}
                        # =======================
                        # build index.html file
                        # =======================
                        # We actually only want this for the first 3
                        if [ $i -lt "3" ]
                        then
                                  make_index > "$ROOTDIR/$FPATH/index.html"
                        fi
                        # =======================
                        # build vhost config file
                        # =======================
                        ACONF="0000_192.168.23.13_80_$SITE.conf"
                        make_vhost > /etc/apache2/sites/$ACONF
              fi
    done
    # =======================
    #    exit
    # =======================
    apachectl restart
    exit

    I was just doing the same thing.  Although I realize this post is getting old.
    I did it by using:
    strRegEnv   = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SAPLOGON_INI_FILE"
    NwEngine.Shell.SetRegValue strRegEnv, "REG_SZ", "(FILE LOCATION)"
    I placed that at the "On end Install" and "On end Update" Level.
    if the reg value is not already present, it will be created.
    If the reg value does exist, it is replaced.
    Hope that helps.

  • The 'JobServerChild.exe' processes with ID '6632' has been running on this

    Hi team,
    Automated tiket is being generated for the below following issue.
    can any one suggest me how to move forward to solve the issue
    The Windows Process Monitor script has determined that the 'JobServerChild.exe' processes with ID '6632' has been running on this computer for longer than the maximum acceptable time of 18000 seconds (5 hours).
    Thanks
    Murthy

    Hi Murthy,
    It sounds as though you have a schedule which is long running or the jobserverchild.exe process has become orphaned.
    If you check with the Instance Manager you chould be able to see if any schedules are taking much longer than usual. The Task Manager on the XI3.1 server will also show you if any jobserverchild.exe processes are hung i.e. not consuming any CPU\memory - once located you can kill the process.
    I would also recommend that you apply the -type OUTPROC switch on the Job Servers to ensure that in future the jobserverchild.exe processes are killed upon completion of the schedule task.
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • SR Test Automation Engineer with Expert Labview San Diego

    CONTACT: [email protected] Call: 951-303-1841
    Senior Test Automation Engineer- LabView
    CO, Inc., headquartered in San Diego, California, is focused on developing technology for the continuous monitoring of glucose in people with diabetes. CO is committed to developing technologies and products that improve the lives of people with diabetes and is currently looking for a Senior Test Automation Engineer.
    Summary
    This position is ideal for a highly self-motivated individual with software and hardware skills to strategize and design custom tools and test automation to meet design, cost and delivery targets.
    As a Senior Test Automation Engineer, you’ll be bridging R&D to volume production by creating functional test system using LabView for production of CO products.
    Duties & Responsibilities:
    · Lead creation of automated processes and test systems
    · Develop test plans, test software and hardware platforms
    · Proactively review designs for manufacturability, improving cost, quality and increasing yields
    · Programming in high-level languages or scripting languages to control electronics T&M Instruments and electromechanical systems
    · Program motion control and data acquisition systems
    · Develop test strategies and procedures in concurrence with design requirements
    · Transition new products from R&D phase to volume production
    · Document test procedures and results in conformance with ISO and FDA standards
    Required Qualifications:
    · Bachelors or Masters Degree in Electrical Engineering or similar discipline
    · At least 7 years of experience in test automation
    · Expert developing LabView applications
    · Experience with relational databases
    · Experience in statistical data analysis tools
    · Solid technical and theoretical background of electronics hardware and software
    · Demonstrated ability to work effectively in a fast-paced, team oriented, multi-tasking environment and to be willing to do what it takes to meet project commitments and deadlines
    · Excellent interpersonal and technical communication skills
    · Must be self-directed, self-motivated and be able to work in a cross-functional team environment
    · Ability to work in a highly dynamic environment
    · Experience leading projects and also interfacing with engineering, suppliers and contract manufacturer
    · Experience in RF is highly desirable
    · Experience in all facets of qualification, including environmental, HALT, and ESD testing would be an asset
    Retained Search Firm specializing in TElecom, Medical Devices, Biomed, BioTech, Ate, Semi, Legal, Medical, Real Estate, Commercial Real Estate, IT

    Hi,
    Your reponse  indicates a lack of finese !
    in Europe you won't even reach the possibles or potentials lists.
    If you read the requirement then they need an experienced wireworker. Yet you first registered on this forume 2 years ago !
    How does 2=7 ?
    Suggest you re -evaluate and respond directly to the appropiate email address, as also requested.
    xseadog

  • Batch processing with an image overlay

    Is it possible to do batch processing with an image overlay in FW CS4?
    I'm trying to resize several hundred images and place rounded corners on them.
    If this cannot be done in FW, does anyone know of another program that could accomplish this?

    Hi Marje,
    It's possible to include both resizing and image overlay in a custom Fireworks command that can be used in batch processing.  To get started, you could check out this tutorial that deals with the first step.
    That article describes how to perform image resize and overlay (in that case, a watermark), and then how to record the steps and turn them into a custom command that can be later used in batch processing.
    Once you saved the custom command, click File >> Batch Process, and follow the steps below:
    In the first window, select the images you want to process.
    On the next screen, open the Commands dropdown menu and select the custom command you created (it'll probably be on the bottom of the list), and click the Add button to include it in the batch process list.
    Finally, on the next screen select the location of the processed files, and optionally save the batch script for later use.
    Good luck!

  • Automator : issue with variable and path to folder

    I created a simple Automator Workflow with: A variable "Document Folder" and an action "Run shell script" with this command:
    "rsync -E -a -v -z --delete $@ /Volumes/MyBook/Backup/"
    I tested this command, It works very well in the terminal. But return me an error with Automator.
    "$@" is replaced by the Path when running, I guess my issue is that the content of the variable is " ~/Documents " . When it pass to the script it become "/Users/login/~/Documents".
    That can't works.
    A solution would be to put in the script the full path instead of "$@" but I would liketo understand why this error occur.
    Thanks.

    Automator actions return their results as a list of items. If you want your shell script to use the result of an action (for example Ask for Finder Items) as arguments, you need to set the Pass input: as arguments option, and place your statement in the for loop:
    for f in "$@"
    do
          /usr/bin/rsync -E -a -v -z --delete "$f" /Volumes/MyBook/Backup/
    done

  • HT2488 How do I create a workflow in Automator or a script in AppleScripts to download an excel file from a specific webpage?

    I would like to create a workflow in Automator or a script in AppleScript (or a combination of the two), that opens Safari to a specified page and downloads an excel file from this page and saves the downloaded document to my desktop.
    Is this something that be done? If so, how?
    I have so far been able to build a workflow in Automator to open Safari and added an AppleScript that takes Safari to a specific page that has an Excel document.
    I can't figure out where to go from here... Any help would be apprecitated.
    Thanks!

    Would you have the web address the excel sheet is on?
    Is there a simular web page you could point to if not?
    Would there be a copy of the file on an FTP page.  This would be easier. 
    curl
    http://www.cyberciti.biz/faq/mac-os-x-terminal-download-file/
    http://www.thegeekstuff.com/2012/04/curl-examples/
    http://curl.haxx.se/docs/manpage.html
    Macintosh-HD -> Applications -> Utilities -> Terminal
    # Press return to run a command.
    the curl is a terminal command ( Unix ).  It allows you to read a file off of the web.
    man curl
    provides cryptic information on the commnad curl.
    press the space bar to advance  a page.
    press letter to q to quit.
    What you may have to is to read in the web page as a text file.  Go "fishing" through the page to find the excel file you need.  Once you find the file, you can use curl to read the file.
    curl is a very full featured command.  (read complex to figure out ).
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Paragraph Alignment question - is it possible with scripting?

    Hello. I am working on a business card template that has a paragraph alignment problem. I have asked in other forums if it was possible, they pointed out that it might be, with scripting.
    I need to know if it is, so I can dig further.
    Here is the problem: I have a name and title on seperate line that need to be aligned to the right margin (the longest line touches the right margin) but centered above or below themselves. The text box is set to receive a large amount of characters. This is an automated system using InDesign Server so no manual adjustments are being made once the information has been submitted.
    Is this possible?

    Again, I don't know anything about ID Server, but you can try this. Label the text frame 'card' (select the frame, go to Window > Automation > Script label and enter a 'card' -- without the quotes).
    try
       tf = app.activeDocument.textFrames.item ('card');
       p0 = tf.paragraphs[0];
       p1 = tf.paragraphs[1];
       p0.justification = Justification.rightAlign;
       p1.justification = Justification.rightAlign;
       p0left = p0.insertionPoints[0].horizontalOffset;
       p1left = p1.insertionPoints[0].horizontalOffset;
       if (p1left > p0left)
          p1.rightIndent = (p1left-p0left)/2
       else
          p0.rightIndent = (p0left-p1left)/2;
    catch(_){}
    This one doesn't rely on a selection.
    Peter

  • Comparing ABAP development process with Model Driven Architecture concept

    My Background
    I am a postgraduate student writing a Masters Degree Dissertation titled “An Investigation into how compatible ERP Development Process is with Model Driven Development Philosophy: A SAP R/3 Case Study”.
    The aim of this project is to compare ERP system development process with Model Driven Development (MDD) and to identify whether and how they can be used together. Model Driven Architecture (MDA) is Object Management Group’s (OMG) flavour of the MDD philosophy and is the paradigm that will be used here.
    I have chosen SAP R/3 as my case study in order to narrow the research and want to explore the development processes/cycle involved in using ABAP/4 to reconfigure/customize SAP R/3 system during implementation.
    An overview of the MDA concept according to OMG is given below. Following this, I’ve provided some questions that are open to discussions.
    Overview of the MDA Concept
    The Model Driven Architecture (MDA) is an approach to software systems development that separates the specification of system functionality from the specification of the implementation of the functionality on a specific technology platform. The MDA concept provides an open, vendor-neutral approach to system interoperability.
    A recent study by the Middleware Company summarizes MDA paradigm as a development process that makes use of the following steps:
    1.     Secure business requirements for an application.
    2.     Develop UML diagrams for the domain model, independent of any particular technology (J2EE, Microsoft .NET, CORBA, etc). This UML model represents the core business services and components. This UML model is called Platform Independent Model (PIM) because it is completely technology-independent and will be the same regardless of whether you decided to use J2EE or .NET. You develop this UML model using UML modelling capabilities of an MDA-specific modelling tool.
    3.     Build UML diagrams for the application, specific to a particular technology (J2EE, for example). This UML model will have design patterns. This UML model is called Platform Specific Model (PSM). You can build this manually, or you can generate much of it using an MDA tool and hand-tune only pieces of it that require customisation.
    4.     Finally, generate the application code using an MDA tool. That is to say, instead of writing the application by hand based on the UML model, you generate the majority of it from the UML diagrams.
    To develop an application using MDA, it is necessary to first build a PIM of the application, then transform this, using a standardised mapping into a PSM, and, finally, map the latter into the application code.
    A mapping is a set of rules and techniques used to modify one model in order to get another model. In MDA, mappings are used for transforming:
    1)     PIM to PIM. This transformation is used when models are enhanced, filtered or specialized during the development lifecycle without needing any platform dependent information. One of the most obvious mappings is the analysis to design models transformation. PIM to PIM mappings, are generally related to model refinement.
    2)     PIM to PSM. This transformation is used when the PIM is sufficiently refined to be projected to the execution infrastructure. The projection is based on the platform characteristics. Describing these characteristics should be done using UML description. Going from a logical component model to a commercial existing component model is a kind of PIM to PSM mapping.
    3)     PSM to PSM. This transformation is needed for component realization and deployment. PSM to PSM mapping are generally related to platform dependent model refinement.
    4)     PSM to PIM. This transformation is required for abstracting models of existing implementations in a particular technology into a platform-independent model. This procedure often resembles a “mining” process that is hard to be fully automated. It may be supported by tools, though. Ideally, the result of this mapping will match the corresponding PIM to PSM mapping.
    Questions/Discussions
    1.     What specific stages are involved in development using ABAP/4? (e.g., requirements gathering, analysis, design, coding, etc)
    2.     Do these stages fit into any traditional software development lifecycle? (e.g. waterfall model, v-model, etc)
    3.     Which of the stages in (1) above best describes the Platform Independent Model (PIM) of the MDA concept above?
    4.     Which of the stages in (1) above best describes the Platform Specific Model (PSM) of the MDA concept above?
    5.     How does the Accelerated SAP roadmap relate to the MDA concept above?
    6.     Assuming there’s a change in business requirements of a company that could lead to reconfiguring/customizing the R/3 system, how is this achieved? For instance, if a model has earlier been developed for that particular process, how does the change in the model affect coding/modification?
    7.     How is coding achieved with respect to the reconfiguration of the business models or reference models?
    8.     Are all coding manually done or are there tools in the ABAP Workbench that enable codes to be generated automatically from the models of the system?
    9.     How much time is spent in coding compared to developing business models like EPC models?

    I've also read about the SAP Composite Application Framework (CAF).
    But it seems that it's only for Java development....

Maybe you are looking for

  • CATT - vendor/customer master address field length over

    Dear all,    when use CATT to record vendor/customer master,the address some fields length are over recorded field length(ex. ADDR1_DATA-NAME4,ADDR1_DATA-STR_SUPPL3...etc) is there any config in CATT to solve this kind of problem?

  • Move a file to another computer and back and keep links from breaking?

    I have a high school kid neighbor who is going to work on some pages that are on my site, but she does not have the site or access to the server.  I want to give her the page on a thumb drive to work on in Dreamweaver on her computer. The pages have

  • Customer Deletion flag

    Hi Gurus, How to delete multiple customers (its not specified from 1 to 10 like, its like customer no: 2, 4,8,10,13,17,89,99,110 like)in one go, In XD06 we can enter only one customer number. I tried T. Code: MASS also, but could not find the solutio

  • Adobe Premiere Pro error when launching software...

    I am getting the following error when launching Adobe Premiere Pro CS6: Adobe Premiere Pro could not find any capable video play modules. Please update your video display  drivers and start again. I checked my drivers and they are up-to-date. I am us

  • Itunes won't recognize apple id

    I can sign in to the Apple website and this forum, but iTunes won't recognize my apple ID. Any suggestions?