Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

plasticparadox

macrumors 6502
Original poster
May 24, 2003
484
1
I use two programs which use those 3rd-party menu extras. You know, the non-Apple ones that you can't move around with the command key + dragging. Specifically, I have Synergy and Adium up there.
I'm being picky, but I want Synergy to load after Adium, so that the Synergy buttons will be on the left.

I'm thinking perhaps an AppleScript will work; making one that will first load Synergy, wait for it to finish loading, and then start Adium. Then I can set the script to load when OS X starts up.

Can anyone point me in the right direction? I don't know a lot about AppleScript.

TIA
 

stridey

macrumors 65816
Jan 21, 2005
1,136
0
Massachusetts, Connecticut
plasticparadox said:
I use two programs which use those 3rd-party menu extras. You know, the non-Apple ones that you can't move around with the command key + dragging. Specifically, I have Synergy and Adium up there.
I'm being picky, but I want Synergy to load after Adium, so that the Synergy buttons will be on the left.

I'm thinking perhaps an AppleScript will work; making one that will first load Synergy, wait for it to finish loading, and then start Adium. Then I can set the script to load when OS X starts up.

Can anyone point me in the right direction? I don't know a lot about AppleScript.

TIA

This may be totally wrong (nice disclaimer, huh?) but I believe OS X opens apps at login in the order they are in the list (in System Preferences -> Accounts). So items higher in the login list get opened before items lower on the list.
 

plasticparadox

macrumors 6502
Original poster
May 24, 2003
484
1
stridey said:
This may be totally wrong (nice disclaimer, huh?) but I believe OS X opens apps at login in the order they are in the list (in System Preferences -> Accounts). So items higher in the login list get opened before items lower on the list.

That worked in Panther, but I can't seem to move apps around under Tiger.
 

PlaceofDis

macrumors Core
Jan 6, 2004
19,241
6
stridey said:
This may be totally wrong (nice disclaimer, huh?) but I believe OS X opens apps at login in the order they are in the list (in System Preferences -> Accounts). So items higher in the login list get opened before items lower on the list.

indeed this is how OS X handles it, so you may have to remove them from the list and readd the right one so it shows up after the app you want to open first.
 

plasticparadox

macrumors 6502
Original poster
May 24, 2003
484
1
PlaceofDis said:
indeed this is how OS X handles it, so you may have to remove them from the list and readd the right one so it shows up after the app you want to open first.

Nope, not working. Any other ideas?
 

iMeowbot

macrumors G3
Aug 30, 2003
8,634
0
plasticparadox said:
Nope, not working. Any other ideas?
You could list your programs in an Applescript (a bunch of 'tell program "foo" to activate' lines) and then run that script at login time instead of listing the programs directly.

If these programs don't cause much to happen that you can detect from a script, you may have to resort to throwing a few 'delay 5' or whatever in the script to make sure they proceed far enough to get your menu extras in the order you want.

To make your script into something that can be run at login, set the file format to "application" in the File->Save dialog. Things don't need to be that complicated:
Code:
-- start up  iTunes normally
tell application "iTunes" to activate

-- wait a few seconds for no particular reason
delay 5

-- launch and hide Mail
tell application "Mail" to activate
tell application "Finder" to set visible of process "Mail" to false
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.