set folder.jpg file as icon on each folder

Joined
Jan 28, 2014
Messages
12
Reaction score
0
Hi there!

Well, I'm a newbie on apple computers..
And I have a question that I can't find any solution on the internet...

When I was using Windows XP, I had all my music separated into different folder for each album. In each folder I would put the cover, calling it "folder.jpg", and windows would assign the folder icon as that jpg.

now, how can i assign each folder's folder.jpg as the icon for each folder, so that in Finder the folder icon is the cover?

Is this can be achieved by the automator?

p.s. : I know the manual way to copy paste an image to a folder, BUT this would need to be done in an automated manner, as i have thousands of albums.

Thank you in advance. ;-)
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Hi again,

25 views until now, and I'm searching to find a solution to this...

So, I find this one from an old thread :

- Open Automator and create a new workflow with the following items in order:
- Ask for Finder items select Type: Folders
- Get folder Contents with Repeat for sub folders selected
- Filter Finder Items with File Type is JPEG
- Add Thumbnail Icon to Image Files
- Run Shell Script
- In the shell script you want to pass the input as arguments and paste the following into the text window

for f in $@
do
dir=`echo $f | sed 's/\(.)/./\1/'`
/opt/local/bin/seticon $f $dir
done

- Save as application and run.

I follow step by step, these instructions, BUT SOMETHING WENT WRONG :-(

Screen Shot 2014-01-28 at 7.31.34 PM.png



I have to mention that the previous example referred to MAC OS X v.10.5 Leopard.

I am running MAC OS X v.10.9.1 Mavericks.

Also, I want to tell you that all my folders (that I want to do the automated job), are in my external hard drive called : MY BOOK. (not in the Macintosh HD drive)


So, how can I do this workflow work ???

PLEASE HELP ME!!!
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Hi again!

Well, anyone can help to solve this?

Let's say I want to automate the one step procedure in any program language or interface...

The one step procedure is:
- Open folder's "get info" window.
- Get into the the folder and open the image with preview (in my case all images in all folder has the name "folder.jpg")
- cmd + A to select the image.
- cmd + C to copy the selected image.
- Select the small "blue" folder icon in the upper left corner in "get info" window.
- cmd + V to paste the selected image

Done!

How can I automate this procedure, to do it for all my folders???

PLEASE HELP!!!!
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Well,
9 passed.. 92 views...
Anyone that knows anything about this????

What kind of help forum is that?
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,106
Reaction score
497
Josef,

First off...hello and welcome.

I think the reason there hasn't been a response is due to many folks here not having much/any experience with Automator. Some folks here do, but maybe not enough to assist you in your questions. Your workflow seems to be on the right track, but unfortunately I don't have enough experience with Automator to assist. Maybe this would be easier in AppleScript?

Hopefully some of the others will chime in with their thoughts/ideas.

Sorry you haven't received a response until now. If I think of anything, or get a little more time to test it myself, I will let you know what I find.

C
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
This isn't an Automator error it's a shell script error, that's a whole different level of hurt...
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Thank you Cory Cooper for your reply!

I have to tell you that I'm not an expert on automator, either in AppleScript...
As I said in my 1st post, I'm a newbie in apple computers...

Well, do you think if I post my problem, in Applescript sub-forum, will I have a better luck?

Can I double post?

However, If you try this, in automator please let me know if you figure something out.

thanks again
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Thank you Kaveman for your reply too,

I know that's shell script error...
But do you know what I'm doing wrong? Even in the shell script?
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
Sorry, most Mac users use iTunes to manage their music, we don't know or care about the Folders they are stored in.

PS. We are all volunteers here, shouting and rudeness doesn't inspire us to help.
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Cory Cooper!!! You are my GOD!!!

Thank you a lot! I will try it immediately, and I will let you know if it works!

:)
 
Joined
Jan 28, 2014
Messages
12
Reaction score
0
Well, it works like a charm!!!

That's exactly what I was looking for!

You make my day brighter Cory Cooper!
;)
Thank you again and again!
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,106
Reaction score
497
No problem...glad it worked.

Sorry again for the delay in getting back to you originally,

C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top