Archive for the 'Applescript' Category

Using Perl references for developing

Wednesday, January 3rd, 2007

I found a good way to make use of a scalar reference in perl. For development when you are using a dev and live server, you can change some settings using a ref.
Here’s what I did recently. In this case I needed two different mount scripts, one for a dev server and one for a […]

Applescript and shell move files script

Tuesday, January 24th, 2006

Do you ever need to move a bunch of files to a specific location? Or do you want to backup certain files and need a nice method for moving them to a second drive or location? This following script can be helpful. You can re-write it for your particular purpose. I originally wrote it to […]

Applescript and Quark

Thursday, August 18th, 2005

Sorry for the delay on approval of comments. I’ve been busy and I didn’t realize people were contributing. Thanks for all the recent contributions. I really put most of these scripts here as a repository for myself. If I’m working on a project and I can’t remember how I did something I go back to […]

Script to mount a server

Tuesday, July 27th, 2004

In OS X you use the Go menu to Connect to a server. If you have installed the Script menu that comes with Applescript in your Applications folder you can place an applescript in there that will be a shortcut to mounting an often used server. Below is a script you can use:
tell application “Finder”
–activate
try
mount […]

Using Applescript with PERL

Sunday, July 18th, 2004

One of the great advantages of OS X is that you can control applications using Applescript. There is a command line version of calling applescript called osascript. The really cool thing is being able to use this command inside of another script such as a perl script or a shell script. One of the things […]