03-09-2010
Well, if you are using Open Directory you can use MCX to set those, if not you can also modify the user template in /System/Library/User Template so that every time a user account gets created it will pull those preferences from the template.
Any other scripts you want to run you can use launchd to automate them.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Please help me to make this script to create a key based on these parameters:
the output of $USER is smithm for mike smith
the output of id smithm is uid=1042(smithm) gid=20(staff) groups=20(staff), 1025(group1), 1057(group2), 1028(group5), 1038(group3), 1037(group4)
I need a script that... (0 Replies)
Discussion started by: glev2005
0 Replies
2. Shell Programming and Scripting
I am running Mac OS X (10.5). I run the following script successfully in terminal in order to split an mp3 file into 3 smaller mp3 files...
split -b 8667k -a1 Monday.mp3 Levin-Hour_; ls Lev* | sed "s/.*/mv '&' '&.mp3'/g" | zsh
However, when I run a similar script within the Applescript editor... (2 Replies)
Discussion started by: tgaleza
2 Replies
3. Shell Programming and Scripting
I developed a script in Lingon (which is an automated script editor developed for OS X) that is used to automatically restart programs only if they crash. The script itself does just that, but I only want it to load if I'm going to use the specific application that it's designed to protect. In... (3 Replies)
Discussion started by: JFraser1
3 Replies
4. OS X (Apple)
I developed a script in Lingon (which is an automated script editor developed for OS X) that is used to automatically restart programs only if they crash. The script itself does just that, but I only want it to load if I'm going to use the specific application that it's designed to protect. In the... (2 Replies)
Discussion started by: JFraser1
2 Replies
5. Shell Programming and Scripting
What I want my script to do is to run a command in Terminal and close that same Terminal window when the process is complete.
Of course I could ad a delay of 6 seconds to complete the process, but it may not be enough every time.
To simplify my question, this is what I want to achieve.... (0 Replies)
Discussion started by: ShadowofLight
0 Replies
6. OS X (Apple)
What I want my script to do is to run a command in Terminal and close that same Terminal window when the process is complete.
Of course I could ad a delay of 6 seconds to complete the process, but it may not be enough every time.
To simplify my question, this is what I want to achieve.... (9 Replies)
Discussion started by: ShadowofLight
9 Replies
7. Shell Programming and Scripting
I'm new using Unix commands in applescript. The following script you choose different folders with PDfs, get file count of PDfs on chosen folders, & write the results in text file.
set target_folder to choose folder with prompt "Choose target folders containing only PDFs to count files" with... (0 Replies)
Discussion started by: nellbern
0 Replies
8. Shell Programming and Scripting
The following command works perfectly in Terminal, but not in Applescript. (Returns "unknown token" error for square brackets.)
(new to site. sorry.)
I have an Applescript that is designed to find and remove any square-bracketed text, including the square brackets.
I ran the following code from... (1 Reply)
Discussion started by: Phillip Acosta
1 Replies
9. OS X (Apple)
Hi all...
I am trying to create a shell project purely for this Macbook Pro.
I do NOT want to use SOX as the sampling _source_ but Quicktime
instead, the idea being that NO third party installs will be needed.
The code below works fine except the commented out Applescript line
does not do... (2 Replies)
Discussion started by: wisecracker
2 Replies
10. Post Here to Contact Site Administrators and Moderators
i posted an applescript question in the wrong area, trying frantically to delete or move before I get in trouble for posting question in wrong area.
it is the one about opening webpages and searching text with applescript, thanks (1 Reply)
Discussion started by: ilovedoritos
1 Replies
LEARN ABOUT CENTOS
template::stash::xs
Template::Stash::XS(3) User Contributed Perl Documentation Template::Stash::XS(3)
NAME
Template::Stash::XS - High-speed variable stash written in C
SYNOPSIS
use Template;
use Template::Stash::XS;
my $stash = Template::Stash::XS->new(\%vars);
my $tt2 = Template->new({ STASH => $stash });
DESCRIPTION
The Template:Stash::XS module is an implementation of the Template::Stash written in C. The "XS" in the name refers to Perl's XS extension
system for interfacing Perl to C code. It works just like the regular Perl implementation of Template::Stash but runs about twice as fast.
The easiest way to use the XS stash is to configure the Template Toolkit to use it by default. You can do this at installation time (when
you run "perl Makefile.PL") by answering 'y' to the questions:
Do you want to build the XS Stash module? y
Do you want to use the XS Stash by default? y
See the INSTALL file distributed with the Template Toolkit for further details on installation.
If you don't elect to use the XS stash by default then you should use the "STASH" configuration item when you create a new Template object.
This should reference an XS stash object that you have created manually.
use Template;
use Template::Stash::XS;
my $stash = Template::Stash::XS->new(\%vars);
my $tt2 = Template->new({ STASH => $stash });
Alternately, you can set the $Template::Config::STASH package variable like so:
use Template;
use Template::Config;
$Template::Config::STASH = 'Template::Stash::XS';
my $tt2 = Template->new();
The XS stash will then be automatically used.
If you want to use the XS stash by default and don't want to re-install the Template Toolkit, then you can manually modify the
"Template/Config.pm" module near line 42 to read:
$STASH = 'Template::Stash::XS';
BUGS
Please report bugs to the Template Toolkit mailing list templates@template-toolkit.org
AUTHORS
Andy Wardley <abw@wardley.org> <http://wardley.org/>
Doug Steinwand <dsteinwand@citysearch.com>
COPYRIGHT
Copyright (C) 1996-2012 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template::Stash
perl v5.16.3 2012-01-13 Template::Stash::XS(3)