• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Automate Action based on file location and modified date.

New Here ,
Oct 29, 2008 Oct 29, 2008

Copy link to clipboard

Copied

I am wanting to know if there is a way to automate a photoshop action based on a an image files date modified property.

I have images being exported out of another application to a specified folder. I want photoshop to be able to look and see if the file has been updated, then run the action.

Is this possible.
TOPICS
Actions and scripting

Views

984

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Valorous Hero ,
Oct 29, 2008 Oct 29, 2008

Copy link to clipboard

Copied

Most likely, I say this as getting the dates from the files you have the option of created and modified. The problem here is that the created date is just that, the date the file was created on the hard disk. Therefore you can not compare dates, strangely the OS shows date "Taken" and date modified, these do match.

So it looks like you would have to use Bridge and get the dates from the metadata and then do the compare.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 30, 2008 Oct 30, 2008

Copy link to clipboard

Copied

Any word on how to setup the automated action based on the modified date?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 30, 2008 Oct 30, 2008

Copy link to clipboard

Copied

what platform? having more info would be of help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 30, 2008 Oct 30, 2008

Copy link to clipboard

Copied

Windows,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 30, 2008 Oct 30, 2008

Copy link to clipboard

Copied

It seems you would need a process that runs independently of Photoshop. That process could be written in vb.net for example.

It would:

1. Montior the folder you set it to
2. Check files for the archive bit being set
3. If the files archive bit is set, then send it to
Photoshop and execute the action you are referencing.
4. Upon successful completion of the action, reset the archive bit
5. Continue monitoring.

You could also reference the last modified date of the file instead of the archive bit but it would seem you would need to keep track of the last modified date and compare it to the present, only sending those files which have a modified date later than they one you have saved for it. After successful completion, save the new modified date. This approach would require a database of some type to keep the information about the files.

You might also be able to use a file system watcher to monitor events but that has it's issues too and probably also would require a database.

I have written many processes that do most of the above over the years.

A possible routine in vb.net to do what you want could be:

Private Sub FileSystemWatcher1_Changed(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Changed
If e.ChangeType = WatcherChangeTypes.Changed Or e.ChangeType = WatcherChangeTypes.Created Then
Dim appRef As New Photoshop.Application
Try
appRef.Open(e.FullPath)
Catch ex As Exception
MessageBox.Show("Error on attempted file open: " & ex.Message & vbCrLf & e.FullPath)
End Try
appRef.DoAction(Actionname, Actionset)
End If
End Sub

The issue with this is that if this process wasn't running when a change occured to a file it would probably get missed. Hence the need for a database and an enumeration of the files present in the watched folder to check their last modified date against a known date saved in a data base.

Regards

George Smith

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

LATEST
I am looking for away in vb.net to work with Photoshop CS3 to print an image without loosing quality. I wrote a program in vb.net to do the printing but when resize the image to 4x6, I print it but the image look very bad.

Is there away in VB.NET can call to Adobe photoshop action to print an image or can VB.net work directly with photoshop to pring an image?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines