scripting

Programming / scripting language aimed at non-programmers.

Does anyone know of any scripting / programming languages that are targeted at (or would be suitable for) use by non-techies? I have an application that I want non-technical users to be able to extend with simple scripts, however I'm struggling to find a suitable language to use, in particular: It should be forgiving to users (for exa...

Can you call Symantec Endpoint "LiveUpdate" from script .e.g .vbs or .js

Hi there, I've been looking around for a way of calling Symantec Endpoint's "LiveUpdate" without opening the management console and clicking on the LiveUpdate button. Has anyone seen a way of calling the live update from script e.g. javascript, or vbs etc. The idea is to call it via a link on a webpage or similar (I have seen some pro...

How to detect whether a protocol is supported through web browser?

Similar to iTunes' 'Link Maker' (http://www.apple.com/itunes/linkmaker/faq/). Through web browser, iTunes webpages is capable of finding out if itms:// has been registered on client workstation, hence displaying correct message ('View in iTunes' button or 'Download iTunes' promotion banner). How is this conducted? ...

Loading external script with jinja2 template directive

I'm very new to jinja2 and the use of templates in general so I was wondering if there's an easy way to load an external javascript. I was thinking of using: {% block javascript %} <SCRIPT SRC="myscript.js"></SCRIPT> {% endblock %} But I can't help to ask: Is there a way of loading this script directly from within a template dire...

Best practice SCRIPT Installation DataBase

Hi I am new at SQL, I would like to have your opinions regarding best practices to adopt in SQL scripting to install a Data Base. PROBLEM A) In my script I have several Batches to create Tables. Tables have many Foreign Keys to each others, at the moment I must arranges batches in the right order to avoid conflict with FK Tables. I woul...

Calling PowerShell from batch, and retrieving the new value of a temporary environment variable set in the script?

Hey guys! I hope the title is concise, but just in case: I am calling a PowerShell script from a batch file. I want the PowerShell script to set the value of an environment variable, and for that new value to be available in the batch file when the PowerShell script finishes. I know that it is possible to set an environment variable u...

Appending a message to a buffer from a Vim script

What's the best way to append the content of a string variable from a Vim script? ...

Change filename by 1 every time (bash script)

I'm making a (bash) script for mass keyfile generation. I need the script to name the first generated keyfile "1", the next "2" and so on - So I need every filename to be the previous filename + 1. The script so far: #!/bin/bash #Files in directory dir=$(ls -U -l /home/user/keyfiles|wc -l) name= #script target=/home/user/keyfiles/$na...

Batch script to find files greater than 10MB in D drive in windows xp

Hi , I would like to have a batch script where I can find files which are greater than 10MB in D: drive. Regards, Orbit. ...

java script validation

hello all, in my page there is an option to create new date field input box. User can create as many as possible date TO and Date From box as per his need. like, date_to1 || date_from1 date_to2 || date_from2 date_to3 || date_from3 date_to4 || date_from4 My problem is to validate all the date fields to check there is no clash in tho...

CVS checkout based on a file

I want to checkout a bunch of files from a CVS server. Is there a way I can pass cvs command a file name which contains files I want to checkout Is there another way of accomplishing that ? ...

Not able to click the link on the page using vbscript.

I have an application which has many links but i want to click one out of many, page doesn't have form name, links neither have id nor name, it has only href and src or image name any one of you can tell me how can i click that link by using vbscript, i'm writing this script on simple notpad not using any vb tool, so please help me to co...

new google images how do they float correctly

Has anyone seen the new google image search. It manages to make the images float in an area. the images fit into this correctly by grouping them in the sizes. Frog images I guess there are two ways of doing this: Scripting by some sort of rule involving the widths and heights of these images A Css rule for creating the images. In ...

Creating shortcut links (.lnk) from Java

I am writing an installer (launcher) in Java and require the ability to be able to create a shortcut on the users desktop during the process. I am interested in any ideas as the best way to do this. My one option I have considered is using a VB Script on windows and using the native 'shortcut.exe' to do it for me, however a third party...

example using rhino's JavaAdapter

Hi Can someone provide me an example on how to extend a java class in java script using Rhino's java adapter ? ...

Json - removing square brackets and identifying a certain string

I need some way to either - remove the square brackets when either saving via curl or decoding the json text file and or remove both "created" and "modified" strings so that I am left with just the url string please when saving using curl. [{ "created":"10:30pm 5 August 2010", "url":"\/Images\/Temp\/7553-12a40d5af00-12a45a200-...

BASH subshells and sudo?

Hello -- I'm writing a bash script that needs to sudo multiple commands. I can do this: ( whoami ; whoami ) but I can't do this: sudo ( whoami ; whoami ) How do I solve this? ...

Automate Sass execution thru terminal (os x) via script

I started using Haml/Sass thru Rubygems recently, and I'm really liking it (although that doesn't have much to do with my question)... I would like to create a simple script I can throw in the root directory of each of my projects that will launch terminal, cd to my CSS folder, and run sass. so essentially a script that: cd ~/path_to_h...

Creating executable scripts with PHP

I'm building a module for a CMS that creates its own PHP files. I've received some feedback that a lot of hosting providers don't allow PHP to have write permissions on directories where PHP scripts can be executed. Although the scripts are not technically "executable" (they're just class definitions), I'm concerned that this module may ...

As a iPhone developer is it necessary to learn Apple script?

Hi all, I am developing application for iPhone environment for 1 year from now,In a recent interview one of my interviewer asked me regarding Apple scripting. So i want to know as a iPhone developer is it necessary to learn Apple script? What are the benifit of its uses? Where can i learn it? ...