New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Script to Open all Programs

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 19, 2006
Posts: 152
Slokunshialgo will become famous soon enough

Slokunshialgo is offline
At work, we have a number of Macs for student use, requiring us to make sure everything opens and runs properly every time we do an update, prior to distributing the new images to all the other macs around.

What my boss has asked me to do is make something, he doesn't care how, to open every program in the Applications folder one by one. So, basically, you might have iDVD open, the script, automator program, whatever, would then wait until it is closed, then go onto iMovie, wait, then go to iPhoto when iMovie is closed, etc. It would keep on doing this until every application has been opened.

Thus far, I have been able to make an Automator program that looks in the folder, gets all the programs contained therein, and open them. Unfortunately, it opens everything at once, which can quickly crash the machine.

Does anybody here know if this is doable? The only limitation is that it has to run without a terminal, which would probably rule out a bash script (Although I haven't tried this, so I cannot entirely rule it out). I'm not looking for an exact script to do this, but a starting point to figure this out. I've had suggested AppleScript, but I don't know this language at all, so I don't know what is possible with it, and what's not.

PC: Intel Core 2 Duo 2.66 GHz, 2 GM RAM, Total 750 GB HDD, Windows Vista Business (For gaming), Ubuntu 8.04 Hardy Heron (64-bit), Slackware 12 (For GTK# coding)
Mac: 1.66GHz, 1GB RAM, 60GB HDD, Mini
QUOTE Thanks
Brown Study

Brown Study's Avatar
Member Since: Mar 11, 2004
Location: Winnipeg
Posts: 1,964
Brown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to allBrown Study is a name known to all
Mac Specs: G4 Tiger and OS 9

Brown Study is offline
I'm no expert AppleScripter (as the following proves), but it would be easier to write if each Applications folder is absolutely identical to every other. You might then write something with Script Editor like this that would cover every app in each machine:

Tell application "Asteroids"
end tell
tell application "Bozo Breath"
end tell

etc. etc. through the entire list in the apps folder, then the Utilities folder apps, I suppose.

I'm sure there's an easier, faster way of writing it, involving repeats, aliases and stuff. But this one, unwieldy as it might get, should work I think.

If you try it, save the AppleScript as an application. If the script stalls, insert delays between each application and/or between each activation and quit:

tell application "Asteroids"
delay 1
end tell
delay 2
tell application "Bozo Breath"

etc. etc. You can lengthen the delays by using higher numbers. If you store the script in the Apps folder, don't include it in the list.
QUOTE Thanks

Willgecko's Avatar
Member Since: Nov 11, 2007
Location: USA
Posts: 33
Willgecko is on a distinguished road
Mac Specs: MacBook Intel Core 2 2.16 GHz 2 GB iPod video(30GB) and a Shuffle(new)

Willgecko is offline
yeah that should work
QUOTE Thanks

Post Reply New Thread Subscribe

« eclipse does not run in leopard? | Applescript Help- Gmail Drive creation »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Mac-Forums Switchers FAQ and Information eric Switcher Hangout 57 03-18-2010 08:25 AM
Some programs simply won't open... knightcrier OS X - Operating System 4 12-06-2006 12:09 PM
How to limit available programs to open a file when the file is highlighted? GT5.0 OS X - Operating System 10 02-10-2005 09:31 PM
Open Source is in Danger! dmonk Schweb's Lounge 3 08-28-2003 08:05 PM
Open GUI applications as root gatorparrots OS X - Development and Darwin 1 03-03-2003 06:56 PM

All times are GMT -4. The time now is 01:10 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?