image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
LinkBack Thread Tools
  #1  
Old November 15th, 2007, 04:25 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 7,015
Thanks: 34
Thanked 182 Times in 177 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
[HOWTO] Make Stacks always show original folder on top of a Stack

This is a little easy if you follow the steps for Set Stack Icon.

Steps:

1) Download the Automator Work flow Set Stack Icon (workflow).

2) Unzip the download and place it in the folder /Users/YourUserName/Library/Workflows/Applications/Finder/ (make the folders Workflows if doesn't exist then create the folders /Applications/Finder/ inside the Workflows folder).

3) Drag out the Stack you now have but remember where it is in the Finder for the next action.

4) Find the Folder (Like Downloads in /Users/YourUserName/Downloads) and highlight it (just highlight it only). Then right click on it and when the contextual window pops-up select More-AutoMator-Set Stack Icon . This will create a new folder inside the folder that looks like • Set Stack Icon . this folder will have the same look as the parent folder.

5) Drag the parent folder (like the folder Downloads) back to the Dock to make a Stack.

Following these steps and you will and it will look like the Stacks all start with a folder look on top of the Stack now.
__________________
Mac Pro Dual 2.8 Quad (1st gen), 14G Ram, Two DVD-RW Drives, OS X 10.6.2
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.6.2
2TB Time Capsule
32G iPhone 3GS Black

Last edited by Satcomer; November 17th, 2007 at 05:40 PM.
Reply With Quote
  #2  
Old November 17th, 2007, 10:41 AM
Registered User
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
crazymoo is on a distinguished road
How do you undo it ?
Reply With Quote
  #3  
Old November 17th, 2007, 05:41 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 7,015
Thanks: 34
Thanked 182 Times in 177 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
Take the folder that set Stack Icon out of the parent folder (that is in the Stack). It's that easy.
__________________
Mac Pro Dual 2.8 Quad (1st gen), 14G Ram, Two DVD-RW Drives, OS X 10.6.2
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.6.2
2TB Time Capsule
32G iPhone 3GS Black

Last edited by Satcomer; November 18th, 2007 at 03:47 PM.
Reply With Quote
  #4  
Old November 18th, 2007, 10:22 AM
Registered User
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
crazymoo is on a distinguished road
hey..thanks.
Reply With Quote
  #5  
Old March 13th, 2009, 08:25 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cyberchaos is on a distinguished road
Your help is needed.

I applied your Set Stacks Icon workflow to my Applications folder in "home" folder and now it's TOTALLY empty and I've lost everything. How could I revert it back to normal?

I followed the steps as detailed above but now I've lost all my applications!!!

Below are the workflow contents:
Quote:
require "fileutils"
require "osx/cocoa"

include FileUtils
include OSX

# Determine stack folder name.
stack_folder = ARGV[0]
exit if stack_folder.nil?
unless File.directory? stack_folder
stack_folder = File.dirname(stack_folder)
end

# Create an empty file for the stack icon.
icon_file = "#{stack_folder}/ • Stack Icon"
touch icon_file

# Set the file's icon.
icon = NSWorkspace.sharedWorkspace.iconForFile(stack_folder)
NSWorkspace.sharedWorkspace.setIcon_forFile_options_(
icon, icon_file, 0)

# The path of the icon file will be the result of this step.
puts icon_file
Reply With Quote
  #6  
Old March 13th, 2009, 01:11 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 7,015
Thanks: 34
Thanked 182 Times in 177 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
Quote:
Originally Posted by cyberchaos View Post
I applied your Set Stacks Icon workflow to my Applications folder in "home" folder and now it's TOTALLY empty and I've lost everything. How could I revert it back to normal?

I followed the steps as detailed above but now I've lost all my applications!!!
How? I said it goes into "/Users/YourUserName/Library/Workflows/Applications/Finder/ (make the folders Workflows if doesn't exist then create the folders /Applications/Finder/ inside the Workflows folder)". If you put in into the /Applications/ folder what were you thinking?

Take it out of the /Applications/ folder and see if your Applications come back. Plus if it erased your applications how did you post your problem? If it erased all your applications it would have erased the browser you are using too.
__________________
Mac Pro Dual 2.8 Quad (1st gen), 14G Ram, Two DVD-RW Drives, OS X 10.6.2
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.6.2
2TB Time Capsule
32G iPhone 3GS Black

Last edited by Satcomer; March 13th, 2009 at 01:24 PM.
Reply With Quote
  #7  
Old March 13th, 2009, 03:17 PM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cyberchaos is on a distinguished road
First things first, I appreciate that you posted the how-to. I followed all the steps exactly as described above and found the Workflow folder and copied the workflow file there and got it to work.

However, upon applying the workflow to the Applications folder, all the applications inside the folder disappeared and now I can only find a new folder with " • Stack Icon" as the file name.

As you know, in Leopard there are two Applications folder, one is in the Hard disk root directory and another in "home" folder, which belongs to the currently logged-on user. Gladly, the one in the root directory still contains all my applications but the one that I applied the workflow to is now empty. That is the reason that I am still able to work with my MBP. I wish I hadn't stopped using Time Machine last month. I am assuming that before applying the workflow, the Applications folders were linked to each other but now they are not. I moved the " • Stack Icon" to Trash but nothing happened, do you think there is any way to fix this problem or I have take the longer way and reinstall the mac?

Last edited by cyberchaos; March 13th, 2009 at 04:51 PM. Reason: mistakes
Reply With Quote
  #8  
Old March 13th, 2009, 11:30 PM
Satcomer's Avatar
In Geostationary Orbit
 
Join Date: Jul 2002
Location: Northern Virginia
Posts: 7,015
Thanks: 34
Thanked 182 Times in 177 Posts
Satcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the roughSatcomer is a jewel in the rough
What I am saying is the Automator workflow only makes a folder with a • and a space in front of the folder name. This way it will always be the first name in a folder so when you drag the parent folder to the dock it will still look as the parent folder (with the icon picture). If it erased your /Users/YourUserName/Applications/ then you have way bigger problems with your Mac! So follow these steps to see what happened.

1. Launch the application /Applications/Utilities/Console and review the logs to see what happened.

2. Remove the Set Stack Icon created.

Is the removed programs in your Trash Can? Did you have to put in your UserName/Password in?
__________________
Mac Pro Dual 2.8 Quad (1st gen), 14G Ram, Two DVD-RW Drives, OS X 10.6.2
Mac Book Pro Core 2 Duo 2.16Ghz, SuperDrive, ATI X1600, 2GB RAM, OS X 10.6.2
2TB Time Capsule
32G iPhone 3GS Black
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 04:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.