The scripting tag has no wiki summary.
0
votes
0answers
6 views
Photoshop action to set marquee width and height
For iPhone and iPad screenshots, I like to crop out the status bar. I can never remember the exact pixel dimensions to enter into the marquee tool and when I do find out, it's fiddly to enter it. Is ...
2
votes
1answer
56 views
multiple users' firefox bookmarks to new laptops
Our workplace is getting new laptops in a month and they will need their bookmarks transferred to the new laptops. We don't do roaming profiles for them (they use one laptop on our domain). I am ...
2
votes
2answers
34 views
How do I use BASH to change “A” Train.flac to 'A' Train in a filename?
I've tried every combination of backslash and asterisk and curly brackets, nothing seems to work. I'm using the terminal in OS X and I would really appreciate it if someone could steer me straight.
0
votes
2answers
30 views
Scripting in Illustrator?
I need to essentially draw a print-ready grid using some kind of scripting language. I have the following requirements:
It must be 300dpi.
It must be size A4.
It must have solid lines every ...
1
vote
2answers
66 views
Cron daemon running status check
I have a script which need to be run as cron job.
In the staging environment i could run the script as a cronjob. but in the production environment it is not working,
so i checked whether cron ...
1
vote
3answers
191 views
When to use Bash and when to use Perl/Python/Ruby?
We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
2
votes
1answer
97 views
cmd to change Java settings
Is there a way to have a cmd add an exception to the proxies in Java?
(Control panel > Network settings > Advanced nework settings)
It should be something a user can double-click or wrapped in a ...
0
votes
1answer
27 views
perform actions on a web page from desktop shortcut
I'm looking for a way to create windows desktop shortcuts that will open a web page and execute a javascript function in that page. The page is a form for filling attendance hours with a function to ...
5
votes
1answer
68 views
A scripting language for videos
I'm searching for a way to to create a video sequence with something like a scripting language.
The goal is to automate the process of generating a script which describes something like:
place video ...
1
vote
0answers
50 views
Scripting / Macro tools for Bluetooth etc on Windows
Say I have to connect a Bluetooth headset, it takes a long time to do it manually each time (and afterwards its the sound settings).
What kind of scripting or macro tools would I use to automate ...
1
vote
1answer
73 views
How can I make my other computer run a program?
If I have two computers, both running Windows 7, on my home network, is there some way to write a script so that I can click on a single icon on the one computer and make the other computer execute a ...
0
votes
0answers
12 views
How to replace or trim or filter a string before use within Sieve script?
As per subject.
I want to be able to, for example, remove or replace all dots before applying fileinto action.
example:
if header :regex "List-ID" "<([^@]+)" {
# here would be nice to ...
2
votes
2answers
218 views
Scripted fast user switching on OSX Lion
I would like to automate fast user switching for a set of machines. My current, broken solution is this applescript snippet, adapted from Leopard/SL scripts found online:
set thePassword to "foo"
set ...
1
vote
1answer
68 views
vim automation ex commands
Yeah, I know, I could just use sed. But lets assume I'm some sort of sicko. A masochist if you will..
I have a file, /tmp/a.script, containing:
%s_"taxonomy\.php[^"]*\([0-9]\)_"\1.taxonomy_g
...
0
votes
0answers
101 views
LibreOffice Impress template: substituting text obtained from a list of texts?
I have:
An Impress template with a text: The Name (for example)
A text file with a list of n names (one per line)
What I would like:
n Impress files for each name in the file with the text The ...
1
vote
1answer
99 views
Monitor a Folder and Email New Files
I am looking for a Windows application or script that will monitor a folder (that I define), and when a new file is added, it will email said file to a particular email address (that I define). Any ...
1
vote
1answer
99 views
How to rename and move files to new directory
I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the ...
4
votes
4answers
3k views
bash script to delete old files older than x days with subdirectories
Hi I'm new to scripting and I'm trying to delete a ton of files older than x days
Now I have a script to do that
find /path/to/files* -mtime +10 -exec rm {} \;
But this will also delete the ...
0
votes
1answer
32 views
Obtaining Iptables info using a script
I have an iptables rule and I have to write a script that gets the numbers of packets and bytes target for that rule. I know that that command iptables -L -v -x shows that info, but I don't know how ...
1
vote
1answer
142 views
Logoff and then sleep in Windows 7
I have a habit to logoff and then sleep the computer in order to eliminate boot time but restart all user programs. I have to click logoff, wait for the login screen and then click sleep. I wonder if ...
1
vote
1answer
194 views
How to change color of Conky text via file/script?
I have a file which contains one word, "green", "yellow" or "red" (this file is updated via a cron job.
I would like to use that color to display text in Conky. The actual text would stay the same, ...
2
votes
2answers
291 views
Sending commands to parent tmux session from vim
I have a split window setup with vim and Lynx in tmux. I'm trying to build a script so that I can send a custom command to vim which will save the script I'm working on, switch focus to the Lynx pane, ...
0
votes
1answer
69 views
how to find cells that have a certain text in open office's calc (excel might work also)
I need to calculate averages on my expenses spreadsheet, so I figured out I could do something like this:
- get all cells that have the text "electric bill"
- get the cell at the right of that one, ...
-1
votes
1answer
31 views
Command line option for one line of program
Interpreters for scripting languages and suchlike often provide an option to specify one line of program on the command line itself. For Perl, this option is -e; for Python it's -c. Which of these is ...
0
votes
2answers
162 views
How to issue an rsh command to run in the background from a batch file?
How to issue an rsh command to run in the background?
Example:
Within a (Windows) batch file I call rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh,
which runs on a remote unix machine. This script ...
0
votes
0answers
416 views
Form macro in LibreOffice Base
I have a form in a LibreOffice Base document with a button on it. I want to display a query when the button get's pressed. How do I do it?
I have tried using the form editor to link a macro to the ...
0
votes
0answers
82 views
Lucid linux importing images to Scribus
I'm using Scribus to write a textbook with lots of illustrations. I'm trying to use a script I found here to do this, but get errors:
SyntaxError: invalid syntax
File "<console>", line 1
...
3
votes
5answers
176 views
How do I flip the line orders of a document with 500+ lines?
Line 1
Line 2
Line 3
Line 4
Line 5
should become
Line 5
Line 4
Line 3
Line 2
Line 1
I need a notepad script to do this.
2
votes
1answer
34 views
When I use sudo to run a command, aren't the environment variables visible?
$cat test
export var=value
$source ./test
$cat print.sh
echo $var
$chmod +x print.sh
$echo $var
value
$sudo ./print.sh
I get nothing.
I was expecting to see value.
What is going on?
0
votes
0answers
44 views
CScript Terminates before completing task
I am using the below with mods but ziping several Gb of info the last command is Wscript.sleep 2000.
I have extended this to 20,000 and 200,000 but I use the script vor various diferent sizes. Is ...
5
votes
2answers
490 views
Powershell: Get inital character string from file name and create directory from string, then move files
I have a folder with the following file names:
00150005D201110172338427995.vpf
00150005D201110180005318058.vpf
00150013D201110180014448082.vpf
00150013D201110180022268098.vpf
...
1
vote
2answers
135 views
Get the user's home when sudo-ing in a script ran by root
In the manpage of sudo I found the -H option, but I don't seem to understand how it works. The manpage says:
The -H ( HOME ) option sets the HOME environment variable to the
homedir of the ...
0
votes
3answers
80 views
How can I use vim to automate this…?
I'm implementing hundreds of similar functions at the moment which take on the form
String name(String arg1, String arg2, String arg3, String arg4) {
...
0
votes
1answer
313 views
House keeping removing 30+ days old files using shell script
So I have to bit of housekeeping for old backups and have the following code working on sh:
find /home/backups -mtime +30 -type f -exec rm -rf {} \;
This works fine as know the location/path, so ...
0
votes
2answers
79 views
Graphical Scripting Language
I would like to improve on the normal sleep inducing Powerpoint presentations with a moving graphical show for my "Bits to :- I'm sorry Dave" semester. So I am looking for a 3D graphics engine with ...
2
votes
1answer
444 views
How can I batch/mass create users for a Filezilla FTP server?
I recently inherited two FTP servers; both systems run Filezilla Server. One has a small user-base so creating users is a small task. The other is huge and needs to have 300+ users created. I estimate ...
1
vote
0answers
26 views
Solution for complex unattended installs?
What is the best way to do unattended installs of complex software (for example, advanced security systems such as dogles and/or network call-and-response) in win7? I've been looking at AutoIt, but it ...
1
vote
2answers
71 views
How can I merge two lists of emails to get rid of duplicates without any programming?
Say that I have two lists of emails, that look something like
foo@example.com, john@doe.com, boo@boo.com
boo@boo.com, jane@bigcorp.com
and I need to put them together into one big list while ...
0
votes
3answers
63 views
Scripts shell recording playback
I hope this makes sense. I use 'scripts' to make copies of my ssh sessions for various reasons.
When I access the logs via less, etc, I see this:
Script started on Mon 12 Sep 2011 08:59:14 AM CDT
...
2
votes
1answer
199 views
Is it possible to prevent the win7 suspend state while using JDownloader or MiPony using script?
Does anyone know if there is a way to prevent windows 7 to go to suspend while using JDownloader or MiPony? using scripting ? perhaps powercfg command ?
0
votes
1answer
32 views
Maintain bzip2ed directories on Windows
I have a folder that, besides other things, has folders named after dates, e.g. 20110908 20110909 and so forth. Every night, I would like to run a tool that checks for all folders matching that ...
0
votes
1answer
115 views
Outlook Script to Check for Hidden Attachment
I've got an outlook script which shows you the recipient and prompts the user "Are you sure you wish to send this e-mail to XXX?" However, we have an issue with a plugin we use to send secure files ...
0
votes
0answers
52 views
Tool to draw in the Mac desktop
Is there a tool invoking which I can draw lines at random locations in the Mac desktop without disrupting the ongoing interaction on the active window?
Some background context -- I want to take the ...
3
votes
1answer
385 views
Using launchd to kill and restart Finder in OS X
I'm trying to use a launchagent on login to kill the Finder, and then re-launch TotalFinder, to automatically apply the colorsidebar mod for OS X 10.7 (the mod can be found here).
If I use the ...
4
votes
1answer
519 views
How to execute a script on sleep, hibernate, resume, and shutdown
I keep alot of my classwork documents hosted on dropbox as well as my personal site for remote storage. This helps alot since I switch between an iPad, laptop and desktop, so there are no worries ...
0
votes
1answer
73 views
Script that runs a command with 'exec' doesnt end until 'Enter' is pressed
We have a KSH script that runs a process using exec and hangs.
We want to be able to run it automatically and keep it running in background.
We tried this:
./myScript.ksh &
However this left ...
0
votes
0answers
44 views
Eclipse Scripting
I would like to script Eclipse so that it can do some intelligent things for searches, find/replace, etc. I would also like to say, refresh the workspace or current project.
Is there a plugin that ...
0
votes
1answer
294 views
Windows 7 won't recognize backup set can I script extracting the files in some other way?
The Windows 7 Backup/Restore created multiple backup sets and I was able to restore the oldest version, but not the most recent, which is not seen by the application.
I do see all of the zip files ...
0
votes
1answer
68 views
Efficient way of handling file management?
So I work for this small company and what they currently have is a bunch of files on server being move from one place to another. They are in pdf, wpd, doc and xls format. Initially what happens is ...
3
votes
3answers
205 views
Is there a GUI type “choice” app for OS X? (similar to choice.com for PC)
I'm running a terminal script and I would really like to send option choices to the OS X GUI, similar to how choice.com works for Windows / DOS, but a GUI version.
I know I can use applescript's ...