Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Art & Graphic Design > How to write a Photoshop macro/Applescript?

How to write a Photoshop macro/Applescript?
Thread Tools
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 22, 2004, 07:38 PM
 
OK, photoshop users. I have a serious quetion for you.

I have about 600 slides my parents took of us kids from 1964 to about 1981 and they are scanned into the computer (after much effort). I have a dust and scratch removal filter installed that works great. However, because of the huge file size (80MB uncompressed), the filter takes a long time (a few minutes per picture) to run. I need to automate the process.

Can someone tell me how to write a macro or Applescript that works in Photoshop (Elements 2.0, actually) that will automatically load a picture, run the filter, save the picture, then repeat for all files in a folder until complete?

I'm a bird. I am the 1% (of pets).
     
Grizzled Veteran
Join Date: Nov 1999
Location: Rochester NY
Status: Offline
Reply With Quote
Oct 23, 2004, 10:38 AM
 
I don't know about PS elements, but photoshop has a batch command: file->automate_>batch. You will need to create the appropriate "action" first, though. I believe you can do this by hitting the record button on the bottom of the actions pallete.


Arrgh, I just found this link that says Elements can't do that...
“The love of liberty is the love of others; the love of power is the love of ourselves.” -- William Hazlitt
     
Eriamjh  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 23, 2004, 04:41 PM
 
Arrgh! I was afraid that was a PS only function. I think Applescript is my only hope, but I have no idea how to use it.

I'm a bird. I am the 1% (of pets).
     
Forum Regular
Join Date: Jun 2004
Location: Over there->
Status: Offline
Reply With Quote
Oct 24, 2004, 03:01 AM
 
Get a Adobe Photoshop CS tryout.
Its works 100% (that i know of) for 30 days.
Set up your action to run the filter of your choice...
Then run your batch over night. That should do it.

.. : Adobe Photoshop CS Tryout : ..
     
Eriamjh  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 24, 2004, 08:53 PM
 
I will do that. I will try to get back if successful (I have about 300 photos to manually crop before I am ready to run the batch scratch removal on all 650 photos).

Thanks!

I'm a bird. I am the 1% (of pets).
     
Grizzled Veteran
Join Date: Apr 2004
Location: Philadelphia, PA
Status: Offline
Reply With Quote
Oct 25, 2004, 03:31 PM
 
photoshop is not 100% scriptable anyway... the batch function runs perfect although it might take some tweaking to get it to do what you want.

Think of using it progressively, instead of everything in one run using one really complex action. It can be set up to generate a log instead of erroring out and stopping.

oh - - - and Yuck having to crop 350 images by hand... [ooofffahhh.]
     
Eriamjh  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 25, 2004, 03:49 PM
 
Originally posted by eyevaan:

oh - - - and Yuck having to crop 350 images by hand... [ooofffahhh.]
The autocrop was not working well. I'd rtather hand crop the images than miss-scan them and have to re-do them. This has not been a fun project, but I am preserving family history here (slides are 20 to 40 years old).

I'm a bird. I am the 1% (of pets).
     
Grizzled Veteran
Join Date: Apr 2004
Location: Philadelphia, PA
Status: Offline
Reply With Quote
Oct 26, 2004, 03:21 PM
 
working on one of those myself. Good luck, it certainly is worth all the time you put into it.
     
Forum Regular
Join Date: Jun 2004
Location: Over there->
Status: Offline
Reply With Quote
Oct 26, 2004, 04:19 PM
 
i have to agree... this is a project that is worth all the time and affort.
I did my families about 2 years ago.. what a job!
Good luck! If you have any more questions, please dont be afraid to ask!
     
Eriamjh  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 27, 2004, 09:34 PM
 
OK, I have the action working... somewhat. The problem is sometimes it wants me to hit enter to complete the "save" function (saving it as a jpg) and so it just sits and waits. Kinda blows the point of automating if I have to hit a key.

How can I prevent this from happening?

I'm a bird. I am the 1% (of pets).
     
Eriamjh  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: BFE
Status: Offline
Reply With Quote
Oct 29, 2004, 06:11 AM
 
OK. This is what i did to prevent the dialog box for JPG quality from popping up: I used Photoshop Elements to batch load and save all pictures before running the batch filtering.

For some reason, photoshop pops up the JPG quality dialog when saving if it has never saved the file before.

I'm about 33% done. I shoudl finish the rest this weekend.

I'm a bird. I am the 1% (of pets).
     
Grizzled Veteran
Join Date: Apr 2004
Location: Philadelphia, PA
Status: Offline
Reply With Quote
Nov 1, 2004, 03:26 PM
 
by now you got it licked but "Override Save function" should fix that.
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:48 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2