User Name
Password
AppleNova Forums » Genius Bar »

iPhoto Disaster!!! Maybe apple script solution?


Register Members List Calendar Search FAQ Posting Guidelines
iPhoto Disaster!!! Maybe apple script solution?
Thread Tools
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-08-13, 20:44

My dad and I both have sony cameras. This means they both generate files beginnig with DSC****.jpg

Now we want to combine our photos into one huge iPhoto library, but as you might have guessed, there are many duplicate names.

Note: I have both of our photos in individual folders for now.

The best way to do this I think would be to somehow add an "a" to the beginning of all my pictures so there woludn't be the duplicate names deal.

I am no good with apple script, but is it possible to have a script that takes all the files from a given folder and adds an "a" in front of all the file names?


thanks in advance. I need to do solve this soon because I'm leaving for the US soon.

thanks.
  quote
Luca
ಠ_ರೃ
 
Join Date: May 2004
Location: Minnesota
 
2004-08-13, 21:34

Yep. Here's what I'd do: Search for "Install Script Menu." Double click to install a handy little Applescript menu in the menubar. Then, select all the photos that you want to add "a" (or whatever) to the beginning of. Go into the script menu, into the "Finder" scripts, and there should be one that relates to changing file names. From there it should be simple.
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2004-08-13, 21:45

i wish they had an option to allow you to sort by camera that took the photos.
  quote
Ryan
Veteran Member
 
Join Date: May 2004
Location: Promise Land of Trustafarians
 
2004-08-13, 23:40

You could use A Better Finder Rename.

http://www.macupdate.com/info.php/id/6322

Easier than Applescript.
  quote
usurp
High Monarch of MacDebate
 
Join Date: Jul 2004
Location: Kuwait
 
2004-08-14, 00:47

how about you export all of your dads pictures from iphoto and choose the option to rename the files according to album name. and then burn them on a cd and drop the pics into your iphoto.

this would solve combining your pics now. later on when you want to add new photos use GraphicConverter (came with my powermac). Manually copy pictures from your camera to the desktop, then Use the option convert in GraphicConverter. You can Batch rename files using that. Once you are done drag and drop them into iphoto.

portable: MacBook 2.4Ghz, 2GB RAM, 250GB HD | personal: PowerMac G5 dual 2.3ghz, 6GB RAM, 6TB HD | work: MacBook Pro 2.5ghz, 2GB RAM, 160GB HD | car: Alpine iDA-W407 with black iPod 80GB | pocket: iPhone 3GS with Ultimate Ears Super.fi 5 Pro's
  quote
Luca
ಠ_ರೃ
 
Join Date: May 2004
Location: Minnesota
 
2004-08-14, 00:50

Ouch. usurp, that's a ton of steps. iPhoto will never overwrite one file because another has the same name, so if you have two pictures called "DSC0041.JPG," that's okay. All Steve has to do is organize his two sets of photos right now (by using Finder's built in renaming script) and then, whenever he imports pictures from either digital camera, he can make sure he adds each roll to the proper album. It's a lot easier and doesn't require GraphicConverter or the burnination of a CD.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-08-14, 04:34

Quote:
Originally Posted by Luca
Ouch. usurp, that's a ton of steps. iPhoto will never overwrite one file because another has the same name, so if you have two pictures called "DSC0041.JPG," that's okay. All Steve has to do is organize his two sets of photos right now (by using Finder's built in renaming script) and then, whenever he imports pictures from either digital camera, he can make sure he adds each roll to the proper album. It's a lot easier and doesn't require GraphicConverter or the burnination of a CD.

Yep, exactly what I want to do.

You read minds don't you? First you find out I'm gay and now this.


And it's bloody annoying because iPhoto lets you add 2 files with the same name, but then when I want to take all the photos from this album out and put them into a folder it will say I don't have enough disk space.

What a pain.

Thanks for all your help, I shall try it right now.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-08-14, 04:59

A better finder rename forces you to pay for processing files more than 10 at a time, so screw that.

The Apple script works... but it's painfully sloww

I've got 4000 photos to process and it's taking AGES.

Moreover, the apple script doesn't give you an indication that it's doing something.

  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2004-08-14, 14:13

Quote:
Originally Posted by stevegong
The Apple script works... but it's painfully sloww

I've got 4000 photos to process and it's taking AGES.
I know it's too late now, but you would probably have been much better off by using the terminal and the mv command. Using the terminal is by far the fastest way to execute batch changes on the filesystem.

Here are a few example of how it could be done:
http://www.macosxhints.com/article.p...10509130450691

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-08-14, 15:26

Crud, I'm now putting all the pictures in the folder into a new iPhoto library.

And this is LITERALLY taking AGES.



It's adding 14,570 pictures to iPhoto, and a good number of the pics are takenwith the rebel, so about 3 megs each picture.

This must be the most painful thing I've ever had to go through. And it's the second try. The first time the computer locked up halfway through at about 3 hours into the process.
  quote
Maciej
M AH - ch ain saw
 
Join Date: May 2004
 
2004-08-14, 15:30

ouch steve, it must take forever to open iPhoto.
  quote
PXLpainter
Member
 
Join Date: Jul 2004
Location: SoCal
 
2004-08-23, 22:24

Quote:
Originally Posted by stevegong
Crud, I'm now putting all the pictures in the folder into a new iPhoto library.

And this is LITERALLY taking AGES.



It's adding 14,570 pictures to iPhoto, and a good number of the pics are takenwith the rebel, so about 3 megs each picture.

This must be the most painful thing I've ever had to go through. And it's the second try. The first time the computer locked up halfway through at about 3 hours into the process.
Okay - I've tried this in the past and got HORRID results! It seems that iPhoto will NOT recognize any files/folders you manually put in there. When I've had catalog issues with it or just wanted to share photos between two computers, I've had a hell of a time! Ended up with a big honkin' MESS - incorrect dates, etc... so I'm looking for alternatives to iPhoto right now.

Jeff

Life is hard... wear a cup.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-08-24, 02:33

Quote:
Originally Posted by PXLpainter
Okay - I've tried this in the past and got HORRID results! It seems that iPhoto will NOT recognize any files/folders you manually put in there. When I've had catalog issues with it or just wanted to share photos between two computers, I've had a hell of a time! Ended up with a big honkin' MESS - incorrect dates, etc... so I'm looking for alternatives to iPhoto right now.

Jeff

What do you mean? It worked just fine for me.

Oh, do you mean you put the pictures in the iPhoto Library folders yourself? Obviously that wouldn't work. You need to import them from the iPhoto application. The dates should be embedded in the photo itself so shouldn't be a problem.


I agree though, iPhoto is a bit dodgy and I don't feel like my photos are very safe.
  quote
MINK
Member
 
Join Date: Feb 2006
 
2006-04-01, 05:21

your camera costs $1000, you have 15000 photos, err.... you're not supposed to be using iPhoto, it is made deliberately rubbish so that it doesn't annoy software developers of "real" products, and makes people upgrade to other stuff, so the wheels of capitalism can keep on a'turnin'
  quote
euain
Member
 
Join Date: Jan 2005
Location: UK
 
2006-04-01, 06:19

Rename a ton of files is easy at the terminal (using bash scripting).. On the command line, just type something like:
Code:
for file in $(find . -name \*.jpg); do newname=a_new${file}; mv $file $newname done
Just set the term in find to find the files you want. See man find. Then newname should just be set to what you want the new names to be. So a${file} in the original request. You may be able to wrap this in an automator action if you need to do this often?

Disclaimer - please try this on a couple of files first and backup the directory of files before running it. I haven't tested this.
  quote
Wyatt
Veteran Member
 
Join Date: Mar 2005
Location: Near Indianapolis
 
2006-04-01, 12:45

Quote:
Originally Posted by MINK
your camera costs $1000, you have 15000 photos, err.... you're not supposed to be using iPhoto, it is made deliberately rubbish so that it doesn't annoy software developers of "real" products, and makes people upgrade to other stuff, so the wheels of capitalism can keep on a'turnin'
I'm not sure I'd say that it's "deliberately rubbish". It's just not a professional app, and when you're using professional equipment, you should be using professional software. For people with more basic, consumer cameras, iPhoto is great. For people with more professional cameras, it's just not powerful enough. (Although, from what I've read, iPhoto 6 might work better for higher-end cameras.)

Twitter: bwyatt | Xbox: @playsbadly | Instagram: @bw317
  quote
ghoti
owner for sale by house
 
Join Date: Apr 2005
Location: Charlotte, NC
 
2006-04-01, 12:54

A Rebel is a professional camera? Since when? This talk about "professional" is complete rubbish ... a piece of equipment doesn't make you a professional any more than a hammer makes you a carpenter, or a brush makes you a painter.

Anyway, if you're looking for a professional application, try iView Media. Of course, since you're using a professional camera, you have to get iView MediaPro. Anything else would be just too unprofessional. Also, iView Media only lets you put 8,000 files into one database. But it does let you open several data bases at the same time, and easily move files between them. Plus, you get to decide on the directory structure yourself. Just like the pros.
  quote
maCar
New Member
 
Join Date: Nov 2005
Location: South Beach,Fl
Send a message via AIM to maCar  
2006-04-02, 10:25

Quote:
Originally Posted by euain
Rename a ton of files is easy at the terminal (using bash scripting).. On the command line, just type something like:
Code:
for file in $(find . -name \*.jpg); do newname=a_new${file}; mv $file $newname done
Just set the term in find to find the files you want. See man find. Then newname should just be set to what you want the new names to be. So a${file} in the original request. You may be able to wrap this in an automator action if you need to do this often?

Disclaimer - please try this on a couple of files first and backup the directory of files before running it. I haven't tested this.




Automator is your best shot, i disabled my auto-import to iphoto, istead i use an Automator action >select items>rename>import into iPhoto + delete from original source <<< all in one
>>send me a private message and i'll send you my workflow if you don't feel safe doing it yourself
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
iTunes & Pepsi again... Quagmire General Discussion 37 2004-07-31 03:56
Apple releases updated Power Mac G5s staph Apple Products 43 2004-06-09 13:20
*CONFIRMED* There is an Apple PDA!! And other musings. HOM General Discussion 9 2004-06-08 20:04
Apple livid over Toshiba iPod leak curiousuburb Speculation and Rumors 11 2004-06-05 17:49
Apple Spamming .Mac Users????? Paul General Discussion 5 2004-05-30 18:02


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 13:18.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova