|
|
Easier
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
Easier
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
Easier
So, how can i get it to hide all the apps and return to the Finder?
applescript answer
try this applescript:
Easier
am I doing something stupid?
Easier
figured it out - I hadn't used "open with" to change the opening app to the terminal
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|