RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Software Photoshop, Lightroom, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Delete files via Script in Photoshop?

Reply
 
Thread Tools
  #1  
Old 02-13-2007, 03:19 AM
scooter41 scooter41 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Delete files via Script in Photoshop?

Hi Guys,

Just wondering what the limits to photoshop scripting are? I have never really used them so not sure if its at all possible. But basically I have a script that resizes a bunch of images for the web and always saves them to a "web uploads" folder, I then upload them, and delete the contents after ready for the action to run again.

Is there anyway I can add a script to say for example:

- Delete all files in C:\webuploads\
- The run action

Or is this likely to be a security flaw so file deletion can't be done???

Thanks for any help in advance.

Scott
Reply With Quote top
  #2  
Old 02-13-2007, 09:08 AM
Swampy's Avatar
Swampy Swampy is offline
Senior Member
 
Join Date: Feb 2005
Location: The Swamps of Florida
Posts: 4,418
Re: Delete files via Script in Photoshop?

You didn't say what platform you are on, but if you are on a Mac, you can write a automation (Apple Script) to do this. I don't use the built in "Automator", but it sounds simple enough for Automator to handle.
Reply With Quote top
  #3  
Old 02-13-2007, 09:11 AM
scooter41 scooter41 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Re: Delete files via Script in Photoshop?

typical, Im on a PC!!!

haha......... but if its possible on MAC hopefully it is on a PC too???
Reply With Quote top
  #4  
Old 02-13-2007, 12:31 PM
Swampy's Avatar
Swampy Swampy is offline
Senior Member
 
Join Date: Feb 2005
Location: The Swamps of Florida
Posts: 4,418
Re: Delete files via Script in Photoshop?

Scooter

Automator is part of the Mac OSX install package (comes with the computer). I've heard about automatioin programs for the PC similar to QuicKeys (commercial) for the Mac. You might find something if you Google "PC Scripting".
Reply With Quote top
  #5  
Old 02-13-2007, 05:14 PM
DannyRaphael's Avatar
DannyRaphael DannyRaphael is offline
Moderator
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,300
Re: Delete files via Script in Photoshop?

Quote:
Originally Posted by scooter41
Hi Guys,

Just wondering what the limits to photoshop scripting are? I have never really used them so not sure if its at all possible. But basically I have a script that resizes a bunch of images for the web and always saves them to a "web uploads" folder, I then upload them, and delete the contents after ready for the action to run again.

Is there anyway I can add a script to say for example:

- Delete all files in C:\webuploads\
- The run action

Or is this likely to be a security flaw so file deletion can't be done???

Thanks for any help in advance.

Scott
What you're hoping to accomplish makes great sense.

In a nutshell, "Yes this could be scripted," but IMO it would be like hitting a fly with a sledgehammer. For all the hassle it would take to implement, it's probably easier to continue doing what you're doing. If it's a matter of remembering to purge the folder each time, a message displayed by a Stop command might be the ticket.

----------------

Long-winded additional info and terminology clarification...

Mortals like you and me have the ability to record actions, which can be optionally invoked by the Batch command to process one image after another.

"Scripts" are computer programs. In other words scripts and actions are completely different creatures.

On the PC one needs Javascript or VB Script programming skills (or know someone with these skills) to write/test a script to do what you want it to do. Learning to write computer programs is not trivial stuff. Not impossible, but a pretty steep hill. Although I have programming background, I'm not adequately fluent in either of these languages to whip this script out, but it would not be difficult for a skilled VB programmer.

If no one jumps in with a script in response to this thread, you might poke around at www.ps-scripts.com.
Reply With Quote top
Reply

  RetouchPRO > Tools > Software


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you learn to do "Photo-art"? DannyRaphael Photo-Art 101 18 09-24-2006 12:41 AM
All user changable files of Photoshop CS serpent Software 2 08-25-2005 02:39 PM
Saving layers as files in PhotoShop 7? Michael B. Photo Restoration 2 03-24-2004 01:31 AM
Pros and Cons of P.S. 7 john_opitz Software 31 04-28-2002 07:43 PM


All times are GMT -6. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved