Category "script"

Run Adobe PDF script when document is saved

I am attempting to place the script below in Document Actions under "Document Did Save". I'm not sure how to complete the if statements. I would like the script

How to set event listeners to Google Forms in script

I created a form using Google Forms UI. Now I want to enable some Form Elements based on the data from a Textfield. function myFunction() { var form = FormApp

Script linux loop for multiple number

I have a list of Linux commands that I need to repeat up to 670. How can I automate the commands, so I don't have to do the 670 times. I don't know how to do al

How to move cursor pointer from one monitor to another, and reverse the process?

I have tried using this script down below and it does work however, after I get my cursor to another monitor I want to get back to the first monitor again, afte

Bash loop trough all users to delete password hints

I have newly started with bash and now I am facing the following problem: lukas@Lukass-MacBook-Pro Desktop % ./script.sh delete: Invalid Path <dscl_cmd> D

How to get regex to work in a perl script?

I am working on a Linux based Debian environnement (precisely a Proxmox server) and I am writing a perl script. My problem is : I have a folder with some files

Mathematica : Convert easily a Notebook format into Wolframscript (.wls) by removing all comments on real instructions lines

I have a Mathematica notebook. I would like to generate in an automatically way this notebook to a Wolfram script that I could make run directly from terminal u

How to get .vbs output in the same window of a .bat file [duplicate]

I have a batch file that does a lot of different things and within that batch file, at some step, I'm running a VBS script. The problem is, th

Elastic search script sort text as Number

I have an Elastic search field ID which is a Number but set in the index as a "text". I cannot change the index because of the huge volume of data to reload. I

How to make a script to check if a package is installed and install it if not?

I am trying to make a bash script for work that would check the system for a handful of installed packages and if it dosent find them, install them. I have atta

How to read each cell of a column in csv and take each as input for jq in bash

I am trying to read each cell of CSV and treat it as an input for the JQ command. Below is my code: line.csv | Line | |:---- | | 11 | | 22 | | 33 | Cod

Python password reset Pexpect script execution have no effects afterword's, it throws no errors during execution

import pexpect import pxssh import sys child1 = pexpect.spawn('su root -c "passwd mansingh"') print(child1.before) #creation of log file child1.logfile = open(

Convert text to associative array in bash script [closed]

Hi I am new to bash scripting. I have a text as shown below input = {'A': '1' 'B': '2' 'C': 'Associative_Array'} I want to convert the above t

How to concatenate variables and strings as a full path for the "output file" of an ffmpeg command in a bash script

I'm trying to learn to bash scripting and I tried to use variables and arguments, etc. to specify a complex output file name to a ffmpeg command as follows : fo

Is it possible to open a terminal using "open -a Terminal" and then send commands to that new instance, automatically?

I'm currently creating an app for some co-workers to automate our process of starting/stopping our development environments at the push of a button using SwiftU

Windows azure mobile service script how to?

Long time ago, at the time of Windows Phone, I created an Azure mobile services and I used scripts to modify data inserted in table. A few days ago, I created a

How could I edit the information on popup window in NetSuite?

How could I edit the information on popup window in NetSuite ? Like this photo, I wanna to show some other information in this popup window . enter image descri

permission denied while building project in jenkins . /tmp/jenkins7547483698503669612.sh: line 2: /root/hello.sh: Permission denied

I am facing an issue when I am trying to run the Jenkins job. I have tried to change the permission of the script, but it seems the error persisted. chmod -R 77

How to Replace text in the output from a Batch Script

I have a script I run and this is a sample output: OK J: \\har-fs01\dept OK K: \\erl-tbafs01.tbamerica.com\share OK

Unity input is not working, how to fix it?

this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // Start is called