Create a (very simple) drag and drop list builder

Discussion in 'AppleScript' started by RiverThames, Mar 13, 2017.

  1. RiverThames

    RiverThames New Member

    Joined:
    Mar 13, 2017
    Messages:
    3
    Likes Received:
    0
    We are a small interior design company based outside London.

    How would you go about creating a very basic script/app that would display a predefined text list of locations (e.g. "Bathroom1") and actions (e.g. "source shower tray) in one window and would allow us to simply drag and drop the selected items into a second window?


    explan.jpg

    Purpose of this is to save time and not to have to type long lists of "to dos" in our quotes. Once the list is ready, we would paste it into our Word quote.

    I have no idea if it is something that could be done with e.g. Automator or anything else - and I have the feeling this type of function must have been developed thousands of times.

    Long and short, if anyone can point us towards the simplest way of creating a simple, text only script, I will try to learn the scripting tool – or if you know of any existing script that does this – happy days!

    Thanks.
     
    RiverThames, Mar 13, 2017
    #1
    1. Advertisements

  2. RiverThames

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    5,943
    Likes Received:
    193
    Hello and welcome.

    Most of us here aren't very experienced with AppleScript/Automator. Maybe the folks over at MacScripter could lend a hand.

    C
     
    Cory Cooper, Mar 14, 2017
    #2
    1. Advertisements

  3. RiverThames

    RiverThames New Member

    Joined:
    Mar 13, 2017
    Messages:
    3
    Likes Received:
    0
    Thanks Cory.

    I have no idea what would be the best language to create this functionality, I only mention Automator because it is fairly simple to use. Any pointer would help. Kind regards
     
    RiverThames, Mar 14, 2017
    #3
  4. RiverThames

    Lufbrarunner New Member

    Joined:
    Jan 25, 2017
    Messages:
    167
    Likes Received:
    7
    Location:
    Loughborough, Leicestershire, UK
    Is this the kind of thing you are looking for LINK.
    It is a bit basic and needs refinement, but my coding is a bit rusty.
     
    Lufbrarunner, Mar 15, 2017
    #4
  5. RiverThames

    RiverThames New Member

    Joined:
    Mar 13, 2017
    Messages:
    3
    Likes Received:
    0
    GREAT! This is very much along these lines.

    In terms of layout, this is brilliant, it does not need to be refined any further as we only need to copy the final text content in the first column to paste it in Word.

    I have looked at the source: am I right in understanding this is all javascript? This would mean that, provided you are happy to give us you go ahead, we could use this source, copy it onto an html page on our server and play around this function, simply by adding our own data draggable items?

    Again, big thanks for your help. This is far more than pointing us in the right direction.
     
    RiverThames, Mar 16, 2017
    #5
  6. RiverThames

    Lufbrarunner New Member

    Joined:
    Jan 25, 2017
    Messages:
    167
    Likes Received:
    7
    Location:
    Loughborough, Leicestershire, UK
    No problem, It is javascript. there are 3 files involved, index.html, script.js and style.css.
    You are welcome to play around with these to suit your needs.
    I can email you copies of the files if you want.
     
    Lufbrarunner, Mar 16, 2017
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.