ExifTool Forum

ExifTool => Newbies => Topic started by: jeremy2015 on September 16, 2015, 01:49:14 AM

Title: Show photoshop "Work Path" with photoshop_paths.config
Post by: jeremy2015 on September 16, 2015, 01:49:14 AM
Is there a way to show the path called "work path" that is saved in a photoshop file if you make a path and don't rename it?
The photoshop_paths.config shows all saved paths except the "work path"
The workflow at my workplace relies on the "work path" being present in every file. We work with large files and it would be great to be able to confirm the path's existence without opening the file.
Cheers
Jeremy
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: Phil Harvey on September 16, 2015, 07:29:34 AM
Hi Jeremy,

Could you send me a sample with a work path so I can take a look.  And if possible, send the same image without the work path for comparison.  My email is philharvey66 at gmail.com

- Phil
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: jeremy2015 on September 16, 2015, 06:08:52 PM
Thanks Phil,
three files are attached, one without a path, one with the default photoshop "work path", and one with that path renamed to "Path 1".
As you can see only the file with the renamed path returns a path name.
Thanks so much for your help.
Cheers
Jeremy

Here is the output from the three files ...

MACWS00025069:image-exiftool-10.00 north$ ./exiftool -config photoshop_paths.config -allpaths forum_samples/*.tif
======== forum_samples/JDCAP_4303_with_renamed_path.tif
Path 7d0                        : Path 1
======== forum_samples/JDCAP_4303_with_work_path.tif
======== forum_samples/JDCAP_4303_without_workpath.tif
    3 image files read
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: Phil Harvey on September 17, 2015, 07:29:39 AM
Hi Jeremy,

OK, the work path is stored in an "unknown" tag called "WorkingPath".  Adding -u gives you access to these "unknown" tags:

exiftool -workingpath -u DIR

- Phil
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: jeremy2015 on September 17, 2015, 06:59:37 PM
Thanks Phil,
that did the trick.
I just tested it on a folder of 2500  250MB files and it completed the task in a few seconds.
Our previous "solution" ran a script in adobe bridge that required each file to be opened to check for the path. It would have taken hours!
Cheers
Jeremy
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: jeremy2015 on September 20, 2015, 09:32:16 PM
Hi Phil,
I'm trying to use exiftool to move all the files without a working path into a new folder.I'm not sure what condition I can use in an if statement would detect these files. (or even if an -if statement is necessary)
This is what I thought would work (along with a lot of other guesses) all to no avail.

./exiftool -u -directory='no_path' -if 'not defined $workingpath' dir

any clues?

Cheers
Jeremy
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: Phil Harvey on September 21, 2015, 08:14:50 AM
Hi Jeremy,

What you have written should work if you get your quoting correct:

./exiftool -u -directory='no_path' -if 'not defined $workingpath' DIR

- Phil
Title: Re: Show photoshop "Work Path" with photoshop_paths.config
Post by: jeremy2015 on September 21, 2015, 06:01:37 PM
Thanks again Phil!
It works perfectly. I have been using the TextEdit application to build my commands. I didn't notice the incorrect quote characters. It explains a lot of the erratic results I have been getting.
Cheers
Jeremy