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.