![]() |
| |||||||
| Software Photoshop, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well. |
| | Thread Tools |
|
#1
| |||
| |||
| Delete files via Script in Photoshop? 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 |
|
#2
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| 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??? |
|
#4
| ||||
| ||||
| 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". |
|
#5
| ||||
| ||||
| Re: Delete files via Script in Photoshop? Quote:
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. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you learn to do "Photo-art"? | DannyRaphael | Photo-Art 101 | 18 | 09-23-2006 11:41 PM |
| All user changable files of Photoshop CS | serpent | Software | 2 | 08-25-2005 01:39 PM |
| Saving layers as files in PhotoShop 7? | Michael B. | Photo Restoration | 2 | 03-24-2004 12:31 AM |
| Pros and Cons of P.S. 7 | john_opitz | Software | 31 | 04-28-2002 06:43 PM |