Getting path of parent folder of a file during a workflow execution

How can I get the parent folder/directory of a file during the execution of a workflow? I cant't find any actions i Automator that will give me this.

I want to make a general applicable automated workflow. The path can not be hardcoded in the workflow as different files and folders will be worked on each time the workflow is run.

The input to the workflow is a file or list of files. I want to be able to retrieve the path of the parent folder of these files at runtime.

Will I have to do this through AppleScript? If so, then how?

(in case you have seen my first post on this; it seems I wasn't specific enough so people didn't understand what I want to do. Therefore this second post. Sorry for the iconvenience)

Macbook Core 2 Duo 2 GHz, PM G4 750 mhz, Mac OS X (10.5.2)

Posted on May 23, 2008 8:22 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Getting path of parent folder of a file during a workflow execution

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.