Questions tagged [scripting-language]

A scripting language or script language is a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one by one by a human operator.

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Automatic saving of images in Photoshop using the Photoshop scripting language

I am trying to save images in the AV1 Image (.AVIF) format using a script. My version of Photoshop (20.0.5) does not support this file format, but I added this feature to the version via a plugin ...
matin's user avatar
  • 111
0 votes
1 answer
115 views

Why in JavaScript and so in other programming languages is not possible to do if (a==b==c) to compare 3 variable at once? [closed]

Why, objectively, in programming languages in general, as far as I know, isn't possibile to compare 3 variable at once doing something like this: if(a == b == c) { do something; } but it is ...
willy wonka's user avatar
  • 1,488
0 votes
2 answers
60 views

Proposal for python syntax - what would go into implemention? [closed]

I would like to use certain keywords and unary/binary operators as functions. For example: _not = lambda a: not a _plus = lambda a, b: a + b _or = lambda a, b: a | b I think there is an opportunity ...
Evan's user avatar
  • 439
1 vote
1 answer
352 views

When to use cleanup() in Jython

Is it necessary to call cleanup() before close() in a PythonInterpreter in Jython every time? I've been reading the docs, but I don't find much information about this function. The javadocs don't say ...
Miguel's user avatar
  • 2,140
0 votes
1 answer
308 views

What prevented a WebAssembly-like system from being implemented and adopted on the web to begin with? [closed]

JavaScript was designed specifically for browsers. It wasn't pulled off the shelf. So what were the reasons behind making it a scripting language rather than a compiled language? With the ...
Croolsby's user avatar
  • 1,426
-2 votes
1 answer
27 views

How to take screenshots of a web page and make a video of them using coding(any language)? [closed]

I have a table on my web-page with thousands of entries and it shows 20 entries at a time. I want to take screenshots of all the entries page by page and then create a video of them using code. What ...
Shashank Gupta's user avatar
0 votes
1 answer
176 views

When I inspect the code, why does the layout break?

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="Content-type" content="text.html" charset="utf-8"> <...
Thamber's user avatar
0 votes
0 answers
32 views

How to create a text script generation tool that can read test data from an excel file and convert it into a TCSL (similar to a C) format?

I want to create a test script generation (TCSL files) tool. It should be able to read test data from an excel file and convert it into a TCSL (similar to a C) format. Tool is expected to be developed ...
Deepankar Majumder's user avatar
0 votes
1 answer
230 views

Get only child LI when using "getElementsByTagName("li").length"

I am using below command to get the child LI nodes for the element ID 'treeview_sub' but it returns me the count of all the LI present recursively. var treeLILength = document.getElementById("...
Prayas Bhatnagar's user avatar
0 votes
0 answers
551 views

Is there some quick magic trick to remove digital signature form field from pdf file just by editing PDF in text editor?

What I want is to edit PDF file, and remove digital signature form field. I would like to do that without buying Adobre Pro liscence. I remember some time ago I opened PDF file in text editor and saw ...
shjeff's user avatar
  • 405
2 votes
1 answer
123 views

DLR: Put statement and declaration objects to CodeCompileUnit or CodeCompileUnit-like objects

IronRuby and IronPython have custom built-ins, standard modules and you can write code straight out of hand(Directly using statements and declarations in the code), instead of using namespaces and ...
Mr.DeleteMyMessages's user avatar
1 vote
2 answers
2k views

Is there a C-like syntax scripting language interpreter for C++?

I've started long ago to work on a dynamic graph visualizer, editor and algorithm testing platform (graphs with nodes and arcs, not the other kinds). For the algorithm testing platform i need to let ...
Barnack's user avatar
  • 931
0 votes
3 answers
469 views

How to have a global variable that has been read from a list that has filenames in bash?

I have one txt file that has bunch of class names. I would like to read those class names line by line in bash script and assign that value to a variable to use it globally in another command in the ...
dicle's user avatar
  • 1,132
0 votes
0 answers
138 views

Fixing DN from Canonical name and the Timestamp is always set at: 1/01/1601 11:00:00 AM?

I am trying to fix the PowerShell script below to list the member of AD security group called Domain Admins and export it to .CSV file. $ADGroupType = 'security' $ADGroupNamePattern = 'Domain Admins' ...
Senior Systems Engineer's user avatar
3 votes
3 answers
9k views

Problem in JSR223 script, JSR223 PostProcessor : javax.script.ScriptException

I am using Jmeter 5.0 where i have piece of java code written inside a JSR223 PostProcessor. The code is as follows - import java.util.Map; import java.util.HashMap; Map gamePlayHistoryMap = new ...
Aritro Sen's user avatar
0 votes
1 answer
706 views

What are the similarities between scripting language and programming language?

By searching I have found a similarity that is both import libraries. But unable to point out any other similarities, as everywhere I can see only differences.
Amrita CSE's user avatar
5 votes
1 answer
193 views

Translating a Gravity (a scripting language) call to a native C function call

I am currently looking into implementing a cleaner way to call native C functions from the Gravity scripting language. So far, the most simplistic example would be this one: int add(int lhs, int rhs)...
Ingwie Phoenix's user avatar
0 votes
1 answer
135 views

Is it Possible through python or with any other language to archive the daily downloaded files into one folder

I need a utility to archive my daily downloaded files into one new folder. Suppose, I downloaded 10 files today and at the end of the day, all the files should get archived into one new folder with ...
Lokesh Kumar's user avatar
1 vote
1 answer
2k views

PowerShell script to Get-RemotePrograms and export to .CSV for multiple AD computer object not working for bulk?

I need to export to .CSV for all computer with Microsoft Office installed, hence I've stumbled upon this script: https://gallery.technet.microsoft.com/Get-RemoteProgram-Get-list-de9fd2b4#content ...
Senior Systems Engineer's user avatar
0 votes
1 answer
223 views

Update value of a global variable with a variable inside in bash

How can I update a variable which has inside a variable and keep it global? I know I can do this to update a variable but which isn't global: for i in {1..24}; do query=query_$i echo $query ...
jevvz's user avatar
  • 3
0 votes
0 answers
326 views

List disabled AD account outside certain OU only and Export to .CSV

I need to modify the script below to List any AD User account that is disabled outside of the specific OU. $filter = '(Enabled -eq $false)' $ResultDirectory = 'C:\Disabled-ADAccountOutsideOU.csv' $...
Senior Systems Engineer's user avatar
-2 votes
1 answer
77 views

Language for an eBay auto lister?

If I wanted to create an eBay auto lister, what language would this be most feasible? Python, JavaScript? Which is easiest or most efficient? The program would need to interact with the website and ...
Nick Cipriano's user avatar
0 votes
0 answers
54 views

R studio doesn't recognize language

I'm trying to create a data frame from SQL query. Some of the fields are become gibberish since they're not in english. Any solution of how to fix this?
InbalK's user avatar
  • 31
1 vote
4 answers
154 views

While-loop infinite when wrong input is entered

I am creating a hash that contains names of 4 people. I would like a user to under one of the names and get the profession. At the same time I want the program to continue to ask for entering name if ...
tavalendo's user avatar
  • 857
2 votes
2 answers
363 views

Sorting an array in perl and returning the result in one line

I am trying to sort an array in Perl from Z to A and return the sorted array in one line. What I am doing is: sub mainTexts { my @texts = (); print ("Enter text 1: "); my $text1 = <...
tavalendo's user avatar
  • 857
0 votes
1 answer
41 views

30 million row monthly CSV that requires fields added on each line based on a lookup from a separate file

I have a 30 million row CSV that gets created each month, I am trying to add 2 fields that are populated based on a Lookup from a separate file and let it run unattended. I am trying to choose the ...
Munali's user avatar
  • 11
0 votes
1 answer
57 views

simple python code wont convert string to float

I trying to write code to show how high a ball would go up from the calculation however no matter how I type it, it keeps saying that it "cannot convert string to float" on the height varible time = ...
Hacking_graphics's user avatar
0 votes
1 answer
851 views

Combining PowerShell script to list MailboxName, PrimarySMTPAddress, Who Got Access, AccessPermissions and SizeInMB

I want to modify a PowerShell script to export the list of UserMailbox with Full Delegate access of more than one people other than the user itself. The below script is somehow returns the result: ...
Senior Systems Engineer's user avatar
0 votes
1 answer
115 views

Need some assistance in fixing the PowerShell formatting the Column export result to remove the SMTP: & smtp:?

I want to use the Replace string operation to make sure the result does not contain the SMTP: and smtp: string. The below script export the list of the Disabled AD account with their corresponding ...
Senior Systems Engineer's user avatar
1 vote
1 answer
479 views

How to execute an untrusted function efficiently in a cross-platform way?

I am writing an open source cross-platform application written in C++ that targets Windows, Mac, and Linux on x86 CPUs. The application produces a stream of data (integers) that needs to be validated,...
Bernard's user avatar
  • 5,299
1 vote
1 answer
521 views

Unable to export list of external email recipient using Get-MessageTrackingLog as [email protected]?

I cannot export the list of the external recipient email address and its total number of email based on multiple inputs of the InternalSender.CSV list: Email [email protected] Breville.May@...
Senior Systems Engineer's user avatar
-1 votes
2 answers
101 views

Converting Multiple CSV Rows to Individual Columns [closed]

I have a CSV file in this format: #Time,CPU,Data x,0,a x,1,b y,0,c y,1,d I want to transform it into this #Time,CPU 0 Data,CPU 1 Data x,a,b y,c,d But I don't know the number of CPU cores there will ...
STemma's user avatar
  • 21
1 vote
3 answers
3k views

invalid arithmetic operator (error token is " ") with for loop

Following script read n for (( c=1; c<=$n; c++ )) do echo "HI" done gives error solution.sh: line 2: ((: c<=1: syntax error: invalid arithmetic operator (error token is "") I am using ...
picasso13's user avatar
0 votes
1 answer
63 views

neat IF condtion implementation in a scripting language

I have a little helper class that generates a script, used later in my code, namely : public class ScriptBuilder { public string Script { get; set; } public ScriptBuilder NewLine(uint ...
Olórin's user avatar
  • 3,417
2 votes
1 answer
2k views

How to Resume Python Script After System Reboot?

I'm still new to writing scripts with Python and would really appreciate some guidance. I'm wondering how to continue executing my Python script from where it left off after a system restart. The ...
nickbains26's user avatar
-4 votes
2 answers
154 views

Cannot explicitly convert string to float

I am using the following code to format currency in my unity game. But there is some error messages saying "Cannot explicitly convert string to float" public float FormatAmount(float amount) {...
Arman's user avatar
  • 31
1 vote
1 answer
309 views

Batch - Meaning of escaped vertical bar | before equal sign =

I am currently struggling understanding a line of an introduction to windows batch scripting: SET /A errno=0 SET /A ERROR_SOMECOMMAND_NOT_FOUND=2 ... ... SET /A errno^|=%ERROR_SOMECOMMAND_NOT_FOUND%...
goulashsoup's user avatar
  • 2,718
1 vote
2 answers
189 views

what kind of scripting language is this?

I have to modify a scr.file at work. The script was purchased externally several years ago. I can unterstand the code to some extent, but i can't recognize what scripting language it's written in. ...
Shaggy's user avatar
  • 27
-1 votes
3 answers
56 views

How to print specific section from a file if that section has the search keyword [BASH]

Below is a snippet of a file named "books.info": TITLE and AUTHOR ETEXT NO. Aspects of plant life; with special reference to the British flora,    ...
Adib's user avatar
  • 359
2 votes
1 answer
400 views

Bash - readarray contains only one element

I'm writing this script to count some variables from an input file. I can't figure out why it is not counting the elements in the array (should be 500) but only counts 1. #initializing variables ...
Philip's user avatar
  • 71
0 votes
2 answers
153 views

Why isn't this bash script running?

Not sure why this script is throwing up random errors when I try to run it. Mainly in lines 1-10. It's mostly a compilation issue. It's throwing up errors for empty lines as well but I fixed it. I'm ...
Ani's user avatar
  • 1
-1 votes
2 answers
6k views

Errors with Glob while outputting file names

I am combining two questions here because they are related to each other. Question 1: I am trying to use glob to open all the files in a folder but it is giving me "Syntax Error". I am using Python ...
New User's user avatar
  • 149
6 votes
2 answers
5k views

Global and local recursive functions in lua

I am very new to lua and I would like to understand following behaviour. When I try to run following recursion function: local func = function ( n ) if n == 1 then return 1 else return n * func( ...
esgaldir's user avatar
  • 833
-2 votes
2 answers
1k views

Insert a string line after finding a match

I want to write a script to insert a string line after finding a match word. There are multiple occurance of match word, but i want to insert at second occurance. How to write the script in perl?
Pavi's user avatar
  • 1
1 vote
1 answer
91 views

Do R programs always have an underlying C layer?

I have read that much of the functionality of R is done by C code that is called by R under the hood when an R program is run. Is this the case for every R program? Does this mean that every R ...
Minaj's user avatar
  • 165
1 vote
1 answer
307 views

Apache Velocity 2.0 Scripting Compilable not working

I'm trying to check velocity scripting engine 2.0 which Provide JSR 223 implementation and support of Compilable the Compilable interface has been implemented in the process. I use jars: velocity-...
Ori Marko's user avatar
  • 56.9k
1 vote
1 answer
524 views

JMeter Script Engine which allow caching and compilation

JSR223 Sampler have a statement that Groovy is implementing Compilable interface different than other scripting languages and therefore is recommended To benefit from caching and compilation, the ...
Ori Marko's user avatar
  • 56.9k
0 votes
1 answer
605 views

JMeter add velocity language to JSR 223 Sampler

I want to use velocity language as Scripting language in JMeter's JSR 223 Sampler. According to the list velocity can be used in JSR223, According to the answer velocity should be added to JMeter ...
Ori Marko's user avatar
  • 56.9k
1 vote
1 answer
61 views

Understanding GameMonkey Script Mixed Arrays

I was just reading some introductory stuff from GameMonkey Script on https://www.gamedev.net/articles/programming/engines-and-middleware/introduction-to-gamemonkey-script-r3297/ and when they were ...
Gerard097's user avatar
  • 815
0 votes
1 answer
154 views

Excel like scripting language in Python for end users

I'm looking for a way to let end users process some data from the user interface. A scripting-engine with a syntax similar to Excel would do. Example: The input would be a dict which contains the ...
ddofborg's user avatar
  • 2,058

1
2 3 4 5 6