Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Easier | 19 comments | Create New Account
Click here to return to the 'Easier' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easier
Authored by: bluehz on Oct 29, '02 10:52:03AM
An even easier way of doing this - after creating the script, you can move aliases in and out of a directory to modify action instead of hardwiring the launched apps into the actual script. Create dir somewhere and fill it with aliases of apps you want to open. Say for example. ~/Documents/LoginApps Then create this shell script (as described in original hint). Naming it something with .command at the end.
#!/bin/sh # This will open all apps who have aliases in the LoginApps dir. /usr/bin/open /Users/username/LoginApps/* # The rest of this is optional, I use the script as a startup app # by placing it in the LoginItems, then all the apps are launched # at boot. The code that follows simply hides all teh apps it opens # and leaves me a nice clean Desktop/Finder view each restart. You # can delete as desired. Also - the original sleep command may # need to be tweaked to your needs. It must wait for the apps to # at least partially open before the applescript below can actually # hide them. /bin/sleep 45 # this is an applescript that hides all apps and returns to the Finder /usr/bin/osascript

[ Reply to This | # ]
Easier
Authored by: bluehz on Oct 29, '02 10:55:38AM

Sorry - I have tried EVERYTHING to get this thing to post the proper characters req to display the script above - its not going to do it. It displays fine in the preview then as soon as I hit the submit button it mangles the last of the script.So the script above is chopped of at the end. Just remove everything BELOW

/usr/bin/open /Users/username/LoginApps/*

and it will work fine

PS - is there a guide somewhere on just what Geeklog will accept and what it mangle and maybe some tips from teh pros on sneaking stuff in...



[ Reply to This | # ]
Easier
Authored by: stephen007 on Nov 05, '02 09:36:15PM

So, how can i get it to hide all the apps and return to the Finder?

# this is an applescript that hides all apps and returns to the Finder

Thanks,

Stephen



[ Reply to This | # ]
applescript answer
Authored by: poultryfarm on Nov 07, '02 06:11:06PM

try this applescript:

tell application "Finder"
set visible of every process whose visible is true and name is not "Finder" to false
end tell



[ Reply to This | # ]
Easier
Authored by: diskgrinder on Oct 31, '02 08:03:51AM

am I doing something stupid?
I wrote it in bbedit, saved with .command, chmodded, doubleclicked, and it just opened the file in bbedit again???



[ Reply to This | # ]
Easier
Authored by: diskgrinder on Oct 31, '02 09:20:58AM
figured it out - I hadn't used "open with" to change the opening app to the terminal

[ Reply to This | # ]